Postfix: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==Virtual== | |||
http://www.postfix.org/VIRTUAL_README.html | |||
postmap /etc/postfix/virtual | postmap /etc/postfix/virtual | ||
postconf -n | grep virtual | postconf -n | grep virtual | ||
Line 5: | Line 7: | ||
service postfix reload | service postfix reload | ||
==/etc/postfix/virtual== | ===/etc/postfix/virtual=== | ||
@example.com info@example.net team@example.net ##forward catch all to two addresses | @example.com info@example.net team@example.net ##forward catch all to two addresses | ||
After changing do: | |||
postmap /etc/postfix/virtual | |||
==Address== | ==Address== |
Revision as of 2018-11-17T18:55:38
Virtual
http://www.postfix.org/VIRTUAL_README.html
postmap /etc/postfix/virtual postconf -n | grep virtual /etc/init.d/postfix reload #OR service postfix reload
/etc/postfix/virtual
@example.com info@example.net team@example.net ##forward catch all to two addresses
After changing do:
postmap /etc/postfix/virtual
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 - message-ID now 12345789@anna.info