I have a debian 6.0 server with courier/courier-mta set up and some local domains. Now I want to create some forwards for some email address that should go directly to external addresses as there are no local users for those addresses.
Eg. I have an address "firstname.lastname@example.org" (its an example, I use a different address) and I want it to be redirected to "email@example.com" and also some other addresses from "example.com" but to different target domains.
I tried to configure courier with the webadmin interface and registered "example.com" as a local domain. Then under the aliases section i added the full "firstname.lastname@example.org" address (as there is no local account) and set "email@example.com" as recipient - but it didn't work. When I sent to the user I get:
The error that the other server returned was: 550 User unknown
Then I read something about courier aliases and created a new file "example.com" under the couriercfgdir/aliases and added some email addresses and targets (e.g.: "firstname.lastname@example.org: email@example.com") and run the "makealiases" command but it didn't change anything. I still receive the same 550 error when sending mail to firstname.lastname@example.org.
I'm not really the mail or linux guru but have some basic understanding. I thought maybe aliases is ignored as long as I don't use maildrop, so I changed the courier delivery options to use "maildrop" (and installed the courier-maildrop package), restarted the courier server but still no change.
And I also don't know where to find some sort of log file. /var/log/mail.log was last updated in june but I have received emails since then and I don't see any other logfile for courier.
Somehow it looks as if my aliases are ignored but I don't get why.
Does anyone have an idea why?