Koozali.org: home of the SME Server

Fetchmail/RT and SME

Offline stdean

  • **
  • 37
  • +0/-0
Fetchmail/RT and SME
« on: October 24, 2006, 02:14:03 PM »
I'm currently running SME7 as my mail server with POP3S and IMAPS enabled.

I'm attempting to set up another machine to work as an RT Ticketing machine the idea being that I set up a support account on my mail server and have my RT server fetch the mail over POP3.

The problem is that I cant seem to pull the mail off my SME box. POP is working, since I've been able to download mails using Thunderbird, but for some reason I cant figure out how to get fetchmail to grab the mail.

Here's what my .fetchmailrc looks like:
Code: [Select]

poll mail.mydomain.com with protocol pop3:
username support password ********* mda "/usr/bin/perl \
/usr/bin/rt-mailgate --url http;//localhost/ \
--queue General --action correspond"

I then run fetchmail as the 'rt'/support user like this:

Code: [Select]

fetchmail -d 10


I've set it to 10 second intervals just to see if anything happens, but no mail seems to come down.

I've tried adding the port number (995) to the .fetchmailrc but that does nothing either.

I've tried to debug it by running fetchmail in verbose and checking mode, but nothing else happens there, here' s an example of my output:

Code: [Select]

bash-3.00$ fetchmail -c -v -v -t 5
fetchmail: 6.2.5 querying mail.mydomain.com (protocol POP3) at Tue 24 Oct 2006 09:12:03 PM JST: poll started
fetchmail: timeout after 5 seconds waiting to connect to server mail.mydomain.com.
fetchmail: socket error while fetching from mail.mydomain.com
fetchmail: 6.2.5 querying mail.mydomain.com (protocol POP3) at Tue 24 Oct 2006 09:12:08 PM JST: poll completed
fetchmail: normal termination, status 2


Does anyone have any experience of this? Any ideas on whats broken/not working here.  I suspect it may be my ports, but changing them makes no difference.

Any help much obliged.

Conor

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Fetchmail/RT and SME
« Reply #1 on: October 24, 2006, 09:10:59 PM »
Is the RT Ticketing box on the SME's local interface, or on the public interface?

Maybe you need to use --ssl?

Offline stdean

  • **
  • 37
  • +0/-0
Fetchmail/RT and SME
« Reply #2 on: October 25, 2006, 03:52:38 AM »
The RT box is connecting over it's public interface.

I tried it with --ssl but to no avail.

[edit]

Here's how I'm running it with ssl, I'm using the same .fetchmailrc as above.

Code: [Select]

bash-3.00$ fetchmail -c -v -v --ssl -t 10
fetchmail: 6.2.5 querying mail.mydomain.com (protocol POP3) at Wed 25 Oct 2006 10:53:54 AM JST: poll started
fetchmail: timeout after 10 seconds waiting to connect to server mail.mydomain.com.
fetchmail: socket error while fetching from mail.mydomain.com
fetchmail: 6.2.5 querying mail.mydomain.com (protocol POP3) at Wed 25 Oct 2006 10:54:04 AM JST: poll completed
fetchmail: normal termination, status 2


[/edit]

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Fetchmail/RT and SME
« Reply #3 on: October 25, 2006, 01:28:04 PM »
Try changing the timeout to 30 seconds (-t 30) - sme supports a spam-repellant option that delays response to smtp connections...

Also, does your thunderbird client work from off-site or on-site?  If you've only seen thunderbird work from on-site you may still need to change the default e-mail configuration to allow access from off-site.

Offline byte

  • *
  • 2,183
  • +2/-0
Fetchmail/RT and SME
« Reply #4 on: October 26, 2006, 10:48:02 PM »
Moving this topic to the SME Server 7.x Contribs, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline byte

  • *
  • 2,183
  • +2/-0
Fetchmail/RT and SME
« Reply #5 on: October 26, 2006, 10:52:34 PM »
Are you also using RT Tracker from here...

http://mirror.contribs.org/smeserver//contribs/hmuhammad/

If you are then here a thread from the dev list...

http://lists.contribs.org/mailman/public/devinfo/msg09320.html
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline stdean

  • **
  • 37
  • +0/-0
Resolved
« Reply #6 on: February 05, 2007, 08:35:17 AM »
Its a while after my first post, but I finially got this working.

I'm essentially using the same fetchmailrc as I posted ealier, but I had to change the local host name from localhost to the local ip address

here's what it says now:

Code: [Select]

poll my.domain.com proto pop3:
username rt-support password ******* ssl mda "/usr/bin/rt-mailgate
--url http://192.168.215.72 --queue Support --action correspond"


This is then run with

Code: [Select]

fetchmail -d 60 --fetchmailrc /etc/fetchmailrc


this comes up at starttime and works fine for me.

It's a little strange that I have to specify the local IP address of the machine. If I give it 127.0.0.1 or localhost it dies on me. I've probably got something broken in my hosts set up.

Anyway, all's well that ends well.

Conor