Ciao, sto provando a configurare il mio server postfix per spedire mail con ngi (che richiede autenticazione anche sull'smtp).
Ho quindi aggiunto queste righe a main.cf
codice:
relayhost = smtp.ngi.it
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
e in sasl_passwd:
codice:
ngi.it utente:pass
rilanciato il comando postmap per i due file, e riavviato postfix.
Provo a mandare un messaggio con questo comando da shell:
e nel frattempo in un altra shell l'output del comando:
codice:
tail -f /var/log/mail.info
è il seguente:
codice:
Nov 7 12:14:41 localhost postfix/pickup[2324]: 6D2D69E67: uid=0 from=<root>
Nov 7 12:14:41 localhost postfix/cleanup[2329]: 6D2D69E67: message-id=<20051107111441.6D2D69E67@caladan.it>
Nov 7 12:14:41 localhost postfix/qmgr[2325]: 6D2D69E67: from=<gianiaz@ngi.it>, size=309, nrcpt=1 (queue active)
Nov 7 12:14:42 localhost postfix/smtp[2327]: warning: smtp.ngi.it[213.92.5.57] offered AUTH option multiple times
Nov 7 12:14:42 localhost postfix/smtp[2327]: 6D2D69E67: to=<gianiaz@gmail.com>, relay=smtp.ngi.it[213.92.5.57], delay=1, sta
tus=bounced (host smtp.ngi.it[213.92.5.57] said: 550 Unable to relay for gianiaz@gmail.com. (in reply to RCPT TO command))
Nov 7 12:14:42 localhost postfix/cleanup[2329]: 4CE699E65: message-id=<20051107111442.4CE699E65@caladan.it>
Nov 7 12:14:42 localhost postfix/qmgr[2325]: 4CE699E65: from=<>, size=2043, nrcpt=1 (queue active)
Nov 7 12:14:42 localhost postfix/qmgr[2325]: 6D2D69E67: removed
Nov 7 12:14:42 localhost postfix/smtp[2327]: warning: smtp.ngi.it[213.92.5.57] offered AUTH option multiple times
Nov 7 12:14:43 localhost postfix/smtp[2327]: 4CE699E65: to=<gianiaz@ngi.it>, relay=smtp.ngi.it[213.92.5.57], delay=1, status
=sent (250 ::ffff:81.174.39.29+apIuHLRfytm7 Mail accepted)
Nov 7 12:14:43 localhost postfix/qmgr[2325]: 4CE699E65: removed
la mail ovviamente non arriva, ma non riesco a capire dove sta il problema....
mi date una mano?
grazie