postfix not delivering locally but making MX lookup

Discussion in 'Server Operation' started by Ovidiu, Oct 15, 2016.

  1. Ovidiu

    Ovidiu Active Member

    I'm trying to move the emails for knightsenglish.com from an old server to a new one. I thought I had set everything up correctly but there is still a big oopsie on the new server.

    the MX record is set to an appliance which scans and filters email and then forwards it to the server where the user accounts are located. Unfortunately, this new server is confused, instead of simply handing over the emails to the local delivery agent it does a MX lookup and forwards to the appliance which then relays the email again to the server and this loop goes on.

    the new server is called: mike.knightsenglish.com and has (inside /etc/postfix/main.cf)
    mydomain = knightenglish.com
    mydestination = $mydomain, localhost.$mydomain, localhost

    what am I missing here? any pointers?
     
  2. Ovidiu

    Ovidiu Active Member

    Fixed by changing:
    Code:
    mydestination = $mydomain, localhost.$mydomain, localhost
    to:
    Code:
    mydestination = knightsenglish.com, $mydomain, localhost.$mydomain, localhost, localhost.localdomain
    no idea why declaring $mydomain was not enough but it works now after I have specifically added the domain.
     

Share This Page