On Thursday 22 April 2004 15:21, Thoralf Rickert wrote:
In /etc/courier/aliases/users I've added a line like this:
@<domain2>: user@<domain1>
I've called makealiases.
You're missing a step. What this syntax means is that when a message arrives
for joe@domain2 then it will be delivered to user-joe@domain1. You need to
include instructions in the "user@domain1" account which tell courier what to
do with that address or it will be rejected.
Read the "Virtual Domains" section of the makealiases man page to see exactly
how this works. Basically if you want "postmaster@domain2" to be accepted
and delviered then you need to create a ".courier-postmaster" file in the
HOME directory for "user" whch tells courier what to do with mail for that
address. You can also use a .courier-default file in the user account which
tells courier what to do with mail that doesn't match anything else. So if
you put "./Maildir" into a .courier-default file for "user" then ALL mail
@domain2 would be accepted and stored in user's INBOX.