RT4.0 and fetchmail

Hi all,

I’m currently just a step away from getting RT to work perfectly.
The only thing I don’t understand is why fetchmail does not forward my
emails to rt-mailgate.
Fetchmail is able to transfer the emails from our mailserver to Ubuntu
10.04, where RT is running, but then it does nothing else.

Also rt-mailgate alone works fine (I tried it from the console with some
testmails).

My fetchmailrc is the following:

set daemon 60
set invisible
set no bouncemail
set logfile /var/log/fetchmail.log
poll my.mailserver.com protocol pop3 username emailacc password ***** mda
"/usr/bin/perl /opt/rt3/bin/rt-mailgate --action correspond --queue
mainqueue --url http://localhost/rt/"

The path of the rt-mailgate is also correct, just in case you are wondering,
why it is …/rt3/… - I upgraded from RT3.8.

Maybe it has something to do with the owner of fetchmailrc, but this is just
a guess.
I just don’t know what do, since I never worked with fetchmail before.
Is there anything else I could have missed?

Thanks in advance for any help! :slight_smile:
View this message in context: http://old.nabble.com/RT4.0-and-fetchmail-tp31807878p31807878.html

Hi all,

I’m currently just a step away from getting RT to work perfectly.
The only thing I don’t understand is why fetchmail does not forward my
emails to rt-mailgate.
Fetchmail is able to transfer the emails from our mailserver to Ubuntu
10.04, where RT is running, but then it does nothing else.

Also rt-mailgate alone works fine (I tried it from the console with some
testmails).

My fetchmailrc is the following:

set daemon 60
set invisible
set no bouncemail
set logfile /var/log/fetchmail.log
poll my.mailserver.com protocol pop3 username emailacc password ***** mda
"/usr/bin/perl /opt/rt3/bin/rt-mailgate --action correspond --queue
mainqueue --url http://localhost/rt/"

The path of the rt-mailgate is also correct, just in case you are wondering,
why it is …/rt3/… - I upgraded from RT3.8.

Maybe it has something to do with the owner of fetchmailrc, but this is just
a guess.
I just don’t know what do, since I never worked with fetchmail before.
Is there anything else I could have missed?

What does your fetchmail log show?

             Please keep list traffic on the list.

Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn’t become a monster. Friedrich Nietzsche

Hi Rob,
thank you for your fast response!

I was able to solve my problem! :slight_smile:
It was my fault not to notice that our mailserver runs under Windows and
that its domain is different from the domain of the email adresses. So
fetchmail tried to assign the mailserver domain to the username of the user
the emails to RT are sent to, which is wrong.

All I had to do was to change the fetchmailrc from
poll my.mailserver.com protocol pop3 username emailacc password ***** mda
"/usr/bin/perl /opt/rt3/bin/rt-mailgate --action correspond --queue
mainqueue --url http://localhost/rt/"
to
poll my.mailserver.com protocol pop3 auth ntlm username emailacc password
***** mda "/usr/bin/perl /opt/rt3/bin/rt-mailgate --action correspond
–queue mainqueue --url http://localhost/rt/"
so that fetchmail assigns the right domain.

My fetchmail log said this (to help maybe others having the same problem):
fetchmail: Fehler bei Server-Zertifikat-Überprüfung: unable to get local
issuer certificate
fetchmail: Fehler bei Server-Zertifikat-Überprüfung: certificate not trusted
fetchmail: Fehler bei Server-Zertifikat-Überprüfung: unable to verify the
first certificate
fetchmail: Fehler beim Austausch der Beglaubigungen
fetchmail: Authentifikationsfehlschlag bei emailacc@my.mailserver.com
fetchmail: Abfragestatus=3 (AUTHFAIL)

(“Fehler bei Server-Zertifikat-Überprüfung” means “error while checking
server certificate”, “Fehler beim Austausch der Beglaubigungen” means “error
while exchanging verifications”, “Authentifikationsfehlschlag bei” means
"authentification error at" and “Abfragestatus” means “query state” — I
don’t know if these are the right English expressions, since my Ubuntu runs
in German, but I hope you can understand it)

5 hard days of work are finally solved by 8 letters.
Now I’m happy. :slight_smile:
Have a nice day!

View this message in context: http://old.nabble.com/RT4.0-and-fetchmail-tp31807878p31809563.html