OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
RE: POSTFIX can't relay through EXIM server

From: gregori andres (gregoriandresyahoo.com.ar)
Date: Mon Jun 11 2007 - 14:17:19 CDT


 
->
-> >
-> > ->
-> > -> Since "correouniksat.com" != "correo+uniksat.com", the
-> Postfix login
-> > -> fails. Fix the smtp password table so that the username
-> has an ""
-> > -> instead of "+".
-> >
-> > THANK YOU , very much Viktor.
-> >
-> > I've tried with "+" because I've readed on a form, and I've
-> > tried with "" ... both doesn't work.
-> >
-> > I think that is a postfix / exim authenticaction related problem.
-> >
-> > What do you think ?
->
-> I think that if you put the right data into the file, it will work,
-> and if you put the wrong data, it won't.
->
-> The right data is the same username as with Outlook and the
-> same password
-> as with Outlook, confirmed by examining the file with "postmap -q"
-> after it is edited and the table rebuilt.
->
-> Note, it is a best practice to put relayhosts inside [], to avoid any
-> surprises with MX records:
->
-> main.cf:
-> relayhost = [mail.example.net]
-> smtp_sasl_password_maps = hash:/etc/postfix/sasl_pass
->
-> sasl_pass:
-> [mail.example.net] correct-username:correct-password
->
-> To rebuild the table:
->
-> # postmap hash:/etc/postfix/sasl_pass
->
-> To validate the table:
->
-> # postmap -q "[mail.example.net]" hash:/etc/postfix/sasl_pass
->
-> The output should be:
->
-> correct-username:correct-password
->
-> "approximations" of the username and password won't work.
->
-> --
-> Viktor.
->
-> Disclaimer: off-list followups get on-list replies or get ignored.
-> Please do not ignore the "Reply-To" header.
->
-> To unsubscribe from the postfix-users list, visit
-> http://www.postfix.org/lists.html or click the link below:
-> <mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>
->
-> If my response solves your problem, the best way to thank me
-> is to not
-> send an "it worked, thanks" follow-up. If you must respond,
-> please put
-> "It worked, thanks" in the "Subject" so I can delete these quickly.

Hi.

I've tried debug peer mode, and my logs are:

Jun 11 13:22:47 mail postfix/smtp[23078]: Peer verification: CommonName in
certificate does not match: localhost != XX.YY.ZZ.TT
Jun 11 13:22:47 mail postfix/smtp[23078]: Peer certificate could not be verified
Jun 11 13:22:47 mail postfix/smtp[23078]: > XX.YY.ZZ.TT[XX.YY.ZZ.TT]: EHLO
XX.YY.ZZ.TT
Jun 11 13:22:47 mail postfix/smtp[23078]: vstream_fflush_some: fd 14 flush 26
Jun 11 13:22:48 mail postfix/smtp[23078]: vstream_buf_get_ready: fd 14 got 141
Jun 11 13:22:48 mail postfix/smtp[23078]: < XX.YY.ZZ.TT[XX.YY.ZZ.TT]:
250-server.XX.YY.ZZ.TT Hello 201-251-125-70.mrse.com.ar [A.B.C.D]
Jun 11 13:22:48 mail postfix/smtp[23078]: < XX.YY.ZZ.TT[XX.YY.ZZ.TT]: 250-SIZE
20971520
Jun 11 13:22:48 mail postfix/smtp[23078]: < XX.YY.ZZ.TT[XX.YY.ZZ.TT]:
250-PIPELINING
Jun 11 13:22:48 mail postfix/smtp[23078]: < XX.YY.ZZ.TT[XX.YY.ZZ.TT]: 250-AUTH
PLAIN LOGIN
Jun 11 13:22:48 mail postfix/smtp[23078]: < XX.YY.ZZ.TT[XX.YY.ZZ.TT]: 250 HELP
Jun 11 13:22:48 mail postfix/smtp[23078]: maps_find: smtp_sasl_passwd:
hash:/etc/postfix/saslpasswd(0,100): XX.YY.ZZ.TT = correoXX.YY.ZZ.TT:xxxxxx
Jun 11 13:22:48 mail postfix/smtp[23078]: smtp_sasl_passwd_lookup: host
`XX.YY.ZZ.TT' user `correoXX.YY.ZZ.TT' pass `xxxxxxx'
Jun 11 13:22:48 mail postfix/smtp[23078]: starting new SASL client
Jun 11 13:22:48 mail postfix/smtp[23078]: name_mask: noanonymous
Jun 11 13:22:48 mail postfix/smtp[23078]: smtp_sasl_authenticate:
XX.YY.ZZ.TT[XX.YY.ZZ.TT]: SASL mechanisms PLAIN LOGIN
Jun 11 13:22:48 mail postfix/smtp[23078]: smtp_sasl_get_user: correoXX.YY.ZZ.TT
Jun 11 13:22:48 mail postfix/smtp[23078]: smtp_sasl_get_user: correoXX.YY.ZZ.TT
Jun 11 13:22:48 mail postfix/smtp[23078]: smtp_sasl_get_passwd: cor123
Jun 11 13:22:48 mail postfix/smtp[23078]: smtp_sasl_authenticate:
XX.YY.ZZ.TT[XX.YY.ZZ.TT]: uncoded initial reply: correoXX.YY.ZZ.TT
Jun 11 13:22:48 mail postfix/smtp[23078]: > XX.YY.ZZ.TT[XX.YY.ZZ.TT]: AUTH PLAIN
Y29ycmVvQHVuaWtzYXQuY29tAGNvcnJlb0B1bmlrc2F0LmNvbQBjb3IxMjM=
Jun 11 13:22:48 mail postfix/smtp[23078]: vstream_fflush_some: fd 14 flush 73
Jun 11 13:22:48 mail postfix/smtp[23078]: vstream_buf_get_ready: fd 14 got 35
Jun 11 13:22:48 mail postfix/smtp[23078]: < XX.YY.ZZ.TT[XX.YY.ZZ.TT]: 535
Incorrect authentication data

do you have any hint ?

thank you , again

regards

andres.

        

        
                
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas