Problem with fetchmail

I can’t seem to get fetchmail to work. I’ve tried to point (pop3,imap) to different servers, exchange and imail with same results. I’ve created different queues with different addresses and still no dice. Help!

Thanks,
Oscar.

results when running rt-mailgate pop3 mode:

fetchmail: starting fetchmail 6.2.5 daemon
1 message for newqueue at mail.mydomain.com (651 octets).
reading message newqueue@mail.mydomain.com:1 of 1 (651 octets) fetchmail: MDA r
eturned nonzero status 127
not flushed
fetchmail: sleeping at Tue Jun 08 10:04:48 2004

… in imap mode:
fetchmail: starting fetchmail 6.2.5 daemon
1 message (1 seen) for newqueue at mail.mydomain.com.
skipping message newqueue@mail.mydomain.com:1 not flushed
fetchmail: sleeping at Tue Jun 08 10:17:03 2004

Here’s how I addressed that error - from an earlier list post -

This error - “MDA returned nonzero status 127 not flushed”? Sorry to
say that once I got it running I haven’t found the time to go back and
id what was missing from the RT installer. I see that since I
installed, a new packaged release was posted. Not sure if latest
includes what may have been an outdated or missing cygwin dll.

My steps for fixing - downloaded cygwin (www.cygwin.com) and selected a
minimal install.
Then ran RT install.
Copied \program files\ourinternet\common\fetchmail\rt-mailgate.conf.in
to rt-mailgate.conf
Edited to rt-mailgate.conf file to reflect my settings
Save changes
Selected rt-mailgate.conf file properties - security - advanced - owner

  • select logged in user not domain admin
    Clicked on rt-mailgate shortcut to start retrieving mail

Rtuser rtuser@slynetworks.com 6/8/2004 11:20:50 AM >>>
I can’t seem to get fetchmail to work. I’ve tried to point (pop3,imap)
to different servers, exchange and imail with same results. I’ve
created different queues with different addresses and still no dice.
Help!

Thanks,
Oscar.

results when running rt-mailgate pop3 mode:

fetchmail: starting fetchmail 6.2.5 daemon
1 message for newqueue at mail.mydomain.com (651 octets).
reading message newqueue@mail.mydomain.com:1 of 1 (651 octets)
fetchmail: MDA r
eturned nonzero status 127
not flushed
fetchmail: sleeping at Tue Jun 08 10:04:48 2004

… in imap mode:
fetchmail: starting fetchmail 6.2.5 daemon
1 message (1 seen) for newqueue at mail.mydomain.com.
skipping message newqueue@mail.mydomain.com:1 not flushed
fetchmail: sleeping at Tue Jun 08 10:17:03 2004
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and
Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

I’m fighting the same battle…

I’ve done what Paula suggested, and I still get the same error in the end. I’ve checked the fetchmail man page, and none of the errors given are listed, so I have no idea what is causing the error. Bummer that…

Is there anything magical about this version of fetchmail given in the install, and does the placement of it and it’s dll’s in the windows filesystem matter? I’m thinking of replacing the entire fetchmail part given in the install package with the one that comes direct from Cygwin and seeing what happens with that…

James H. Smith II NNCSE NNCDS
Senior Systems Engineer
First Call Response Center Team Lead
The Presidio Corporation-----Original Message-----
From: Rtuser [mailto:rtuser@slynetworks.com]
Sent: Tuesday, June 08, 2004 11:21 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] problem with fetchmail

I can’t seem to get fetchmail to work. I’ve tried to point (pop3,imap) to different servers, exchange and imail with same results. I’ve created different queues with different addresses and still no dice. Help!

Thanks,
Oscar.

results when running rt-mailgate pop3 mode:

fetchmail: starting fetchmail 6.2.5 daemon
1 message for newqueue at mail.mydomain.com (651 octets).
reading message newqueue@mail.mydomain.com:1 of 1 (651 octets) fetchmail: MDA r
eturned nonzero status 127
not flushed
fetchmail: sleeping at Tue Jun 08 10:04:48 2004

… in imap mode:
fetchmail: starting fetchmail 6.2.5 daemon
1 message (1 seen) for newqueue at mail.mydomain.com.
skipping message newqueue@mail.mydomain.com:1 not flushed
fetchmail: sleeping at Tue Jun 08 10:17:03 2004
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

Thanks for the pointer Paula. Seems like that version of cygwin did the trick. It did require additional steps.

