[rt-users] Need RT to fetchmail...

Greg Evans gevans at hcc.net
Mon Apr 7 09:36:10 EDT 2008


My .fetchmailrc looks like this and it works fine

username rt_username    password rt_password      mda "/etc/smrsh/rt- 
mailgate --url http://rt.hctc.com --queue 'Email Support'
--action correspond"

where rt_username and rt_password are whatever you have decided you  
will use.

This is on CentOS 5

Regards,

Greg Evans
Hood Canal Communications
(360) 898-2481 ext.212

On Apr 7, 2008, at 5:54 AM, Nelson Pereira wrote:
> Oups… I was piping it..  so the command looks like this to retrieve  
> messages from the pop3 mailbox :
>
> /usr/bin/fetchmail -f /opt/rt3/.fetchmailrc -a -m "/etc/smrsh/rt- 
> mailgate --queue general --action correspond --url http://localhost/rt3 
> " > /dev/null
>
>
> Then in the /opt/rt3/fetchmail log file, I get this error:
>
> 404 Not Found
> fetchmail: reading message otrs at exmail.protus.org:1 of 2 (11154  
> octets) (log message incomplete)fetchmail: MDA returned nonzero  
> status 75
> fetchmail:  not flushed
> ..........An Error Occurred
> =================
>
> 404 Not Found
> fetchmail: reading message otrs at exmail.protus.org:2 of 2 (11146  
> octets) (log message incomplete)fetchmail: MDA returned nonzero  
> status 75
> fetchmail:  not flushed
>
>
> I finaly got it working …..
>
> The problem was the URL… for some reason, fetchmail does not like to  
> have http://locahost/rt3,  rather, it wants http://192.168.5.5/rt3
>
>
>
> So since I use –correspond, I should see an email going back to the  
> requester right?
> But this is not happening….
>
>
> Nelson Pereira
> Senior Network Administrator
>
> Protus IP Solutions Inc.
> npereira at protus.com
> phone: 613.733.0000 ext.528
> MyFax: 613.822.5083
> www.myfax.com
>
> Refer your friends and colleagues to MyFax!
> Click here for more information.
> <image001.gif>
>
> From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com 
> ] On Behalf Of Nelson Pereira
> Sent: Monday, April 07, 2008 8:05 AM
> To: Vitaliy Okulov
> Cc: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] Need RT to fetchmail...
>
> Ok, I tried this and im getting this error in the fetchmail log…
>
> fetchmail: 2 messages for otrs at exmail.protus.org (22300 octets).
> sh: -c: line 0: syntax error near unexpected token `|'
> sh: -c: line 0: `|/etc/smrsh/rt-mailgate --queue general --action  
> correspond --url http://localhost/rt3'
> ...fetchmail: reading message otrs at exmail.protus.org:1 of 2 (11154  
> octets) (log message incomplete)fetchmail: error writing message text
> fetchmail: MDA error while fetching from otrs at exmail.protus.org
> fetchmail: Query status=6 (IOERR)
>
>
>
>
>
> From: Vitaliy Okulov [mailto:vitaliy.okulov at gmail.com]
> Sent: Saturday, April 05, 2008 2:21 AM
> To: Nelson Pereira
> Cc: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] Need RT to fetchmail...
>
> Sample config:
>
> /usr/bin/fetchmail -f /opt/rt3/.fetchmailrc -a -m "/opt/rt3/bin/rt- 
> mailgate --queue General --action correspond --url http:// 
> localhost/" >/dev/null
>
> cat /opt/rt3/.fetchmailrc
> set logfile=/opt/rt3/fetchmail
> poll pop.mail.com proto pop3 user rt3 at mail.com with pass "blabla" to  
> rt3 here
> 2008/4/4, Nelson Pereira <npereira at protus.com>:
> Hi all,
>
>
>
> Finaly got it all setup with the instructions on wiki on a RHEL5  
> fresh…
>
>
>
> I have went through all the manual instructions and everything seems  
> well.
>
>
>
> Now, I need RT to fetch the emails from a POP3 box and bring them  
> into RT.
>
>
>
> How can I achieve this? Is there docs on this setup?
>
>
>
> Thansk
>
>
>
>
>
>
>
> Nelson Pereira
> Senior Network Administrator
>
> Protus IP Solutions Inc.
> npereira at protus.com
> phone: 613.733.0000 ext.528
> MyFax: 613.822.5083
> www.myfax.com
>
> Refer your friends and colleagues to MyFax!
> Click here for more information.
>
> <image001.gif>
>
>
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com




More information about the rt-users mailing list