Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jan 21, 2014 1:35 pm 
Offline
Junior Member

Joined: Wed Oct 16, 2013 12:09 pm
Posts: 40
I want to block an email address in Postfix, from idiot@spamcompany.com

I've found on Google that I should use check_sender_access. The question is, where should I put it?

It seems I can put it in either smtpd_recipient_restrictions or smtpd_sender_restrictions. Which should I use and why, and what's the difference?

A common theme throughout the internet seems to be putting all the settings into smtpd_recipient_restrictions and skipping smtpd_sender_restrictions, even if the setting was specified under the smtpd_sender_restrictions in the Postfix docs. Why do people do this?


Top
   
PostPosted: Wed Jan 22, 2014 10:10 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
The difference is the stage in the SMTP transaction the restriction is applied. See this article for some explanation.

There's really no significant disadvantage to using smtpd_recipient_restrictions; in fact, in newer versions of Postfix, sender_restrictions won't be acted on sooner than recipient_restrictions.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group