linux:postfix
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:postfix [2017/03/10 18:14] – rlunaro | linux:postfix [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| < | < | ||
| sudo apt-get install postfix | sudo apt-get install postfix | ||
| + | sudo apt-get install mailutils | ||
| </ | </ | ||
| Line 29: | Line 30: | ||
| # See / | # See / | ||
| + | |||
| + | mail_owner = postfix | ||
| # Debian specific: | # Debian specific: | ||
| Line 44: | Line 47: | ||
| relay_domains = $mydestination | relay_domains = $mydestination | ||
| + | |||
| + | smtp_generic_maps = hash:/ | ||
| smtpd_banner = $myhostname ESMTP $mail_name | smtpd_banner = $myhostname ESMTP $mail_name | ||
| Line 55: | Line 60: | ||
| readme_directory = no | readme_directory = no | ||
| + | compatibility_level = 2 | ||
| + | inet_interfaces = all | ||
| + | inet_protocols = all | ||
| + | smtpd_use_tls = no | ||
| + | smtp_use_tls = no | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | It's very important to configure the file ''/ | ||
| + | users to complete email addresses: | ||
| + | |||
| + | < | ||
| + | # REMEMBER!!!! After making changes to this file you must run: | ||
| + | # | ||
| + | # postmap / | ||
| + | # | ||
| + | # | ||
| + | |||
| + | username | ||
| + | </ | ||
| + | |||
| + | In that way, every outgoing email is rewrited from username@localhost to username@complete.server.address.com and nowadays email servers can recognize it as a valid email | ||
| + | address. | ||
| + | |||
| + | After that **don' | ||
| + | |||
| + | ==== Open firewall ==== | ||
| + | |||
| + | |||
| + | < | ||
| + | ufw allow 25 | ||
| + | </ | ||
| + | |||
| + | http:// | ||
| + | |||
| + | ==== Do some testing ==== | ||
| + | |||
| + | |||
| + | < | ||
| + | mail --subject=" | ||
| </ | </ | ||
linux/postfix.1489169685.txt.gz · Last modified: 2022/12/02 21:02 (external edit)