This is what I had to do to get fetchmail to work:

Note: If you’re having the same problem (fetchmail: MDA returned nonzero status 127) and don’t want to re-install. You may want to install CygWin and jump to steps 6 and 7.

1.Uninstalled RT and all Common apps.
2.Installed CygWin to c:\cygwin
3.Re-installed version 3.0.10 with defaults.
4.Logged in, changed SMTPFrom and queue address.
5.Gave ‘Everyone’ create ticket rights (Global)
6.Renamed c:\program files\ourinternet\common\fetchmail\bin\cygwin1.dll TO cygwin1.old
7.Copied C:\cygwin\bin\cygwin1.dll (version: 1005.10.0.0 size: 1,153,417 bytes) TO c:\program files\ourinternet\common\fetchmail
8.Copied c:\program files\ourinternet\common\fetchmail\rt-mailgate.conf.in to rt-mailgate.conf
9.Made necessary changes to rt-mailgate.conf
10.Changed ownership of to local administrator (logged in user)
11.Restarted Request Tracker service
12.Ran the RT-Mailgate shortcut in c:\program files\ourinternet\common\fetchmail
13.Sent a test email to the general queue…and it started working.
The next lines were…
fetchmail: starting fetchmail 6.2.5 daemon
1 message for q_general at mail.mydomain.com (661 octets).
reading message q_general@mail.mydomain.com:1 of 1 (661 octets) flushed
fetchmail: sleeping at Tue Jun 08 14:28:10 2004

Hope this helps other users out there fighting the same battle.

Thanks,

Oscar.

Here is what happens here

With Cygwin installed (for just me or for all users, fetchmail installed as part of cygwin or not), I get a “Lock creation failed”. If I move the Cygwin directory to another name (like c:\cygwin-tmp), I get the “… not flushed” error.

But! If I open up the Cygwin command box, it works.

I’m wondering if I need to go home, get back into bed, and get out on the other side…

James H. Smith II NNCSE NNCDS
Senior Systems Engineer
First Call Response Center Team Lead
The Presidio Corporation-----Original Message-----
From: Rtuser [mailto:rtuser@slynetworks.com]
Sent: Tuesday, June 08, 2004 3:43 PM
To: Paula McGraw
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] problem with fetchmail

Thanks for the pointer Paula. Seems like that version of cygwin did the trick. It did require additional steps.

This is what I had to do to get fetchmail to work:

Note: If you’re having the same problem (fetchmail: MDA returned nonzero status 127) and don’t want to re-install. You may want to install CygWin and jump to steps 6 and 7.

1.Uninstalled RT and all Common apps.
2.Installed CygWin to c:\cygwin
3.Re-installed version 3.0.10 with defaults.
4.Logged in, changed SMTPFrom and queue address.
5.Gave ‘Everyone’ create ticket rights (Global)
6.Renamed c:\program files\ourinternet\common\fetchmail\bin\cygwin1.dll TO cygwin1.old
7.Copied C:\cygwin\bin\cygwin1.dll (version: 1005.10.0.0 size: 1,153,417 bytes) TO c:\program files\ourinternet\common\fetchmail
8.Copied c:\program files\ourinternet\common\fetchmail\rt-mailgate.conf.in to rt-mailgate.conf
9.Made necessary changes to rt-mailgate.conf
10.Changed ownership of to local administrator (logged in user)
11.Restarted Request Tracker service
12.Ran the RT-Mailgate shortcut in c:\program files\ourinternet\common\fetchmail
13.Sent a test email to the general queue…and it started working.
The next lines were…
fetchmail: starting fetchmail 6.2.5 daemon
1 message for q_general at mail.mydomain.com (661 octets).
reading message q_general@mail.mydomain.com:1 of 1 (661 octets) flushed
fetchmail: sleeping at Tue Jun 08 14:28:10 2004

Hope this helps other users out there fighting the same battle.

Thanks,

Oscar.
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

Hi James,

I might be able to help with the ‘Lock creation failed’ - with Cygwin
installed I ran into the same issue. It’s probably trying to create the
lock file in the current user’s home directory (their cygwin home
directory).

For instance on my test install with everything running as
Administrator, it’s trying to create
c:\cygwin\home\Administrator.fetchmail.pid, and that directory doesn’t
exist by default.

It started working for me after I created the directory and sorted the
permissions.

Cheers,

Danny Smith