2008/9/11 Алексей Доморадов <[EMAIL PROTECTED]>:
>> On Thu, Sep 11, 2008 at 12:00:33PM -0300, Diego Ledesma wrote:
>>
>> >  testsaslauthd -u pruebarelay -p 1234 -f 
>> > /var/spool/postfix/var/run/saslauthd/mux
>> > 0: OK "Success."
>> >
>> > AUTH PLAIN AHBydWViYXJlbGF5CjM0
>> > 535 5.7.0 Error: authentication failed: bad protocol
>>
>> Wrong base64 string:
>>
>>     echo AHBydWViYXJlbGF5CjM0 | openssl base64 -d | od -c
>>     0000000  \0   p   r   u   e   b   a   r   e   l   a   y  \n   3   4
>>     0000017
>>
>> It should encode:
>>
>>     \0<username>\0<rightpassword>
>>
>> not,
>>
>>     \0<username>\n<wrongpassword>
> # perl -MMIME::Base64 -e 'print encode_base64("\0pruebarelay\0001234")'
> AHBydWViYXJlbGF5ADEyMzQ=
>
> Warning: If either of the user or password strings starts with an octal 
> digit, YOU MUST USE THREE ZEROS instead of one after the leading backslash. 
> If you do not, the octal digit that starts your string will be incorrectly 
> interpreted as part of the code for the first character.
>

Oh. I guess i shouldn't have set that password in the first place...
Thanks for the hint. I could authenticate succesfuly via telnet
I got the command for base64 enconde from
http://www.postfix.org/SASL_README.html#server_test but didn't know
the octal digit thing.

The problem i'm having now is that i SMTP authentication from the
outside is not working from an e-mail client. I tested it with
Evolution and Outlook Express and i get "Relay Access Denied"

This is what postifx's log says:
Sep 11 13:12:35 mailserver postfix/smtpd[7114]: connect from r190-64-67-14.dialu
p.adsl.anteldata.net.uy[190.64.67.14]
Sep 11 13:12:36 mailserver postfix/smtpd[7114]: NOQUEUE: reject: RCPT from r190-
64-67-14.dialup.adsl.anteldata.net.uy[190.64.67.14]: 554 5.7.1 <[EMAIL 
PROTECTED]
m>: Relay access denied; from=<[EMAIL PROTECTED]> to=<diegofl@
gmail.com> proto=SMTP helo=<desktop>
Sep 11 13:12:36 mailserver postfix/smtpd[7114]: disconnect from r190-64-67-14.di
alup.adsl.anteldata.net.uy[190.64.67.14]

Any help is greatly appreciated.
Thanks

Reply via email to