FetchMail Configuration


#1

Hi,
I am having an issue in RT . I have configured fetchmail. I am mentioning my mail box settings below:
set daemon 60
set invisible
set no bouncemail
set syslog
poll mail.xxxxxxx.net protocol IMAP user "xxxx@xxxxx.com" password "somepassword" mda "/opt/rt/bin/rt-mailgate --url http://192.168.0.10/rt --queue 'General' --action correspond" no keep

I checked the fetchmail log and found that the mails are being read by fetchmail, but rt-mailgate doesnot feed it to RequestTracker (not tickets are being created).

I also tried using:
poll mail.xxxxxxx.net protocol IMAP user "xxxx@xxxxx.com" password "somepassword" mda "/usr/bin/perl /opt/rt/bin/rt-mailgate --url http://192.168.0.10/rt --queue 'General' --action correspond" no keep

After this I ran the command
fetchmail -f /usr/rt/etc/fetchmailrc
where fetchmailrc being the file configurations being saved.

No tickets are being created.

Please help

Regards,
Arean N


#2

When you manually ran the fetchmail command, did you get any errors? It certainly is good that you know that you are successfully accessing the mailbox. That narrows down the scope.

The only thing that looks to be different from my rc is I don’t use quotes the queue name. I’m not sure how fetchmail handles quotes, so the script might see them as part of the queue name.

If on *nix, you might also try copying a mail message into a file on your RT server. Make sure it is the raw message that includes the full MIME headers. Once you have that, you can do

cat /path/to/message | /opt/rt/bin/rt-mailgate --url http://192.168.0.10/rt --queue General --action correspond

HTH


#3

What does it say in the /var/log/mail.err? If you have SEEN messages then it won’t create it by default.

Also you can test mailgate like this:

(echo “From: youremail@yourdomain.com” ; echo “Subject: test from command line” ; echo ; echo “test”) |./rt-mailgate --queue ‘General’ --action correspond --url https://path.to.rt --debug


#4

Thanks, I have fixed it i had an error on fetch,mail configuration file