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 admispconfig@olddomainname.

    I believe these messages are related to mailstats - What do I need to edit to change the target address to admispconfig@newdomainname (or admispconfig@localhost 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?

    Thanks,

    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 main.cf file and restart postfix.
     
  3. pwatson

    pwatson New Member

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

    I've just restarted Postfix to see what happens.

    Peter
     
  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 Howtoforge Staff

    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 admispconfig@<domainame> messages?

    Thanks,

    Peter
     
  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 admispconfig@localhost, 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 admispconfig@olddomain then and now I understand why you're suggesting looking at postfix files.

    I'll have a hunt around :)

    Thanks, and Merry Christmas!

    Peter
     

Share This Page