On Thu, Mar 24, 2011 at 9:53 PM, Kevin Falcone <[email protected]>wrote:
> On Thu, Mar 24, 2011 at 09:07:55PM +0100, Houcem HACHICHA wrote: > > On Thu, Mar 24, 2011 at 8:58 PM, Asif Iqbal <[1][email protected]> > wrote: > > > > On Thu, Mar 24, 2011 at 3:32 PM, Houcem HACHICHA > > <[2][email protected]> wrote: > > > Hi everyone, > > > I'm setting up RT on a ubuntu 10.10 server box using the following > guide in > > > RT's wiki : [3] > http://requesttracker.wikia.com/wiki/WithEmailFacility . > > > My problem is with the inbound mail. I use the following in > > > /etc/fetchmailrc: > > > poll <Mailserver> protocol pop3 username "<myUserName>" password > > > "<MyPassword>" mda "/usr/bin/rt-mailgate --queue general --action > correspond > > > --url [4]http://localhost/rt" no keep > > > > try with like this > > > > echo "this is a test" | /usr/bin/rt-mailgate --queue general > --action > > correspond --url [5]http://localhost/rt --debug > > > > what do you get ? > > > > echo "this is a test" | /usr/bin/rt-mailgate --queue general --action > correspond --url > > [6]http://localhost/rt --debug/usr/bin/rt-mailgate: temp file is > '/tmp/IKDiXQskC3' > > /usr/bin/rt-mailgate: connecting to [7] > http://localhost/rt/REST/1.0/NoAuth/mail-gateway > > not ok - Could not load a valid user > > That's because you didn't have a From: line. you could repeat the > test with a proper sample email if you like. > > and error about --url being an invalid option but --url being fine > when run manually implies that something is wrong with fetchmail and > your config. I can't tell if your mail client wrapped that line, nor > do I know how fetchmail deals with commands broken across multiple > lines, but I'd start by looking there. > > -kevin > Kevin, this is from /var/log/fetchmail.log: fetchmail: 80 messages for <username>@<domain> at <domain MX> (8190094 octets). Doesn't this means fetshmail is correctly set up? Anyways I repeated the test as suggested : *echo "FROM:[email protected]" | /usr/bin/rt-mailgate --queue General --action correspond --url http://localhost/rt --debug* */usr/bin/rt-mailgate: temp file is '/tmp/fz_gAzsw3r'* */usr/bin/rt-mailgate: connecting to http://localhost/rt/REST/1.0/NoAuth/mail-gateway* *okTicket: 2Queue: generalOwner: NobodyStatus: newSubject: Requestor: *
