Postfix

From DuncanWiki
Jump to: navigation, search

Configuring a Relay Host

relay_host="smtp.example.com"
relay_user="relayboy"
sasl_passwd=/etc/postfix/sasl_passwd
read -p "enter relay_user_password " relay_user_password
echo "$relay_server   $relay_user:$relay_user_password" > $sasl_passwd
chown root:root $sasl_passwd
chmod 600 $sasl_passwd
postconf -e "relayhost = $relay_host"
postconf -e "smtp_sasl_auth_enable = yes"
postconf -e "smtp_sasl_password_maps = hash:$sasl_passwd"
postconf -e "smtp_sasl_security_options ="
Personal tools