Solved

Fetchmail Authentication Issues

Posted on 2009-07-15
3
834 Views
Last Modified: 2013-11-29
We've just moved our email hosting in-house to a virtual Ubuntu server running Postfix and Courier. After the move, a fetchmail script I wrote for Request Tracker tickets has stopped working, Whenever I run fetchmail, it appends the POP3 server's hostname to the username when authenticating. Obviously, this fails. How can I make it accept just the email address as the username when authenticating to POP3?
The .fetchmail.rc file:
root@host:~# cat /opt/rt3/etc/fetchmailrc
poll mail.domain.com proto pop3:
user "support@domain.com"             password 123456abcdef   mda "/opt/rt3/bin/rt-mailgate --url http://support.domain.com:81 --queue Support --action correspond" sslproto ssl123
user "support-comment@domain.com"     password 123456abcdef   mda "/opt/rt3/bin/rt-mailgate --url http://support.domain.com:81 --queue Support --action comment" sslproto ssl123
user "projects@domain.com"            password 123456abcdef   mda "/opt/rt3/bin/rt-mailgate --url http://support.domain.com:81 --queue Projects --action correspond" sslproto ssl123
user "projects-comment@domain.com"    password 123456abcdef   mda "/opt/rt3/bin/rt-mailgate --url http://support.domain.com:81 --queue Projects --action comment" sslproto ssl123
 
Output when run:
root@host:~# fetchmail -f /opt/rt3/etc/fetchmailrc
fetchmail: WARNING: Running as root is discouraged.
fetchmail: Authorization failure on support@domain.com@mail.domain.com
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: Authorization failure on support-comment@domain.com@mail.domain.com
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: Authorization failure on projects@domain.com@mail.domain.com
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: Authorization failure on projects-comment@domain.com@mail.domain.com
fetchmail: Query status=3 (AUTHFAIL)

Open in new window

0
Comment
Question by:drbill1
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
kevin_u earned 500 total points
ID: 24866794
my initial reaction is that it only appends @mail.domain.com when it already failed without it, but then the messages prints with it.  You might want to check whether the pop server is only requiring "support" rather than "support@domain.com".


Another suggestion: rather than polling, you might want to switch your configuration to use procmail, and use procmailrc to redirect the delivery.  You will eliminate polling delays.

0
 

Author Closing Comment

by:drbill1
ID: 31603878
I get my Darwin award for today; the accounts didn't have a maildir yet on the server because they had yet to receive an email (we didn't go live yet on the new server, so nothing had arrived). My fault, but your suggestion did prompt me to look deeper. Thanks!
0
 

Author Comment

by:drbill1
ID: 24909316
I get my Darwin award for today; the accounts didn't have a maildir yet on the server because they had yet to receive an email (we didn't go live yet on the new server, so nothing had arrived). My fault, but your suggestion did prompt me to look deeper. Thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question