On 7/19/2013 7:19 AM, L.W. van Braam van Vloten wrote: > Hello list, > > I have configured postfix to not accept connections from clients > that fail the reverse dns check. > But I want to be able to whitelist specific clients, even if the > reverse hostname check fails. > > To achieve this I configured the following: > smtpd_client_restrictions = > check_client_access hash:/etc/postfix/client-whitelist, > reject_unknown_reverse_client_hostname > > /etc/postfix/client-whitelist contains comment lines (starting with > #) and entries, like this: > # mail.acipol.ac.mz > 197.218.14.50 OK > > The file is "compiled" with postmap: > # postmap /etc/postfix/client-whitelist > > This is the result: > # ls -alF /etc/postfix/client-whitelist* > -rw-r--r--. 1 root root 1.6K Jul 19 12:07 /etc/postfix/client-whitelist > -rw-r--r--. 1 root root 12K Jul 19 12:07 > /etc/postfix/client-whitelist.db > I reloaded the postfix configuration: > # service postfix reload > > The log shows the reload and no further errors or warnings. > > However, connections from the addresses in > /etc/postfix/client-whitelist are still rejected: > Jul 19 12:33:02 christoffel postfix/smtpd[12614]: NOQUEUE: reject: > RCPT from unknown[197.218.14.50]: 450 4.7.1 Client host rejected: > cannot find your reverse hostname, [197.218.14.50]; from=<> > to=</*<masked>*/> proto=ESMTP helo=<mail.acipol.ac.mz> > > So my question is: What am I doing wrong? > Any help would be appreciated.
The general procedure you describe is correct. I suspect a typo in your main.cf. Please show your "postconf -n" output for further help. -- Noel Jones