ispCP - Board - Support
allow all emails to pass for a certain recipient or recipient domain - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: allow all emails to pass for a certain recipient or recipient domain (/thread-7725.html)

Pages: 1 2


RE: allow all emails to pass for a certain recipient or recipient domain - kilburn - 09-02-2009 05:21 AM

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!


RE: allow all emails to pass for a certain recipient or recipient domain - uwe - 09-02-2009 05:28 AM

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


RE: allow all emails to pass for a certain recipient or recipient domain - kilburn - 09-02-2009 06:29 AM

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