Koozali.org: home of the SME Server

Fetchmail wont play with some mailservers

Duncan

Fetchmail wont play with some mailservers
« on: March 09, 2002, 10:23:03 AM »
I currently run e-smith ver 4.1.2. I have no problems with collecting multi drop mail from my ISP. Every time i try ver 5.0 fetchmail will not work.

I have a box set up today with ver 5.0, update 2 and update 4. i have not played with this machine in any way. It is a standard install.

The following are some tests i tried from the command line using two different mailservers (note i also tried a mates username and password at mail.wn.com.au and it failed as well - it worked on 4.1.2)

[root@esmith /etc]# fetchmail -v -v -p POP3 mail.wn.com.au -u username
Enter password for username@mail.wn.com.au:
fetchmail: 5.7.4 querying mail.wn.com.au (protocol POP3) at Sat 09 Mar 2002 02:50:49 PM WST
fetchmail: POP3< +OK MailSite POP3 Server 4.5.4.0 Ready <21606808.1015656856.370@wn.com.au>
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< UIDL
fetchmail: POP3< SASL SCRAM-MD5 NTLM LOGIN CRAM-MD5
fetchmail: POP3< .
fetchmail: POP3> AUTH CRAM-MD5
fetchmail: POP3< + PDQ2NjQuMTAyMDMwOTE0NTQxNkBiYW5kaWNvb3Qud24uY29tLmF1Pg==
fetchmail: decoded as <4664.1020309145416@bandicoot.wn.com.au>
fetchmail: POP3> Z29sdGVsIGQ3ZDdmM2E2YjgyYTMwNWRmNjVjMzMxMTJiNGMxOTcz
fetchmail: POP3< -ERR CRAM-MD5 authentication refused
fetchmail: CRAM-MD5 authentication refused
fetchmail: POP3> USER *
fetchmail: POP3< +OK username is welcome here
fetchmail: POP3> PASS *
fetchmail: POP3< -ERR username logon failed
fetchmail: username logon failed
fetchmail: Authorization failure on username@bandicoot.wn.com.au
fetchmail: POP3> QUIT
fetchmail: POP3< +OK bandicoot.wn.com.au POP3 server signing off (mailbox empty)
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 3
fetchmail: Deleting fetchids file.
[root@esmith /etc]#


[root@esmith /etc]# fetchmail -v -v -p POP3 mail.bigpond.com -u username
Enter password for username@mail.bigpond.com:
fetchmail: 5.7.4 querying mail.bigpond.com (protocol POP3) at Sat 09 Mar 2002 02:46:49 PM WST
fetchmail: POP3< +OK POP3 server ready (identifier 48/1073188)
fetchmail: POP3> USER username
fetchmail: POP3< +OK please provide a password
fetchmail: POP3> PASS *
fetchmail: POP3< +OK mailbox ready
fetchmail: selecting or re-polling default folder
fetchmail: POP3> STAT
fetchmail: POP3< +OK 0 0
fetchmail: No mail for kalcomps at mail.bigpond.com
fetchmail: POP3> QUIT
fetchmail: POP3< +OK goodbye
fetchmail: not swapping UID lists, no UIDs seen this query
fetchmail: Query status=1 (NOMAIL)
fetchmail: Deleting fetchids file.
fetchmail: normal termination, status 1
fetchmail: Deleting fetchids file.
[root@esmith /etc]#

I have tried contacting the ISP to see what pop3 server they use but its the weekend and their not sure.

Any clues

Regards Duncan

guestHH

Re: Fetchmail wont play with some mailservers
« Reply #1 on: March 09, 2002, 12:32:25 PM »
Hi,

Did you apply the needed updates...?

What they do can be read here.

http://www.e-smith.org/release/5.0/status/


Regards,
guestHH

Duncan

Re: Fetchmail wont play with some mailservers
« Reply #2 on: March 09, 2002, 03:19:52 PM »
The updates have been applied.

After trying a few things i found that adding --auth password to the /etc/fetchmail file corrects the problem by forcing clear authentication. It appears that this version of fetchmail will try to authenticate using the best method available.

The following portion of the mail log doesnt appear in my 4.1.2 machine.

fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< UIDL
fetchmail: POP3< SASL SCRAM-MD5 NTLM LOGIN CRAM-MD5
fetchmail: POP3< .
fetchmail: POP3> AUTH CRAM-MD5
fetchmail: POP3< + PDQ2NjQuMTAyMDMwwrtOTE0NTQxNkBiYW5kaWNvb3Qud24uY29tLmF1Pg==
fetchmail: decoded as <4664.1020377095145416@bandicoot.wn.com.au>
fetchmail: POP3> Z29sdGVsIGQ3ZDdmM2E2YjgyYu77TMwNWRmNjVjMzMxMTJiNGMxOTcz
fetchmail: POP3< -ERR CRAM-MD5 authentication refused
fetchmail: CRAM-MD5 authentication refused
fetchmail: POP3> USER *

Either the mailserver is indicating a connection method it cant support or perhaps it is broken. Looking around the internet there are similar posts on other mailing lists.

Regards Duncan

ClaudioG

Re: Fetchmail wont play with some mailservers
« Reply #3 on: March 09, 2002, 06:41:44 PM »
Hi,

My SME (5.1.2) have the same problems.

Problems:
I've added multipop, then check 5 POP3 server:

2 works fine
3 reply AUTH_ERROR

Solution:
In the custom-templates i have added   '--auth password':
...
/sbin/fetchmail --syslog --auth password ...(...snip)
...

and then all works fine.

Regards,
ClaudioG