Current time: 11-27-2020, 09:14 PM Hello There, Guest! (LoginRegister)


Post Reply 
allow all emails to pass for a certain recipient or recipient domain
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #11
RE: allow all emails to pass for a certain recipient or recipient domain
Please accept my apologies, uwe.

The message sounded sarcastic to me, because lately we've been having many users adopting this attitude when our responses are not like "you have to do *exactly* this because [long explanation]".

It's great for me to meet a nice guy like you, who knows how to do his job right, and doens't freak out on a misinterpretation like this.

Welcome to the community, and don't hesitate to ask if you have any other question!
09-02-2009 05:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
uwe Offline
Junior Member
*

Posts: 68
Joined: Feb 2008
Reputation: 0
Post: #12
RE: allow all emails to pass for a certain recipient or recipient domain
Hay kilburn, it was probably one-to-one translation from my native language that made it sound sarcastic ! my bad Smile

if anyone needs this, here is how to do it (i think):

open /etc/postfix/main.cf

find section smtpd_recipient_restrictions

add

check_recipient_access hash:/etc/postfix/recipient-custom

somewhere in that section after the checks you want to be applied

create the file you defined ( /etc/postfix/recipient-custom ) and inside it put something like:

SOMEDOMAIN.COM OK

then run postmap[2] /etc/postfix/recipient-custom

reload postfix (to create hash?) ... viola ! (i think) !

useful links:
http://www.postfix.org/postconf.5.html
[2] http://www.postfix.org/access.5.html
(This post was last modified: 09-02-2009 05:35 AM by uwe.)
09-02-2009 05:28 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #13
RE: allow all emails to pass for a certain recipient or recipient domain
You got it right, except for one small detail:
Quote:add
check_recipient_access hash:/etc/postfix/recipient-custom
somewhere in that section after the checks you want to be applied
It should not be added "somewhere", but right before the first "check_policy_service..." line. Otherwise you risk turning your server into an open mail relay, which would be really really bad Wink
09-02-2009 06:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)