> From: test
> All,
> 
> I have a problem with my setup of postfix/web-cyradm...
> 
> I am running 3 domains locally and 3 domains i only relay to another
> location.
> 
> When an incoming mail contains a name before the @ sign which i have as
> a local user but also a user in the relayed domain exists, the mail gets
> delivered locally instead of being relayed...
> 
> ie.:
> 
> incoming mail: [EMAIL PROTECTED] (should be relayed to domain1.com)
> 
> local user: [EMAIL PROTECTED]
> 
> Mail for [EMAIL PROTECTED] gets delivered to [EMAIL PROTECTED]
> 
> I am using username as loginnames, i i'd rather not change this...
> So is there a way to force postfix to first check the relay_domains
> setting and after that do a local check/delivery ?
> -- 
 
You should show 'postconf -n' and related log entries. However, it appears you 
have both domains in $mydestination. You say mail addressed to domain1 should 
be relayed. If domain1.com is a relay domain, then make sure it is only listed 
in relay_domains. Then, override the transport for the relay domain(s).
http://www.postfix.org/ADDRESS_CLASS_README.html
 
For example:
 
mydestination = $myhostname localhost localhost.localdomain domain2.com
relay_domains = domain1.com
transport = hash:/etc/postfix/transport
 
/etc/postfix/transport:
domain1.com relay:[host.domain1.com]
 
don't forget:
postmap hash:/etc/postfix/transport
 
Gary V
 
_________________________________________________________________
See how Windows® connects the people, information, and fun that are part of 
your life
http://clk.atdmt.com/MRT/go/119463819/direct/01/

Reply via email to