How to change hostname in Postfix SMTP on Debian Linux

Tuesday, 19th March 2013

Edit /etc/postfix/main.cf and see for line;

myhostname =

Define;

myhostname = YOUR_SMTP_HOSTNAME.COM
 

Also make sure it YOUR_SMTP_HOSTNAME.COM is defined as first one (in case of multiple ones) to mydestination =

mydestination = YOUR_SMTP_HOSTNAME.COM server1-bla-bla.com

Finally restart Exim;

debian:~# /etc/init.d/postfix restart
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
 

Share this on:

Download PDFDownload PDF

Tags: , ,

Leave a Reply

CommentLuv badge