From owner-freebsd-questions Fri Jun 28 12:54:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 294EC37B400 for ; Fri, 28 Jun 2002 12:54:41 -0700 (PDT) Received: from 217-126-145-95.uc.nombres.ttd.es (217-126-145-95.uc.nombres.ttd.es [217.126.145.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4415B43E09 for ; Fri, 28 Jun 2002 12:54:40 -0700 (PDT) (envelope-from sjmudd@pobox.com) Received: by unicorn.ea4els.ampr.org (Postfix, from userid 1001) id D3E6C32B0; Fri, 28 Jun 2002 21:54:30 +0200 (CEST) To: freebsd-questions@freebsd.org Subject: Re: FBSD4.6 & postfix-1.1.11,1 References: From: Simon J Mudd Date: 28 Jun 2002 21:54:30 +0200 In-Reply-To: Message-ID: <86hejni3gp.fsf@unicorn.ea4els.ampr.org> Lines: 78 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG barbish@a1poweruser.com ("Joe & Fhe Barbish") writes: > I had FBSD4.5 & postfix-1.1.9,1 working great. ok. > When I upgraded to FBSD4.6 with it's new version of sendmail I also > upgraded the postfix port to the current version 1.1.11,1. How did you upgrade? > The postfix options in the main.cf changed a great deal. Looks like > it has been reconfigured to support jails. I have been unable to get > postfix to accept mail sent from an LAN machine to post too an FBSD > user account. Do you have a copy of the old config files? /etc/postfix/master.cf and /etc/postfix/main.cf (at least) > The account barbish was added using PW and I can logon to the > FBSD box using it. I an not using an local LAN DNS server. If you use Postfix it is recomendable to use a local DNS server. You'll notice the difference in performance. > Here is the postfix log file for a test I ran. > > Jun 27 16:18:22 gateway postfix/smtpd[729]: connect from unknown[10.0.10.6] > Jun 27 16:18:22 gateway postfix/smtpd[729]: 6BFA469: client=unknown[10.0.10.6] > Jun 27 16:18:22 gateway postfix/cleanup[730]: 6BFA469: message-id= > Jun 27 16:18:22 gateway postfix/smtpd[729]: disconnect from unknown[10.0.10.6] > Jun 27 16:18:22 gateway postfix/qmgr[723]: 6BFA469: from=, size=750, nrcpt=1 (queue active) > Jun 27 16:18:22 gateway postfix/local[732]: 6BFA469: to=, relay=local, delay=0, status=bounced (cannot > access mailbox /var/spool/mail/barbish for user barbish. cannot create file > exclusively: No such file or directory) It appears that postfix can't write to /var/spool/mail/barbish Permissions problem? or wrong directory? My (hand installed) postfix uses spool_directory = /var/mail $ postconf | grep spool mail_spool_directory = /var/mail queue_directory = /var/spool/postfix > Jun 27 16:18:22 gateway postfix/cleanup[730]: B387B14B: message-id=<20020627201822.B387B14B@smtp.a1poweruser.com> > Jun 27 16:18:22 gateway postfix/qmgr[723]: B387B14B: from=<>, size=2538, nrcpt=1 (queue active) > Jun 27 16:18:22 gateway postfix/local[732]: B387B14B: to=, relay=local, delay=0, status=bounced (cannot > access mailbox /var/spool/mail/barbish for user barbish. cannot create file > exclusively: No such file or directory) Same problem. > Here is the main.cf file It's *MUCH BETTER* if you post the output of postconf -n which shows the configuration parameters which have been changed from their default values. This way we can see what "is different". [snip] Up to here you've hardly touched anything. > # The mail_spool_directory parameter specifies the directory where > # UNIX-style mailboxes are kept. The default setting depends on the > # system type. > # > #mail_spool_directory = /var/mail > mail_spool_directory = /var/spool/mail ??? FreeBSD's mail spool is normally in /var/mail. Have you changed it to /var/spool/mail for a reason? My /var/spool has no mail subdirectory or link to /var/mail. Simon -- Simon J Mudd, Tel: +34-91-408 4878, Mobile: +34-605-085 219 Madrid, Spain. email: sjmudd@pobox.com, Postfix RPM Packager To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message