Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt install -y rsyslog
- apt remove sendmail --purge
- apt-get install postfix libsasl2-modules mailutils mc -y
- mcedit /etc/postfix/main.cf
- smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
- myhostname = localhost.localdomain
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- mydestination =.
- relayhost =.
- mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
- mailbox_command = procmail -a "$EXTENSION"
- mailbox_size_limit = 0
- recipient_delimiter = +
- inet_interfaces = loopback-only
- inet_protocols = all
- virtual_alias_maps = hash:/etc/postfix/virtual
- mcedit /etc/postfix/virtual
- postmaster [email protected]
- root [email protected]
- postmap /etc/postfix/virtual
- sudo dpkg-reconfigure postfix
- sudo postfix reload
- sudo postfix check
- sudo postfix reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement