Skip site navigation (1)Skip section navigation (2)
Date:      28 Jun 2002 21:54:30 +0200
From:      Simon J Mudd <sjmudd@pobox.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: FBSD4.6 & postfix-1.1.11,1
Message-ID:  <86hejni3gp.fsf@unicorn.ea4els.ampr.org>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGGEBGCEAA.barbish@a1poweruser.com>
References:  <MIEPLLIBMLEEABPDBIEGGEBGCEAA.barbish@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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=<MIEPLLIBMLEEABPDBIEGEEBFCEAA.barbish@a1poweruser.com>
> 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=<barbish@a1poweruser.com>, size=750, nrcpt=1 (queue active)
> Jun 27 16:18:22 gateway postfix/local[732]: 6BFA469: to=<barbish@a1poweruser.com>, 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=<barbish@a1poweruser.com>, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86hejni3gp.fsf>