Solved

Fetchmail Authentication Issues

Posted on 2009-07-15
3
806 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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 how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now