My Courier server hosts several virtual domains, and I'm trying to configure a catch all address only for a few of the hosted domains. All the mail accounts are listed in /etc/courier/userdb.
I've read dot-courier manpage, but I almost certainly got it wrong. To my understanding, when the recipient cannot be found, /etc/courier/aliasdir is the last resort and the file /etc/courier/aliasdir/.courier-default is where I should put the catch all rule. However that file is a global one and it follows the .courier syntax, so I can't specify aliases there, but only delivery instructions. I thought the HOST environment variable could be useful in my case and I tried to use it writing this delivery instruction in that file: catchall@$HOST That way, if the domain does have a catchall@ address configured, it will receive the delivery, otherwise the mail will bounce as undeliverable. However for some reason it doesn't work that way: it delivers tons of spam of any domain to the postmaster instead, including messages of the domains that do have a catchall address... Could you please help me understand what's wrong with my configuration? ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users