[rt-users] Configure Fetchmail to create tickets
Joachim Thuau
Joachim.Thuau at heavy-iron.com
Thu Jul 29 16:53:46 EDT 2010
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:simpsongeorge68 at gmail.com]
Sent: Thursday, July 29, 2010 11:28 AM
To: Joachim Thuau
Cc: rt-users at lists.bestpractical.com
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 <Joachim.Thuau at heavy-iron.com<mailto:Joachim.Thuau at heavy-iron.com>> 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:simpsongeorge68 at gmail.com<mailto:simpsongeorge68 at gmail.com>]
Sent: Thursday, July 29, 2010 9:57 AM
To: Joachim Thuau
Cc: Rob MacGregor; rt-users at lists.bestpractical.com<mailto:rt-users at lists.bestpractical.com>
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100729/339eecc5/attachment.htm>
More information about the rt-users
mailing list