[rt-users] fetchmail

Jan-Frode Myklebust Jan-Frode.Myklebust at bccs.uib.no
Mon Apr 25 14:07:14 EDT 2005


On Mon, Apr 25, 2005 at 01:09:28PM -0400, spiv007 wrote:
> Has anyone us rt with fetchmail before?  

Yes.

I use this .fetchmailrc:

set daemon 600
poll mail.ii.uib.no protocol imap user rt with password illnevertell ssl idle mda '/usr/bin/procmail -m /export/home/rt/rt-home/.procmailrc'

and the following .procmailrc to select which queue to route the
messages to:

############################################
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:/localnet/bin:.
PATH=/export/home/rt/perl/bin/:/export/home/rt/rt/bin/:/bin:/usr/bin
MAILDIR=$HOME/Mail      # You'd better make sure it exists
DEFAULT=$MAILDIR/inbox/
LOGFILE=$HOME/.maillog
LOCKFILE=$HOME/.lockmail

:0 c
* ^TO.trouble at ii.uib.no
|rt-mailgate --queue trouble --action correspond --url http://support.bccs.no/
 
:0 c
* ^TO.trouble-comment at ii.uib.no
|rt-mailgate --queue trouble --action comment --url http://support.bccs.no/

# Save a copy of all tickets just in case something should fail:
:0 
$MAILDIR/inbox/
############################################

Works perfectly fine for us.


  -jf



More information about the rt-users mailing list