Solved

Fetchmail Authentication Issues

Posted on 2009-07-15
3
822 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

776 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