Lewati ke isi

Mailgun sebagai SMTP relay server

lalala

#
sudo debconf-set-selections <<< "postfix postfix/main_mailer_type select Satellite system"
#
sudo debconf-set-selections <<< "postfix postfix/mailname string $HOSTNAME"
#
sudo debconf-set-selections <<< "postfix postfix/relayhost string [smtp.mailgun.org]:2525"
#
sudo apt -y install postfix mailutils
#
sudo nano /etc/postfix/sasl_passwd
#
[smtp.mailgun.org]:2525 [email protected]:e7947fd9b718808e4c0dbacbf447c503
#
sudo chmod 600 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
#
sudo nano /etc/postfix/main.cf
#
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_sasl_mechanism_filter = AUTH LOGIN
smtpd_relay_restrictions = permit_mynetworks
# permit_sasl_authenticated = defer_unauth_destination
smtp_generic_maps = hash:/etc/postfix/generic

#
sudo systemctl restart postfix
#
sudo ufw status
#
sudo nano /etc/postfix/generic
#
[email protected] [email protected]
#
sudo postmap /etc/postfix/generic
#
sudo nano /etc/aliases
#
root:   [email protected]
#
sudo systemctl restart postfix
#
mail -s "Uji surel" [email protected] <<< "A test message using Mailgun"


echo -s 'Halo Adek.' | mail -s Dari-SMTP-Mailgun-WOW-Proxsis-Odoo [email protected]

tail -n 5 /var/log/syslog

Sending Email with Mailgun
How to Set Up a Mail Relay with Postfix and Mailgun on Ubuntu 16.04