Hello,

I am facing this kind of issue too.
To stop this, I follow http://www.postfix.org/RESTRICTION_CLASS_README.html to restrict usage of list diffusion to local lan.

Amavis and spamassassin are also installed on my mail system with postfix, but recently, spammers use image inside body of email... Images cannot be analyzed by milters. So that is why I decided to restrict usage of list diffusion to local lan.

I also set smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch in my main.cf
But this works only for authenticated users, to avoid forging mail .

According to http://www.postfix.org/postconf.5.html#reject_sender_login_mismatch, reject_unauthenticated_sender_login_mismatch is for unauthenticated clients But I fear that reject_unauthenticated_sender_login_mismatch rejects legitimate mail as nore...@domain.com, etc.

Does reject_unauthenticated_sender_login_mismatch can help in this case ?

Best regards



-------- Message transféré --------
Sujet : Re: How to reject mails where from address and to address is myself.
Date :  Tue, 04 Jun 2019 20:13:20 +1000
De :    Richard James Salts <post...@spectralmud.org>
Pour :  postfix-users@postfix.org



On Tuesday, 28 May 2019 9:19:09 PM AEST an...@ursc.gov.in wrote:
Dear List,

Lot of SPAM mails are being received where from and to address is
myself and the mail has contents which are dirty/bad.

The original sender id will be different.

How to handle such mails.
The best way is probably a milter of some description.
There are a number that have been mentioned in the past on the postfix mailing list that would be suitable (e.g. https://mimedefang.org/, https://
www.amavis.org )

http://www.postfix.org/MILTER_README.html describes the process of plumbing the milter into postfix.




Reply via email to