Le 28/11/2010 15:14, Len Conrad a écrit :

[snip]

but postfix ain't happy:

Nov 26 15:23:02 mgw1 postfix/smtpd[92264]: fatal: host/service localhost/10023 
not found: hostname nor servname provided, or not known

Nov 26 15:23:03 mgw1 postfix/master[87697]: warning: process 
/usr/local/libexec/postfix/smtpd pid 92264 exit status 1

Nov 26 15:23:03 mgw1 postfix/master[87697]: warning: 
/usr/local/libexec/postfix/smtpd: bad command startup -- throttling


# grep localhost/10023 master.cf


The correct syntax is

localhost:10023 ...

no, the failing policy services are in main.cf, not master.cf


Please show the output of the following commands

# grep -3 10023 main.cf
# grep -3 10023 master.cf
# grep -3 smtpd master.cf



I fixed the problem by adding etc/hosts under /var/spool/postfix.

"man smtpd" doesn't say the postfix is automatically always chrooted, only:


if you installed from freebsd ports, then it is not chrooted.

if you edited master.cf, then the 5th flag must be set to 'n' otherwise the service is chrooted as can be understood from the documentation lines found in master.cf:

==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================



SECURITY
        The SMTP server is moderately  security-sensitive.  It  talks  to  SMTP
        clients  and  to DNS servers on the network. The SMTP server __can be__ 
run
        chrooted at fixed low privilege.

First time I've ever seen postfix not use /etc/hosts, but I expect something 
else is misconfigured.


postfix relies on the system resolver (which uses nsswitch.conf).


Reply via email to