postfixhoz smarthost

Gabor SZOLLOSI szogi-lists at tmp.hu
2008. Már. 5., Sze, 09:03:40 CET


Szia!

On Wed, 2008-03-05 at 08:46 +0100, Bálint István wrote:

> - hogyan lehetne a postfixet rábírni, hogy a t-online-os SMTP-t 
> használja levélküldésre? Hiába adom meg smarthostnak a 
> mail.t-online.hu-t (ott usernév és password kell, de ileyet nem tudok 
> beadni a Postfixnek)?

Pedig lehet:
/etc/postfix/main.cf-be:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =

/etc/postfix/sasl_passwd-be:
mail.t-online.hu username:password

Mivel cleartext jelszo, igy nem art elrejteni:
chown root:root /etc/postfix/sasl_passwd
chmod 600 /etc/postfix/sasl_passwd

Csinalunk belole db-t:
postmap /etc/postfix/sasl_passwd
chmod 644 /etc/postfix/sasl_passwd

Postfix reload:
/etc/init.d/postfix reload

-- 
Szöllősi Gábor



További információk a(z) Techinfo levelezőlistáról