Mostly a simple postfix question

Discussion in 'Server Operation' started by jodyflorian, Dec 19, 2007.

  1. jodyflorian

    jodyflorian New Member


    This is probably a simple problem, although I'm having trouble explaining! Here it goes:

    I have an ubuntu server running lamp with postfix.

    I just want to use postfix to send mail from php, nothing else.

    I use a third party server as my mail server which handles various addressses, like [email protected].

    When I get php to send a mail to [email protected], it incorrectly goes to the LAMP's postfix server, which then sends a user not found bounce. Instead, when I get php to send a mail to [email protected], shouldn't it use the third party mail server as specified by the MX records?

    I'm not sure what's going on but I presume this is a postfix configuration problem? Please could someone help me to get postfix sending emails to the MX server, not itself!!

  2. falko

    falko Super Moderator ISPConfig Developer

    Please make sure that is not listed in mydestination in /etc/postfix/
  3. jodyflorian

    jodyflorian New Member

    That must have been it

    Thanks, that must be the problem.

    For reference, Initially it was:
    mydestination =, localhost, localhost.localdomain, localhost
    From what you say, this is clearly the problem! For any of the destinations, it resolves to itself.

    I've just tried changing it to:
    mydestination =,
    After restarting, /etc/init.d postfix restart) The problem is fixed! :D


Share This Page