Postfix not sending outgoing Mail since IP address Change

Discussion in 'Installation/Configuration' started by allbestmp, Jan 28, 2010.

  1. allbestmp

    allbestmp New Member

    Dear friends,
    I have recently changed my IP address to my VPS, since that moment the server was perfect and I used the perfect server setup for UBUNTU 9.04 guide.
    So i have ISPConfig3 installed on my machine: fantastic tool, really simplified my life.

    I have migrated to new IP, and everything seems to work fine, except the Postfix outgoing mail service. I have cheked and checked the configuration files, but I cannot find a result. Mail service works in localhost (between local addresses) but not for external mail addresses :confused:

    I attach some log that could be helpful

    netstat -tap | grep smtp
    telnet localhost 25
    This is a part of the mail log
    Thank you so so much for you help
    and thanks for your incredible tool :)

  2. till

    till Super Moderator

    Make sure that your /etc/hosts file contains a line for the IPv6 localhost:

    ::1 ip6-localhost ip6-loopback

    or reconfigure postfix to use IPv4 only.

    Yes, thats the way you configured it with "bind-address =" as this allows postfix only to process local emails and not to receive any external emails. Run:

    dpkg-reconfigure postfix

    to reconfigure your postfix setup.
    Last edited: Jan 29, 2010
  3. allbestmp

    allbestmp New Member

    Thank you for you kind answer,
    this is my host file

    So it seems localhost with ipv6 was alredy configured.
    I corrected the bind-address for postfix,

    When I try to send mail i continue to have problems in postfix log :(

    this is my /etc/postfix/

    Do I have to add the ::1 host to hosts?

    Thank you again for your kind answer
    Last edited: Jan 29, 2010
  4. falko

    falko Super Moderator

    No - "hosts = " is your MySQL server, so this is correct.
  5. allbestmp

    allbestmp New Member

    What can I do now?


    Thank you
  6. allbestmp

    allbestmp New Member

    This is an update of my Mail log

  7. allbestmp

    allbestmp New Member

    on the line

    seems like postfix is trying to connect to my old fqdn and ip address, how can I correct it?

    Thanks again
  8. till

    till Super Moderator

    Check /etc/hosts and also your dns server and the hostname in postfix and the file /etc/hostname.
  9. allbestmp

    allbestmp New Member

    This is my etc/hosts

    It seems no problem here

    this is my ect/hostname

    and this is correct too

    and this is my postfix

    everything seems fine to me here too

    Any suggestion?
    Thank you
    Last edited: Jan 29, 2010
  10. falko

    falko Super Moderator

    What's in /etc/mailname? What are the outputs of
    hostname -f
  11. allbestmp

    allbestmp New Member

    dear falko

    this is the output for both of them

    so it is still correct :confused::confused::confused:

    I think I must consider to try with a fresh setup :eek:

  12. falko

    falko Super Moderator

    What's the output of
    dig -x <your_new_ip>

Share This Page