Knowledge that I’d like to document for the list. By trial and error, on Centos 5 I’ve found that you should use single quotes if your password contains special characters such as ‘$’. Double-quotes didn’t work. I also found (thx, Google) that in Exchange 2007 plaintext password authentication is disabled by default, but it can be turned on (assuming that POP3 is enabled on Exchange server in the 1st place) MS Exchange Tips: Exchange 2007: POP3 ERR Command is not valid in this state and many others.
Also, I think you can use secure POP3 (port 995) but it seems I would need a version of fetchmail with SSL compiled in. The stock version that comes with Centos 5.7 doesn’t. Nor does it have NTLM compiled in. NTLM can be used with IMAP (secure port 993) if I understand correctly.
[root@tracker ~]# fetchmail -V
fetchmail: WARNING: Running as root is discouraged.
This is fetchmail release 6.3.21+HESIOD+NLS.
Our Exchange server does have OWA (outlook web access), and I’ve found two tools that can access mailboxes via OWA - DavMail and FetchExc.
MikeFrom: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Ronen_Amity@DELL.com
Sent: Thursday, November 17, 2011 3:38 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] fetchmailrc
This is what we use (pulling emails from a gmail account, hence the 995 port)
:
~rt/.fetchmailrc:
set postmaster “ronen”
set daemon 600
pool pop.gmail.com with proto pop3 user ‘xx@gmail.com’ there with password ‘XXXXXXX’ is user5 here options ssl
crontab for user rt:
5,15,25,35,45,55 * * * * /usr/bin/fetchmail -d 0 -P 995 -ssl -smtpname xx@gmail.commailto:xx@gmail.com -u xx@gmail.commailto:xx@gmail.com pop.gmail.com -f fetchmail.test 2>&1 > /dev/null
fetchmail.test:
poll pop.gmail.com proto pop3:
username “xx@gmail.commailto:xx@gmail.com” password “XXXXXXXX” mda “/opt/rt4/bin/rt-mailgate --url http://cm-help --queue CM --action correspond”
Ronen
From: rt-users-bounces@lists.bestpractical.commailto:rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com]mailto:[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of 20/20 Lab
Sent: Wednesday, November 16, 2011 23:45
To: rt-users@lists.bestpractical.commailto:rt-users@lists.bestpractical.com
Subject: Re: [rt-users] fetchmailrc
Shouldnt you have "s around your user name?
the only difference I have in mine is
user “username” pass “password” to user here
tho our mailserver auths with full domain.