Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I'm trying to access the email for domain xx.com from another server through the Thinmailer web based email script. I set up the HOST, USER, PASSWORD, AUTH_METHOD and DEBUG variables correctly but it's still returning "Could not connect to xx.com - PASS failed: -ERR Bad login".

When I use the same script on the xx.com server, it does however connect correctly.

Any ideas?? This is really weird.

Any help will be appreciated.

Thanks,
Ralph.

Replies are listed 'Best First'.
Re: Remote email access issue
by tachyon (Chancellor) on May 02, 2003 at 11:57 UTC

    That message is exactly what a pop server will tell you if your username/password is incorrect - it probably is. There are three AUTH_METHODs for a POP3 server from memory - if the username and pass are really correct try changing that to (probably) BEST or perhaps APOP...depends on what is driving the login.

    First as a sanity check make sure you can actually connect from that box using telnet straight into the POP3 box:

    $ telnet mail.somesite.com 110 Connecting to mail.somesite.com.... +OK POP3 v2001.78rh server ready <5efa.3eb25bc1@mail.someite.org> USER <username_goes_here> [Enter] +OK User name accepted, password please PASS <password_goes_here> [Enter] -ERR Bad login PASS <correct_password!> [Enter] +OK Mailbox open, 250 messages QUIT [Enter] +OK Sayonara Connection to host lost. $

    You need to type in the alternate lines which is your half of the server dialog. No angle brackets! Note the standard error message if you put in the wrong password.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Re: Remote email access issue
by Anonymous Monk on May 07, 2003 at 20:54 UTC
    Hi,
    Thanks for the answer, but that didn't work :-(

    The username/password is correct. I'm using Apache 2.0, could the problem be with this? Cause the same script works just fine on the homes7.com domain.

    Thanks,
    Ralph.