7 messages in net.sourceforge.lists.courier-users[courier-users] Re: Virtual Domain "C...
FromSent OnAttachments
Morgan MassenaOct 15, 2001 11:04 am 
SysopOct 15, 2001 11:18 am 
SysopOct 15, 2001 11:53 am 
Sam VarshavchikOct 15, 2001 3:10 pm 
Alessandro VeselyOct 16, 2001 12:08 am 
Morgan MassenaOct 17, 2001 3:59 pm 
Mark ConstableOct 18, 2001 2:48 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re: Virtual Domain "Catch-all" AccountActions...
From:Alessandro Vesely (ves@tana.it)
Date:Oct 16, 2001 12:08:47 am
List:net.sourceforge.lists.courier-users

Morgan,

aliases work their own way in courier. To catch [some] unaddressed mail I resorted to scripting, in order to differentiate between 'well known' aliases without specifying them for each domain. I put a .courier-default file in the aliasdir subdirectory of courier config dir. It contains the single line that follows: || /etc/courier/aliasdir/courierdefault.sh

Then, courierdefault.sh is coded something like ----- begin code snippets ----- #!/bin/sh case $HOST in onedomain*) NEWADDR="use@thatdomain.com";; twodomain*) # ... # ... and/or # ... LCLOCAL=`echo $LOCAL | tr '[A-Z]' '[a-z]'` case $LCLOCAL in postmaster|admin|operator|root) NEWADDR="me@mydomain.com";; # ... # ... and eventually # ... printf "$NEWADDR\n"

exit $EXIT_CODE ----- end code snippets -----

That code is run as a last resort after Courier cannot find an appropriate alias or user. However, mail for user@domain.com will be bounced without resorting to the system .courier-default if user1 is found but has no .courier-default in his home directory. I'm not sure if the latter idiosyncrasy is a bug or a feature.

Hope this helps, Ciao Ale

Morgan Massena writes:

I'm converting our mail system from sendmail to the full blow courier package and I'm getting stuck on some of the alias differences. Under sendmail we have the following entries in the virtusertable file:

use@domain.com user1 use@domain.com user2 use@domain.com user3 use@domain.com user4 sal@domain.com user1 in@domain.com user1 @domain.com user1

When an email is sent sendmail goes through the list and if it finds a correspinding us@domain.com entry the mail is delivered to the specified local account. If sendmail gets to the bottom of the list without hitting a corresponding us@domain.com the last line delivers the piece of mail to the account specified.

I'm not sure what the best way to accomplish this in courier is. I could direct all mail for domain.com to a single account and then create .courier-user files which forward the mail to us@domain.com but this seems pretty awkward. Has anyone out there ran across this problem and come up with an easier solution?