[rt-users] mail solutions

Landon Stewart lstewart at iweb.com
Tue May 26 16:06:06 EDT 2015

> On May 26, 2015, at 11:18 AM, Terry O'Leary <toleary at wth.com> wrote:
> We have 14 different queues so using fetchmail to manage the email accounts is useful for us. But that is where the problem lies as well I think. Fetchmail doesn’t seem to be deleting the email from the inbox consistently. Sometimes it works and sometimes it doesn’t. I have gone the route of working with the Network Engineering team to see if there were any configuration changes or updates to exchange that may have done but came up with nothing. The emails get to their respective inboxes, then fetchmail (I have running in a crontab every minute) executes to pick up and send any emails to RT mailgate.:
> Here is an example:
> poll imap.corp.test.com <http://imap.corp.test.com/> proto IMAP and port 143:
> # Team Queue
> username team                      password 123456 mda "/opt/rt4/bin/rt-mailgate --url http://test <http://test/> --queue 'Team Requests' --action correspond"
> username team-comments password 123456 mda "/opt/rt4/bin/rt-mailgate --url http://test <http://test/> --queue 'Team Requests' --action comment"
> I know this isn’t a fetchmail forum, but any input would be gladly taken.

Just in case you are - I wouldn't cron it since you'll get duplicate processes checking the mailbox at the same time which would account for duplicates.  If you have to cron it though use flock to make sure more than one is never running at the same time:

/usr/bin/flock -n /tmp/fetchmail.lockfile /path/to/fetchmail -blahblahblah

I'm assuming you start fetchmail as a daemon instead of cron'd though.  If you are running fetchmail as a daemon make sure you use --uidl when starting the daemon in the /etc/init.d (or equivalent) something like this:

/usr/bin/fetchmail --uidl -f /etc/fetchmail.conf

-U | --uidl

       (Keyword: uidl)
       Force UIDL use (effective only with POP3).  Force client-side tracking of  'newness'  of  messages
       (UIDL  stands  for  "unique  ID  listing"  and is described in RFC1939).  Use with 'keep' to use a
       mailbox as a baby news drop for a group of users. The fact  that  seen  messages  are  skipped  is
       logged,  unless  error  logging  is  done  through syslog while running in daemon mode.  Note that
       fetchmail may automatically enable this option depending on upstream  server  capabilities.   Note
       also  that  this option may be removed and forced enabled in a future fetchmail version. See also:

Landon Stewart : lstewart at iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com : +1 (888) 909-4932

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150526/cc4918f4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 271 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150526/cc4918f4/attachment.sig>

More information about the rt-users mailing list