Hi group,

So I had to create a backup MX server to handle some maintenance  
downtime of our primary mail server, the catch being that the  
emergency mail account needed to be monitored while the other mail was  
being spooled. So what I did was add my domain to esmtpacceptmailfor  
and hosteddomains and created a catchall user account  
"[email protected]" with a .courier-default rule that looked like this:

||echo "[email protected]"

This rewrites the delivery address of incoming mail to the hostname of  
my primary machine. The lower priority MX record points to the backup  
machine obviously.

Then I set an explicit delivery route for primary.example.com in  
esmtproutes to prevent looking up MX and getting a loop like so:

primary.example.com [192.168.1.1]

To deliver the emergency mail to a local account on the backup machine  
I made another dot courier file, .courier-emergency with a local  
account in it. My question is, after reading more carefully it  
shouldn't actually work (it does though.) Is courier rewriting the  
address to something like "[email protected]" in order to  
match? How can I make a dot courier file to match a name that includes  
a hyphen? For example, "[email protected]" is matched  
by .courier-nagios but not by .courier-nagios-emergency which is fine  
except that "[email protected]" may be required to be treated  
differently.

Am I approaching this wrong? Is there something I'm missing about the  
dot courier syntax?

Jason

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to