Running RHEL 6, mail_version = 2.6.6

I have a server, let's call it mail1.example.com. I want mail addressed to 
n...@example.com to be looked up in $virtual_alias_maps. Mail to subdomains of 
example.com should be relayed to a server by that name. The main.cf file 
includes the following lines:

virtual_alias_domains = hash:/etc/postfix/virtual_domains
relay_domains = $mydestination, hash:/etc/postfix/relay_domains

The virtual_domains file contains
example.com    ok

What do I need to put into the relay_domains file to allow mail coming from 
sites that aren't in $mynetworks to be relayed to @*.example.com? I've tried 
putting

.example.com    ok

into relay_domains but I still got "Relay access denied". If instead I use

example.com   ok

then I am able to relay, but the log file has this warning:

'postfix/trivial-rewrite[19961]: warning: do not list domain example.com in 
BOTH virtual_alias_domains and relay_domains'

What should I be doing instead?


Larry


Reply via email to