At 08:29 AM 11/28/2010, you wrote:
>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

egrep 10023 /usr/local/etc/postfix/main.cf
 check_policy_service inet:127.0.0.1:10023,
 check_policy_service inet:127.0.0.1:10023,
 check_policy_service inet:127.0.0.1:10023,

... which failed until I added  /var/spool/postfix/etc/hosts

># grep -3 10023 master.cf

egrep 10023 /usr/local/etc/postfix/master.cf

nada

># grep -3 smtpd master.cf

egrep -i smtpd /usr/local/etc/postfix/master.cf

smtpd     pass  -       -       -       -       -       smtpd 
#smtp      inet  n       -       n       -       -       smtpd
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#127.0.0.1:10025 inet n    -       n       -       -     smtpd
#    -o smtpd_delay_reject=no
#    -o smtpd_client_restrictions=permit_mynetworks,reject
#    -o smtpd_helo_restrictions=
#    -o smtpd_sender_restrictions=
#    -o smtpd_recipient_restrictions=permit_mynetworks,reject
#    -o smtpd_data_restrictions=reject_unauth_pipelining
#    -o smtpd_end_of_data_restrictions=
#    -o smtpd_restriction_classes=
#    -o smtpd_error_sleep_time=0
#    -o smtpd_soft_error_limit=1001
#    -o smtpd_hard_error_limit=1000
#    -o smtpd_client_connection_count_limit=0
#    -o smtpd_client_connection_rate_limit=0
#    -o smtpd_milters=
127.0.0.1:10026 inet  n -       n       -       16      smtpd
       -o smtpd_helo_restrictions=
       -o smtpd_client_restrictions=
       -o smtpd_sender_restrictions=
       -o smtpd_recipient_restrictions=permit_mynetworks,reject
       -o smtpd_authorized_xforward_hosts=127.0.0.0/8







>>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.

I installed with make && make install in mail/postfix-current

>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:

there are not any "y" on any non-commented line in master.cf.


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

yes, I know.  something is broken there, but postfix resolves everything else 
through resolv.conf's nameserver 127.0.0.1

nsswitch.conf has "hosts: files dns"

Len





Reply via email to