Skip to main content
The 2024 Developer Survey results are live! See the results
12 events
when toggle format what by license comment
Feb 11, 2022 at 21:42 comment added mwm And so, is there any solution to block the From rules?
May 5, 2016 at 18:32 comment added user7835 @billynoah how correct you are. took me several hours to figure this out. Put simply, smtpd_sender_restrictions will only block mail based on its Return-Path header NOT its From header. So if your smtpd_sender_restrictions hash:/etc/postfix/block contains [email protected] REJECT mail with From: [email protected] will NOT be rejected; rather, only mail with Return-Path: [email protected] will be blocked (!!) Arrrrgh.
Mar 4, 2015 at 17:43 comment added Eaten by a Grue In my experience the smtpd_sender_restrictions only affects mail based on return path, not MAIL FROM header as it says in the docs. Not sure if this is a bug or what. I tried spoofing an email to my server that should have been rejected by setting from in the header and it had no effect. When i added the -f flag to sendmail to specify return path it successfully rejected my email.
Oct 21, 2014 at 21:31 answer added Alexis Wilke timeline score: 4
Aug 28, 2013 at 6:49 answer added Laurentiu Roescu timeline score: 3
Aug 27, 2013 at 17:56 history edited Pablo Fernandez CC BY-SA 3.0
added 353 characters in body
Aug 27, 2013 at 15:57 comment added Pablo Fernandez @DanilaLadner yes.
Aug 27, 2013 at 15:51 comment added Danila Ladner Right, so that external email is sending you emails you want to block for your users?
Aug 27, 2013 at 15:42 comment added Pablo Fernandez @DanilaLadner it's an external email address, a sender that is not me.
Aug 27, 2013 at 15:42 history edited Pablo Fernandez CC BY-SA 3.0
added 66 characters in body
Aug 27, 2013 at 15:39 comment added Danila Ladner you need to block the address you are trying to send to or receive from? Sorry, a little bit not clear.
Aug 27, 2013 at 15:35 history asked Pablo Fernandez CC BY-SA 3.0