Hi All!
I'm testing a new server. This is part of the config:
master.cf:
~~~~
127.0.0.1:27 inet n - n - - smtpd
-o syslog_name=postfix/$service_name
-o smtpd_delay_reject=no
-o
smtpd_sender_restrictions=pcre:/etc/postfix/senders_cgp.pcre,reject_non_fqdn_sender,reject
~~~~~
/etc/postfix/senders_cgp.pcre:
/^\S+\@domain\.com$/ OK
/^\S+\@host\.domain\.com$/ OK
/^<>$/ OK
/.*/ reject
/etc/postfix# postmap -q [email protected] pcre:./senders_cgp.pcre
OK
/etc/postfix# postmap -q [email protected] pcre:./senders_cgp.pcre
OK
/etc/postfix# postmap -q "<>" pcre:./senders_cgp.pcre
OK
/etc/postfix# postmap -q [email protected] pcre:./senders_cgp.pcre
reject
/etc/postfix > postmap -q w.w pcre:./senders_cgp.pcre
reject
but via telnet:
/etc/postfix > telnet localhost 27
Connected to localhost.
Escape character is '^]'.
220 domain.com ESMTP Postfix
mail from: [email protected]
250 2.1.0 Ok
rset
250 2.0.0 Ok
mail from: [email protected]
250 2.1.0 Ok
rset
250 2.0.0 Ok
mail from: <>
250 2.1.0 Ok
rset
250 2.0.0 Ok
mail from: w.w
250 2.1.0 Ok
rset
250 2.0.0 Ok
mail from: [email protected]
554 5.7.1 <[email protected]>: Sender address rejected: Access denied
rset
250 2.0.0 Ok
mail from: w.w
250 2.1.0 Ok
quit
221 2.0.0 Bye
Connection closed by foreign host.
Why does postfix accept mail from an incorrect sender address similar to "w.w"?
What am I doing wrong?
Regards, Alexander
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]