Changing hostname for mailers

Discussion in 'Installation/Configuration' started by zyzzza, Dec 17, 2023.

  1. zyzzza

    zyzzza Member

    Hi,
    Running old server , and noticed that mail sent form PHPmailer would have old domain name in headers. When i search of an old hostname in /etc forder i get these results (image below) with mentions. Shoul di just replace them manually and restart , or should i change things via admin panel as well ?

    upload_2023-12-17_13-13-13.png
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    What are the hostnames set in:
    /etc/mailname
    /etc/hostname
    /etc/hosts
    /etc/postfix/main.cf - The "myhostname = " config

    And which files have the new one and which the old?
     

Share This Page