Fetchmail "feeds" the mail to your "mda" command line. Adding and/or replacing the beginning of that command with tee will save a copy of what fetchmail feeds to the mda into that tmp file. Once you have the content of the stream, you can easily feed it directly by hand, and verify that everything else is working (and that your problem is actually with fetchmail.
So to answer your question: mda "/usr/bin/rt-mailgate -queue support -url http://localhost/rt3" becomes mda "/usr/bin/tee /tmp/maildump | /usr/bin/rt-mailgate -queue support -url http://localhost/rt3" (adjust the parameters to rt-mailgate as needed...) once you have done that once, you will have a maildump file with the content that fetchmail feeds to rt-mailgate, and you can use it to simulate feeding a mail to rt-mailgate with cat /tmp/maildump | rt-mailgate -queue support -url http://localhost/rt3 (adjust the parameters as needed ... same as above) Does this make more sense? Jok From: George Simpson [mailto:[email protected]] Sent: Thursday, July 29, 2010 11:28 AM To: Joachim Thuau Cc: [email protected] Subject: Re: [rt-users] Configure Fetchmail to create tickets I apologize for the confusion, but what do I put with the blahblahblah? a path or the --queue general --action correspond part? On Thu, Jul 29, 2010 at 11:09 AM, Joachim Thuau <[email protected]<mailto:[email protected]>> wrote: Add "tee" to the smrsh ("which tee" will tell you where it's hiding) And change the MDA line from mda "rt-mailgate blhablhab" to mda "tee /tmp/maildump" send one email, and see the content being dumped into the file "/tmp/maildump" -- it's all text. >From there, you can use the following to test: cat /tmp/maildump | rt-mailgate blahblah from the command line to confirm that the rt-mailgate command is working... Thanks, Jok From: George Simpson [mailto:[email protected]<mailto:[email protected]>] Sent: Thursday, July 29, 2010 9:57 AM To: Joachim Thuau Cc: Rob MacGregor; [email protected]<mailto:[email protected]> Subject: Re: [rt-users] Configure Fetchmail to create tickets Hi yeah, sorry for the http://localhost/rt3, its really something like 174.129.xxx.xxx/rt3, I'd be cruxified I put that here though. I will remove the perl call, but how do I send an email from the command line?
Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
