Postfix: Difference between revisions

From annawiki
No edit summary
No edit summary
Line 1: Line 1:
postmap /etc/postfix/virtual
postconf -n | grep virtual
/etc/init.d/postfix reload
#OR
service postfix reload
==Address==
  cat /etc/postfix/vi main.cf.new
  cat /etc/postfix/vi main.cf.new
   
   
Line 10: Line 17:
  myhostname = tango.info
  myhostname = tango.info


==/etc/mailname==
===/etc/mailname===
  cat /etc/mailname
  cat /etc/mailname
  tango.info (CHANGE to anna.info - some email will now have  
  tango.info (CHANGE to anna.info - some email will now have  
Line 19: Line 26:
   )
   )


==mydomain==
===mydomain===
  cat /etc/postfix/main.cf
  cat /etc/postfix/main.cf
  myorigin = /etc/mailname
  myorigin = /etc/mailname
Line 27: Line 34:
CHANGE to anna.info - no influence?
CHANGE to anna.info - no influence?


==myhostname==
===myhostname===
CHANGE to anna.info - messag-ID now 12345789@anna.info
CHANGE to anna.info - messag-ID now 12345789@anna.info

Revision as of 2017-09-07T18:25:20

postmap /etc/postfix/virtual
postconf -n | grep virtual
/etc/init.d/postfix reload
#OR
service postfix reload

Address

cat /etc/postfix/vi main.cf.new

myhostname = tango.info
mydestination = localhost, $myhostname
myorigin = /etc/mailname
cat /etc/postfix/main.cf
myorigin = /etc/mailname
mydomain = tango.info
myhostname = tango.info

/etc/mailname

cat /etc/mailname
tango.info (CHANGE to anna.info - some email will now have 
 smtp.mailfrom=xxx@anna.info
 Return-Path: <xxx@anna.info>
 From: xxx <xxx@anna.info>
 but message ID still 1234567890@tango.info
 )

mydomain

cat /etc/postfix/main.cf
myorigin = /etc/mailname
mydomain = tango.info
myhostname = tango.info

CHANGE to anna.info - no influence?

myhostname

CHANGE to anna.info - messag-ID now 12345789@anna.info