Simple example to setup postfix with satellite SMTP
- install postfix
sudo aptitude install postfix
- configure postfix
sudo vi /etc/postfix/smtp_auth
add your smtp authentication information in /etc/postfix/smtp_auth:smtp.foo.bar user@host:password
and generate the postfix lookup table file (/etc/postfix/smtp_auth.db) usingsudo postmap /etc/postfix/smtp_auth
add the relayhost (outgoing smtp server e.g. smtp.foo.bar on port 587, depending your relay host info) information to /etc/postfix/main.cf:relayhost = [smtp.foo.bar]:587
add the following lines to /etc/postfix/main.cf in order to enable smtp-auth for outgoing mails:smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth smtp_sasl_security_options = noanonymous
- restart postfix
sudo service postfix restart
No hay comentarios:
Publicar un comentario