Mobile app version of vmapp.org
Login or Join
Cugini213

: Block mails from my server to my server that are not in whitelist I have a managed server lets call it myserver.de, where I could generate a list of all valid email addresses. Now a lot

@Cugini213

Posted in: #Email

I have a managed server lets call it myserver.de, where I could generate a list of all valid email addresses.

Now a lot of generated spam mails fake the sender address to something enerated like max.mustermann@myserver.de. This address is not valid, so I would like to block all addresses that have a from from myserver.de but are not in the allowed emails

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cugini213

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jennifer507

You have to set reject_unlisted_sender in smtpd_sender_restrictions.
see: www.postfix.org/postconf.5.html#smtpd_reject_unlisted_sender
Or you can use check_sender_access to blacklist mails that are from your server but not in that list.
see: www.linuxlasse.net/linux/howtos/Blacklist_and_Whitelist_with_Postfix

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme