admispconfig email problem

Discussion in 'Installation/Configuration' started by pwatson, Dec 20, 2006.

  1. pwatson

    pwatson New Member

    I'm running v2.2.7 and I've recently changed the server domain name. Since doing so my user email addresses are getting Mail Undeliverable messages that are being sent by the server to [email protected]

    I believe these messages are related to mailstats - What do I need to edit to change the target address to [email protected] (or [email protected] to save any further problems)?

    If I upgrade to 2.2.9 will I cure the problem anyway as I presume I have the opportunity of specifying a suitable domainname then?


    Peter Watson
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This problem is not directly related to ISPConfig, so a update wont help. It is a wrong setting in the postfix configuration. Please make sure that you replace the old domainname with the new domainname in the postfix file and restart postfix.
  3. pwatson

    pwatson New Member

    I haven't got a domain name or host name explicitly defined in /etc/postfix/ so it should just pick up the machine name and domain?

    I've just restarted Postfix to see what happens.

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe the domain name is stored in /etc/mailname
  5. pwatson

    pwatson New Member

    I haven't got a /etc/mailname

    I've cured the problem by adding the old domain name to the end of /etc/postfix/local-host-names but I can't help feeling that this isn't the correct way to deal with it!
  6. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/hosts?
  7. pwatson

    pwatson New Member

    Hi Falko,

    /etc/hosts just contains (correctly) references to localhost and newdomain

    Perhaps I didn't make it clear enough that olddomain no longer points to the ISPConfig machine so curing the problem at a network level is incorrect (including my 'fix' of adding oldomain to local-host-names)

    To rephrase my original question - Where does ISPConfig lookup <domainname> when generating [email protected]<domainame> messages?


  8. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig is not looking up or setting a special dommainname, the emails are always send to [email protected], this address is hard coded. So the problem must be thet either localhost can not be resolved correctly by postfix or postfix is rewriting localhost to another domain.
  9. pwatson

    pwatson New Member

    Ah, I see! Thanks for that.

    It seems that Postfix is rewriting emails to [email protected] then and now I understand why you're suggesting looking at postfix files.

    I'll have a hunt around :)

    Thanks, and Merry Christmas!


Share This Page