Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix configuration question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Psychephylax
n00b
n00b


Joined: 10 May 2002
Posts: 44
Location: Smithtown, NY

PostPosted: Wed Aug 14, 2002 2:29 pm    Post subject: Postfix configuration question Reply with quote

Ok, I have a postfix mail server on my gentoo box...

Right now, Postfix will not relay unless you are in a trusted domain...To add trusted domains I need to specify the subnets that are in the trusted domain...

Is it possible to use domain names instead of subnets?

For example, if I own domain aaa.com but want to add domain bbb.com to the trusted domains list I need to specify the subnets of bbb.com...The problem is that I do not want to make a huge list of subnets that are owned by bbb.com

Thanks in advance...
_________________
Stupidity, like hydrogen, is one of the basic building blocks of the Universe.
Back to top
View user's profile Send private message
Ferdy
Retired Dev
Retired Dev


Joined: 04 May 2002
Posts: 483
Location: España

PostPosted: Wed Aug 14, 2002 6:52 pm    Post subject: Reply with quote

What about relay_hosts ??

Code:

relay_hosts = bbb.com, ccc.com, nanana.com


Just my .02 €
_________________
Paludis, the next generation in package mangling.
Back to top
View user's profile Send private message
Psychephylax
n00b
n00b


Joined: 10 May 2002
Posts: 44
Location: Smithtown, NY

PostPosted: Wed Aug 14, 2002 10:31 pm    Post subject: That ain't it... Reply with quote

in the main.cf file it specifies that relay hosts is used to relay messages in case there is no local matching user....
_________________
Stupidity, like hydrogen, is one of the basic building blocks of the Universe.
Back to top
View user's profile Send private message
vicay
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2002
Posts: 97
Location: Dresden, Germany

PostPosted: Thu Aug 15, 2002 6:04 am    Post subject: Re: Postfix configuration question Reply with quote

Hello,

you might want to add your domain to the relay_domains parameter.
together with statement check_relay_domains at the end of the
smtpd_recipient_restrictions (which is the compiled default)


Code:

relay_domains=$mydestination, aaa.com
...
smtpd_recipient_restrictions= .........
                       [your restrictions here]
                  check_relay_domains


but this means that you will recieving mail FOR $relay_domains too!!
if this is not the desired behavior, you could create a client_acces map


/etc/postfix/client_access
Code:


aaa.com         OK
bbb.com         OK



and then add a rule to the smtpd_recipient_restrictions

Code:


smtpd_recipient_restrictions = permit_mynetworks,
  check_client_access hash:/etc/postfix/client_access,
....further rules.....
check_relay_domains



happy postfixing


vicay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum