?
Solved

Fetchmail Authentication Issues

Posted on 2009-07-15
3
Medium Priority
?
877 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
kevin_u earned 1500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
What is Usenet? There are many different opinions on exactly what Usenet is an isn't. Many opinions are incorrect simply out of ignorance. The Wikipedia listing about Usenet does a good job of explaining it, so instead of repeating it all here I wi…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

770 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