|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Virtual domains and recipient maps
From: Michael Gale (mgale
utilitran.com)
Date: Fri Jan 02 2004 - 11:44:37 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
I am having trouble getting virtual domains to work with a access list :(
Right now my mail server has the following setup.
mydestination =
relay_domains = $myhostname, $mydomain
relay_recipient_maps = hash:/etc/postfix/ldapusers
transport =... mail gets sent to our exchange server only for valid e-mail accounts that are not in a blacklist file.
I then create a virtual file as follows.
domain.us
domain.com
domain.net
domain.com
I all mail for user
domain.XXX to go to user
domain.com
I then added the following to my main.cf
virtual_alias_domains = domain.us, domain.net
virtual_alias_maps = hash:/etc/postfix/virtual
The mail does seem to go to the correct account on the exchange server, here are some logs:
Jan 2 10:35:30 postfix postfix/smtp[1991]: E25AD67E43: to=<netops
domain.com>, orig_to=<netops
domain.us>, relay=10.10.7.3[10.10.7.3], delay=1, status=sent (250 2.6.0 <20040102173513.8A8AD67E42
postfix.domain.com> Queued mail for delivery)
But if I sent a message to "sjhfskdhf
domain.us" the message is accepted, I want mail for any virtual domain to have the recipient check against a access list.
Do I have to create my virtual file in the following format:
user
domain.us user
domain.com
Because this would be a pain in the #$$ :(
--
Michael Gale
Network Administrator
Utilitran Corporation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]