From owner-freebsd-bugs Mon Aug 20 0:50:18 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5F80B37B40A for ; Mon, 20 Aug 2001 00:50:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7K7oEB80803; Mon, 20 Aug 2001 00:50:14 -0700 (PDT) (envelope-from gnats) Received: from ikar.pl (spitfire.303.krakow.pl [217.96.99.173]) by hub.freebsd.org (Postfix) with SMTP id 089C437B40C for ; Mon, 20 Aug 2001 00:47:27 -0700 (PDT) (envelope-from root@ikar.pl) Received: (qmail 1557 invoked by uid 0); 20 Aug 2001 07:46:41 -0000 Message-Id: <20010820074641.1556.qmail@ikar.pl> Date: 20 Aug 2001 07:46:41 -0000 From: Jan Srzednicki To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/29892: pw user add + qmail problem Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29892 >Category: bin >Synopsis: pw user add + qmail problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Aug 20 00:50:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Jan Srzednicki >Release: FreeBSD 4.4-PRERELEASE i386 >Organization: MPS >Environment: System: FreeBSD ikar.pl 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #1: Tue Aug 7 14:41:13 CEST 2001 sources cvsupped recently. >Description: When delivering locally, qmail checks whether recipients home dir exists and is owned by the user. If not it returns a non-existing account error. When pw is set to send welcome greetz email to the new user and to create his homedir, it first sends the email (which is bounced by qmail, becouse the homedir doesn't exist yet) and then creates the homedir. >How-To-Repeat: Configure pw to send welcome greetings email and create user's directory by "pw user add" command. qmail will then return a permanent error and bounce the mail back to root. >Fix: Put the homedir creation code before mail sending code in /usr/src/usr.sbin/pw/pw_user.c >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message