SMTP autorizace u Postfixu

Pokud potřebujete nastavit SMTP autorizaci u serveru postfix pro smart hosta, je to jednoduché. Editujte /etc/postfix/main.cf:

relayhost = [smtp.mujserver.cz]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
smtp_sasl_type = cyrus
smtp_sasl_security_options = noanonymous

Dále vytvořte soubor saslpass:

# echo "smtp.mujserver.cz jmeno:heslo" > /etc/postfix/saslpass
# chown root:root /etc/postfix/saslpass && chmod 600 /etc/postfix/saslpass

A nakonec vytvořte hash databázi, reloadujte postfix a nechte všechny zprávy ve frontě znovu doručit:

# postmap hash:/etc/postfix/saslpass
# /etc/init.d/postfix reload
# /etc/init.d/postfix flush

Diskuze

If you can't read the letters on the image, download this .wav file to get them read to you.
pridej.cz
blog/smtp_autorizace_u_postfixu.txt · Poslední úprava: 29.05.2008 09:04 (external edit)
Creative Commons License Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0