linux:postfix
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
linux:postfix [2017/03/10 19:08] – created rlunaro | linux:postfix [2017/03/12 15:33] – [Config] rlunaro | ||
---|---|---|---|
Line 12: | Line 12: | ||
< | < | ||
sudo apt-get install postfix | sudo apt-get install postfix | ||
+ | sudo apt-get install mailutils | ||
</ | </ | ||
Line 20: | Line 21: | ||
< | < | ||
cp / | cp / | ||
+ | </ | ||
+ | |||
+ | This is my configuration for a host that it is isolated in internet, and | ||
+ | it has no special needs (it is not the mail server for any domain, it only | ||
+ | needs to send some emails): | ||
+ | |||
+ | < | ||
+ | # See / | ||
+ | |||
+ | |||
+ | mail_owner = postfix | ||
+ | |||
+ | # Debian specific: | ||
+ | # line of that file to be used as the name. The Debian default | ||
+ | # is / | ||
+ | myhostname = cloud.mister-i.com | ||
+ | |||
+ | mydomain = mister-i.com | ||
+ | |||
+ | myorigin = $myhostname | ||
+ | |||
+ | mydestination = $myhostname, | ||
+ | |||
+ | mynetworks_style = host | ||
+ | |||
+ | relay_domains = $mydestination | ||
+ | |||
+ | smtp_generic_maps = hash:/ | ||
+ | |||
+ | smtpd_banner = $myhostname ESMTP $mail_name | ||
+ | biff = no | ||
+ | |||
+ | # appending .domain is the MUA's job. | ||
+ | append_dot_mydomain = no | ||
+ | |||
+ | # Uncomment the next line to generate " | ||
+ | # | ||
+ | |||
+ | readme_directory = no | ||
+ | compatibility_level = 2 | ||
+ | |||
+ | inet_interfaces = all | ||
+ | inet_protocols = all | ||
+ | |||
+ | smtpd_use_tls = no | ||
+ | smtp_use_tls = no | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Open firewall ==== | ||
+ | |||
+ | |||
+ | < | ||
+ | ufw allow 25 465 587 | ||
+ | </ | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ==== Do some testing ==== | ||
+ | |||
+ | |||
+ | < | ||
+ | mail --subject=" | ||
</ | </ | ||
linux/postfix.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1