View previous topic :: View next topic |
Author |
Message |
Psychephylax n00b
Joined: 10 May 2002 Posts: 44 Location: Smithtown, NY
|
Posted: Wed Aug 14, 2002 2:29 pm Post subject: Postfix configuration question |
|
|
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 |
|
|
Ferdy Retired Dev
Joined: 04 May 2002 Posts: 483 Location: España
|
Posted: Wed Aug 14, 2002 6:52 pm Post subject: |
|
|
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 |
|
|
Psychephylax n00b
Joined: 10 May 2002 Posts: 44 Location: Smithtown, NY
|
Posted: Wed Aug 14, 2002 10:31 pm Post subject: That ain't it... |
|
|
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 |
|
|
vicay Tux's lil' helper
Joined: 29 Apr 2002 Posts: 97 Location: Dresden, Germany
|
Posted: Thu Aug 15, 2002 6:04 am Post subject: Re: Postfix configuration question |
|
|
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 |
|
|
|