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 s...@domain.com pcre:./senders_cgp.pcre
OK

/etc/postfix# postmap -q s...@host.domain.com pcre:./senders_cgp.pcre
OK

/etc/postfix#  postmap -q "<>" pcre:./senders_cgp.pcre
OK

/etc/postfix# postmap -q s...@host2.domain.com 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: s...@domain.com
250 2.1.0 Ok
rset
250 2.0.0 Ok
mail from: s...@hak.domain.com
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: w@w.w
554 5.7.1 <w@w.w>: 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 -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org
  • [pfx] check send... Колесников Александр via Postfix-users
    • [pfx] Re: c... Ansgar Wiechers via Postfix-users
      • [pfx] R... Колесников Александр via Postfix-users
        • [pf... Ansgar Wiechers via Postfix-users
          • ... Колесников Александр via Postfix-users
            • ... Ansgar Wiechers via Postfix-users
              • ... Колесников Александр via Postfix-users
                • ... Alexander Kolesnikov via Postfix-users
                • ... Matus UHLAR - fantomas via Postfix-users
                • ... Alexander Kolesnikov via Postfix-users
                • ... Aleksandr Kolesnikov via Postfix-users

Reply via email to