====== 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 {{tag>linux}} ~~DISCUSSION~~