I went through the howto step-by-step, but I could not find anything I was doing wrong. Conceptually everything the same, just the file names were different. I was going to reply and say the files were the exact same as before the problem. However, that is not entirely true, I changed the main.cf to this:
mydomain = domain1.com
myhostname = mail.domain1.com
myorigin = domain1.com
because domain1.com is the real domain of the server (per 'domainname'). In /var/log/mail,info I was seeing this:
Jul 17 09:33:18 sonne postfix/pipe[5982]: F0DA7282C0D5: to=<garion@domain1.com>, orig_to=<donnovan@domain2.com>, relay=cyrus, delay=0.69, delays=0.55/0.01/0/0.12, dsn=2.0.0, status=sent (delivered via cyrus service)
When I restored the files to the *real* originals (e.g mydomain = domain3.com), I got this:
Jul 17 10:44:27 sonne postfix/pipe[10142]: B327D282C0BF: to=<donnovan@domain3.com>, orig_to=<donnovan@domain2.com>, relay=cyrus, delay=0.36, delays=0.24/0.01/0/0.1, dsn=2.0.0, status=sent (delivered via cyrus service)
What I don't understand is the mechanism that sent all email to
garion@domain1.com. Both garion and donnovan are real local users, so it might make sense if the system tried to redirect
donnovan@domain2.com to
donnovan@domain1.com, but it doesn't make sense that it is redirected to a completely different user (garion@domain1.com).
Any ideas?