ispCP - Board - Support
Postfix access file - Printable Version

+- ispCP - Board - Support (
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Postfix access file (/thread-10818.html)

Postfix access file - mopox - 05-29-2010 07:03 AM

hallo community,

as matter of i need my mail server to server some linux servers behind nat as mail-relay i need to specify specific domains in the access file of postfix.

i figured out that in ispcp that file is called /etc/postfix/ispcp/sender-access. but i didn't figured out how it is included in the postfix config. normaly, and like in the postfix access(5) doc written, i do it in that way:

smtpd_sender_restrictions =
                               check_sender_access hash:/etc/postfix/sender-access

but in ispcp preconfigured i just find:

smtpd_sender_restrictions =

so where do ispcp includes the sender-access file? might it be possible to setup postfix so that it accept a second sender-access file where i can write my configs like:

.domain.tld         OK

or do i need to add this in the ispcp postfix sender-access template? Is it the one in the /etc/ispcp/postfix/working dir? How to make ispcp to recompile the sender-access after i add my configs?

thank you for your hints
and regards from germany

RE: Postfix access file - rbtux - 05-29-2010 07:20 AM

well that would be recipients not senders...

add domains to relay_domains

and add reject_unverified_recipient to your smtpd_recipient restrictions...

RE: Postfix access file - mopox - 06-04-2010 04:45 PM

thank you for your recomendation rbtux. i did it like you wrote. but it is not working as i need it to work. i can relay mails to recieptients on my server but not to external receiptients. i am still considering about a solution. any ideas?

RE: Postfix access file - rbtux - 06-05-2010 08:40 PM

sorry you have to add an entry into your transport map (dont forget running postmap on your transport map after adding the entry):
domain.tld smtp:[]:25

where is your destination mail server...

RE: Postfix access file - mopox - 06-05-2010 09:12 PM

Thank you for your hint. How do i place the entry to transport map without interact with ispcp? is there a template somewhere? where do i find that? how do i recompile it than?

RE: Postfix access file - kilburn - 06-11-2010 04:33 PM

You can change so that there are 2 transport maps (the ispcp one, and your manually-mainained one). Create the last one, put what rbtux told you in there, postmap it, restart postfix and you're done Smile