Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: mouss (mlist.onlyfree.fr)
Date: Mon Jun 25 2007 - 08:01:18 CDT
Sandy Drobic wrote:
> sébastien dicque wrote:
>> I try to configure postfix only as mail relay and I've got a problem.
>> When I try to send a mail I've got an SMPT connection failed. I follow the
>> doc http://www.postfix.org/VIRTUAL_README.html#forwarding with the mail
>> forwarding domain
>> This is my postfix conf:
>> alias_maps = hash:/etc/postfix/aliases
>> command_directory = /usr/sbin
>> config_directory = /etc/postfix
>> daemon_directory = /usr/libexec/postfix
>> debug_peer_level = 1
>> inet_interfaces = all
>> local_recipient_maps =
> This is a typical case of "using half a recipe". Do not disable recipient
> validation for $mydestination, if $mydestination is not empty.
Do not disable it _even_ if mydestination is empty. [ip.of.server] is
always a local domain.
If local mail is not desired, then use
local_recipient_maps = hash:/etc/postfix/empty
where 'empty' is an empty file (that is postmapped of course). with
this, reject_unlisted_sender will reject mail from foo[ip.of.server]
>> mail_owner = postfix
>> mailq_path = /usr/sbin/mailq
>> manpage_directory = /usr/local/man
>> mydestination = $myhostname, localhost.$mydomain, $mydomain
>> mydomain = test.com
>> myhostname = relay.test.com
> According to your config bothe test.com and relay.test.com are local
> domains for this server. For a pure relayserver mydestination should be
> empty. Only then can you disable local_recipient_maps.
not necessarily. he can keep localhost and/or localhost.$mydomain if he
needs to execute commands. but $mydomain should indeed be moved out of
>> mynetworks = xxx.xxx.xxx.xxx/16
>> myorigin = $mydomain
>> newaliases_path = /usr/sbin/newaliases
>> queue_directory = /var/spool/postfix
>> readme_directory = no
>> recipient_delimiter = +
>> relay_domains = $mydomain
The OP should look for warnings in his logs...
> Put test.com and relay.test.com in relay_domains.
> Populate relay_recipient_maps with the list of valid addresses for these
>> relayhost = xxx.xxx.xxx.xxx
>> sample_directory = /etc/postfix
>> sendmail_path = /usr/lib/sendmail
>> setgid_group = postdrop
>> unknown_local_recipient_reject_code = 450
>> virtual_alias_domains = test1.com
>> virtual_alias_maps = /etc/postfix/virtual
>> And my virtual file:
>> usertest1.com usertest2.com
> By the way, "test.com" is an official domain. It is better to use
> "example.com|org|net" for example configurations.