JohnJ80

Q: Mail aliases in Lion Server

I have two servers that are both running mail.  I'd like to be able to have them back each other up.  If an email comes into server 1 and server 2 (where account is) is not available, I'd like Server 1 to hold that mail until Server 2 comes back on line.

 

Previously, in OSX Server, in Workgroup Manager, you could specify a forwarding address for a user and this worked great. In Lion Server, there is no such provision.

 

So, I edited the /etc/aliases file to add an alias to each such user. I run newaliases and restart the mail server.  If I ( with an account on a given server) send an email from mail.app through that server, it properly forwards it to the right server.  If there is an incoming email from somewhere else on the internet, then it won't forward it to the correct server but simply rejects it.

 

I suppose I could go through and create a complete set of duplicate accounts and then go to the web client and specify the redirect through a filter but that would be a total pain.

 

What am I doing wrong? 

 

J.

Posted on Jun 27, 2012 3:05 PM

Close

Q: Mail aliases in Lion Server

  • All replies
  • Helpful answers

  • by Camelot,

    Camelot Camelot Jun 27, 2012 3:36 PM in response to JohnJ80
    Level 8 (47,337 points)
    Mac OS X
    Jun 27, 2012 3:36 PM in response to JohnJ80

    What you're doing wrong is over-complicating matters.

     

    You should setup the second server as a simple relay or backup MX - configure it to accept mail for your domain, but do not list your domain in postfix's mydestination parameter. That way it will accept mail for your domain, but attempt to relay it (to your primary mail server), rather than store it in a local mailbox.

     

    It's a common configuration, and covered at length online, including on Postfix's site.

  • by JohnJ80,

    JohnJ80 JohnJ80 Jun 28, 2012 8:41 AM in response to Camelot
    Level 1 (0 points)
    Jun 28, 2012 8:41 AM in response to Camelot

    Thanks.  That makes sense.

     

    Is there a way to do this without editing the main.cf files?  In other words, can this be done directly with the apple utilities? 

     

    J.

  • by Antonio Rocco,

    Antonio Rocco Antonio Rocco Jun 28, 2012 10:10 AM in response to JohnJ80
    Level 6 (10,616 points)
    Desktops
    Jun 28, 2012 10:10 AM in response to JohnJ80

    Hi

     

    "Previously, in OSX Server, in Workgroup Manager, you could specify a forwarding address for a user and this worked great. In Lion Server, there is no such provision."

     

    If I've understood you correctly that's not strictly true. There's a number of ways you can do this. You could consider using WebMail or the command line:

     

    http://support.apple.com/kb/HT5032

     

    HTH?

     

    Tony