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. Server-Side Email Filtering with Sieve Another post for the peripheral brain. When I first set...
  3. Fail2ban on Leopard Server So here I am running my own server — for...
  4. Verizon Thinks You’re a Spammer They must. Verizon now blocks port 25 and does not...
  5. Leopard Server DHCP-NAT Well, I’m finally getting most of the initial stuff for...

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

This entry was posted in computer, osx-server and tagged , , . Bookmark the permalink.

3 Responses to Forwarding Email in Leopard Server

  1. Reed Jackson says:

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

  2. Andy says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.