Current time: 04-17-2024, 09:06 AM Hello There, Guest! (LoginRegister)


Post Reply 
Postfix access file
Author Message
mopox Offline
Newbie
*

Posts: 7
Joined: Apr 2010
Reputation: 0
Post: #1
Postfix access file
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:

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

but in ispcp preconfigured main.cf i just find:

Code:
smtpd_sender_restrictions =
                               reject_non_fqdn_sender,
                               reject_unknown_sender_domain,
                               permit_mynetworks,
                               permit_sasl_authenticated

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:

Code:
...
.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
05-29-2010 07:03 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #2
RE: Postfix access file
well that would be recipients not senders...

add domains to relay_domains

and add reject_unverified_recipient to your smtpd_recipient restrictions...
05-29-2010 07:20 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mopox Offline
Newbie
*

Posts: 7
Joined: Apr 2010
Reputation: 0
Post: #3
RE: Postfix access file
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?
06-04-2010 04:45 PM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #4
RE: Postfix access file
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:[192.0.2.254]:25

where 192.0.2.254 is your destination mail server...
06-05-2010 08:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mopox Offline
Newbie
*

Posts: 7
Joined: Apr 2010
Reputation: 0
Post: #5
RE: Postfix access file
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?
06-05-2010 09:12 PM
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: #6
RE: Postfix access file
You can change main.cf 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
06-11-2010 04:33 PM
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)