Hello, folks.

I use postfix on two mail gateways and I'm seeing inbound mail
using one of my domains. I thought I could block this using
smtpd_sender_restrictions but, even after adding the following
line to /etc/postfix/main.cf:

smtpd_sender_restrictions = permit_mynetworks, \
                            check_sender_access hash:/etc/postfix/domains

with an /etc/postfix/domains that looks like:

@mydomain.com        REJECT
@anotherdomain.com      REJECT

I'm still seeing logs like this:

Jul 18 10:43:31 ehlpg1fr postfix/smtpd[1364822]: 47889676F37: 
client=51-15-157-139.rev.poneytelecom.eu[51.15.157.139]
Jul 18 10:43:31 ehlpg1fr postfix/cleanup[1364829]: 47889676F37: 
message-id=<20230718014330.9db622198e221...@mydomain.com>
Jul 18 10:43:47 ehlpg1fr postfix/qmgr[1353949]: 47889676F37: 
from=<resea...@mydomain.com>, size=7620, nrcpt=1 (queue active)
Jul 18 10:43:47 ehlpg1fr postfix/smtp[1362845]: 47889676F37: 
to=<resea...@mydomain.com>, relay=internalsmtp.mydomain.com[193.XX.YY.210]:25, 
delay=17, delays=17/0/0.02/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued 
as 3A81A712F3E)
Jul 18 10:43:47 ehlpg1fr postfix/qmgr[1353949]: 47889676F37: removed

If anyone can tell me what I'm doing wrong, it would be much appreciated.

Emmanuel
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to