Postfix: Difference between revisions
No edit summary |
|||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==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 | |||
info@example.info example@example.example | |||
After changing execute: | |||
postmap /etc/postfix/virtual | |||
===/etc/postfix/virtual_alias_domains=== | |||
cat /etc/postfix/virtual_alias_domains | |||
example.info | |||
example.com | |||
example.net | |||
example.org | |||
==Address== | |||
cat /etc/postfix/vi main.cf.new | cat /etc/postfix/vi main.cf.new | ||
Line 10: | Line 33: | ||
myhostname = tango.info | myhostname = tango.info | ||
==/etc/mailname== | ==/etc/postfix/main.cf== | ||
cat /etc/postfix/main.cf (partial): | |||
myorigin = /etc/mailname | |||
mydomain = example.info | |||
myhostname = example.info | |||
alias_maps = hash:/etc/aliases | |||
alias_database = hash:/etc/aliases | |||
virtual_alias_domains=/etc/postfix/virtual_alias_domains | |||
virtual_alias_maps=hash:/etc/postfix/virtual | |||
===/etc/mailname=== | |||
cat /etc/mailname | cat /etc/mailname | ||
example.info | |||
OLD: | |||
tango.info (CHANGE to anna.info - some email will now have | tango.info (CHANGE to anna.info - some email will now have | ||
smtp.mailfrom=xxx@anna.info | smtp.mailfrom=xxx@anna.info | ||
Line 18: | Line 55: | ||
but message ID still 1234567890@tango.info | but message ID still 1234567890@tango.info | ||
) | ) | ||
===mydomain=== | |||
cat /etc/postfix/main.cf | |||
myorigin = /etc/mailname | |||
mydomain = example.info | |||
myhostname = example.info | |||
OLD: | |||
mydomain = tango.info | |||
myhostname = tango.info | |||
CHANGE to anna.info - no influence? | |||
===myhostname=== | |||
CHANGE to example.info - message-ID now 12345789@example.info | |||
==Forwarding== | |||
* http://www.binarytides.com/postfix-mail-forwarding-debian/ | |||
== TLS == | |||
https://bettercrypto.org/#_postfix | |||
master.cf | |||
submission inet n - - - - smtpd | |||
-o smtpd_tls_security_level=encrypt | |||
-o tls_preempt_cipherlist=yes | |||
after that STARTTLS fails? | |||
===dh_4096.pem=== | |||
openssl dhparam -out /etc/postfix/dh4096.pem -2 4096 | |||
main.cf | |||
smtpd_tls_dh1024_param_file = /etc/postfix/dh4096.pem | |||
no effect at https://internet.nl/mail/tobiasconradi.com/751640/ |
Latest revision as of 2022-07-14T13:51:43
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 info@example.info example@example.example
After changing execute:
postmap /etc/postfix/virtual
/etc/postfix/virtual_alias_domains
cat /etc/postfix/virtual_alias_domains example.info example.com example.net example.org
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/postfix/main.cf
cat /etc/postfix/main.cf (partial): myorigin = /etc/mailname mydomain = example.info myhostname = example.info alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases virtual_alias_domains=/etc/postfix/virtual_alias_domains virtual_alias_maps=hash:/etc/postfix/virtual
/etc/mailname
cat /etc/mailname example.info
OLD:
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 = example.info myhostname = example.info
OLD:
mydomain = tango.info myhostname = tango.info
CHANGE to anna.info - no influence?
myhostname
CHANGE to example.info - message-ID now 12345789@example.info
Forwarding
TLS
https://bettercrypto.org/#_postfix
master.cf submission inet n - - - - smtpd -o smtpd_tls_security_level=encrypt -o tls_preempt_cipherlist=yes
after that STARTTLS fails?
dh_4096.pem
openssl dhparam -out /etc/postfix/dh4096.pem -2 4096
main.cf smtpd_tls_dh1024_param_file = /etc/postfix/dh4096.pem
no effect at https://internet.nl/mail/tobiasconradi.com/751640/