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

Related posts:

  1. Forwarding Email in Leopard Server, part 2 I’ve previously written about problems with Leopard server and forwarding...
  2. Fail2ban on Leopard Server So here I am running my own server — for...
  3. Leopard Server DHCP-NAT Well, I’m finally getting most of the initial stuff for...
  4. Switching to Mail.app I’ve recently switched to Mail.app. I never really used it...
  5. Securing Email I think I’ve finally accomplished it. It being getting my...

Related posts brought to you by Yet Another Related Posts Plugin.

3 Comments

  1. Posted June 2, 2008 at 9:00 pm | Permalink

    Wondering if you ever found a more elegant solution? Great post. Thanks.

  2. Andy
    Posted June 3, 2008 at 9:38 am | Permalink

    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.

  3. Andy
    Posted June 6, 2008 at 1:27 pm | Permalink

    Reed, I posted a follow-up solution.

    http://thefragens.com/blog/2008/06/forwarding-email-in-leopard-server-part-2/

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*