Dr Fragen in the operating room

Forwarding Email in Leopard Server


OK, to put it mildly the Workgroup Manager and Email in Leopard Server has some quirks and problems.
I and others noted that a user whose email was set to forward would give a 550 error about not being able to access the users mailbox or the mailbox wasn’t set up. Well, since the mail is only forwarded the user really shouldn’t require a mailbox. It seemed to work in 10.5 but seems more broken in 10.5.1.
I think I found a fix, though I’m sure it’s not elegant. The problem seems to revolve around virtual mail hosting. I have 6 virtual mail hosts. It seems you need to add the virtual domains to the `/etc/postfix/main.cf` file.
The fix centers around the following line in `/etc/postfix/main.cf`.
mydestination = $myhostname,localhost.$mydomain,localhost
It seems that adding your virtual domain to the end of that list fixes the problem. It seems to work. Or at least it’s worked here for me. YMMV. Here’s what I did. I added $virtual_mailbox_domains to the end of mydestination so that in now reads..
mydestination = $myhostname,localhost.$mydomain,localhost,$virtual_mailbox_domains
I really hope the next update fixes some of these things. I also get the following error in the mail.log…
Feb 6 16:26:01 xxxxxx postfix/trivial-rewrite[34363]: warning: do not list domain vdomain1.com in BOTH mydestination and virtual_mailbox_domains
It doesn’t seem to cause any problems and it does forward without giving the sender an error. If anyone has a better solution let me know. BTW, this is not a recommended solution.
Don’t forget to `sudo postfix reload`


3 responses to “Forwarding Email in Leopard Server”

  1. Andy Avatar

    Reed, actually I did find a more elegant solution. It doesn’t involve editing /etc/postfix/main.cf is completely done within Server Admin and doesn’t seem to generate errors. I’ll have to confirm that last one. 😉

    Once I get some time I’ll do a follow-up post.