[opensuse] fetchmail daemon fails to start on 11.3
I installed a sever with openSUSE 11.3 and we use fetchmail on it. But when I try to start fetchmail, I get the following: --<snip>-- #rcfetchmail start Starting fetchmailfetchmail: can't find a password for fetchmail@/var/log/fetchmail. startproc: exit status of parent of /usr/bin/fetchmail: 3 --<snip>-- Any idea how to get the daemon to start? Thanks -- -- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za ~ Sometimes my mind wanders; other times it leaves completely. ~ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Andre Truter
I installed a sever with openSUSE 11.3 and we use fetchmail on it.
But when I try to start fetchmail, I get the following: --<snip>-- #rcfetchmail start Starting fetchmailfetchmail: can't find a password for fetchmail@/var/log/fetchmail. startproc: exit status of parent of /usr/bin/fetchmail: 3 --<snip>--
Any idea how to get the daemon to start?
I don't use the system fetchmail as such, but use fetchmail as <user> with ~/.fetchmailrc which contains passwords for the remote servers accessed. ~/.fetchmailrc # Configuration created Sun Dec 28 14:56:16 2001 set logfile "/home/<user>/logs/fetchmail.log" set postmaster "<user>" set no bouncemail set no spambounce # set properties "v" set daemon 150 ### RoadRunner account ### poll pop-server.indy.rr.com tracepolls with proto POP3 timeout 60 user '<user>' there with password '<passwd>' is '<user>' here options fetchall stripcr mda '/usr/lib/sendmail -i -oem -f %F %T' .... and several others. then: fetchmail -d -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-25 23:23, Andre Truter wrote:
I installed a sever with openSUSE 11.3 and we use fetchmail on it.
But when I try to start fetchmail, I get the following: --<snip>-- #rcfetchmail start Starting fetchmailfetchmail: can't find a password for fetchmail@/var/log/fetchmail. startproc: exit status of parent of /usr/bin/fetchmail: 3 --<snip>--
Any idea how to get the daemon to start?
/etc/sysconfig/fetchmail exists? Is it correct? Post it here, changing passwords and logins. Have a look at "/var/log/fetchmail". -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
On Thu, 2010-08-26 at 01:34 +0200, Carlos E. R. wrote:
On 2010-08-25 23:23, Andre Truter wrote:
I installed a sever with openSUSE 11.3 and we use fetchmail on it.
But when I try to start fetchmail, I get the following: --<snip>-- #rcfetchmail start Starting fetchmailfetchmail: can't find a password for fetchmail@/var/log/fetchmail. startproc: exit status of parent of /usr/bin/fetchmail: 3 --<snip>--
Any idea how to get the daemon to start?
/etc/sysconfig/fetchmail exists? Is it correct? Post it here, changing passwords and logins.
/etc/sysconfig/fetchmail : (Comments removed) --<snip>-- FETCHMAIL_POLLING_INTERVAL="120" FETCHMAIL_FETCHALL="yes" FETCHMAIL_SILENT="no" FETCHMAIL_USER="fetchmail" FETCHMAIL_EXPERT_OPTIONS="" --<snip>-- I then have a /etc/fetchmailrc that have the accounts like this: --<snip>-- poll pop3.example.co.za proto pop3 user "user1@example.co.za" pass "thepassword" is user1 poll pop3.example.co.za proto pop3 user "user2@example.co.za" pass "thepassword" is user2 ... ... poll pop3.example.co.za proto pop3 user "userx@example.co.za" pass "thepassword" is userx ; --<snip>--
Have a look at "/var/log/fetchmail".
It is empty. I managed to run fetchmail manually as user fetchmail and then it complains that no servers are configured. We are migrating an 11.1 server over to new hardware (with 11.3), so this configuration has been working fine on 11.1. What is baffeling me is that a fresh install on 11.3 asks for a password when fetchmail is started. And the error message does not make sense to me. I also found no reference to it on google. -- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za ~ "Ubuntu" is an African word meaning "SUSE is too hard for me" - Anon SUSE user ~ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Andre Truter said the following on 08/25/2010 05:23 PM:
I installed a sever with openSUSE 11.3 and we use fetchmail on it.
But when I try to start fetchmail, I get the following: --<snip>-- #rcfetchmail start Starting fetchmailfetchmail: can't find a password for fetchmail@/var/log/fetchmail. startproc: exit status of parent of /usr/bin/fetchmail: 3 --<snip>--
Any idea how to get the daemon to start? Thanks
According to the man page ... fetchmail -d But then again, according to man page you need a config file wherein there are the passwords that apply to the userid for the site you're fetching mail from. Works for me. Has for nearly a decade. -- There is no legitimate religion apart from truth. --John Calvin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-26 01:54, Andre Truter wrote:
On Thu, 2010-08-26 at 01:34 +0200, Carlos E. R. wrote:
On 2010-08-25 23:23, Andre Truter wrote:
I installed a sever with openSUSE 11.3 and we use fetchmail on it.
But when I try to start fetchmail, I get the following: --<snip>-- #rcfetchmail start Starting fetchmailfetchmail: can't find a password for fetchmail@/var/log/fetchmail. startproc: exit status of parent of /usr/bin/fetchmail: 3 --<snip>--
Any idea how to get the daemon to start?
/etc/sysconfig/fetchmail exists? Is it correct? Post it here, changing passwords and logins.
/etc/sysconfig/fetchmail : (Comments removed) --<snip>-- FETCHMAIL_POLLING_INTERVAL="120"
FETCHMAIL_FETCHALL="yes"
FETCHMAIL_SILENT="no"
FETCHMAIL_USER="fetchmail"
FETCHMAIL_EXPERT_OPTIONS="" --<snip>--
Ah, sorry, I confused the file. But it helps, too.
I then have a /etc/fetchmailrc that have the accounts like this:
--<snip>-- poll pop3.example.co.za proto pop3 user "user1@example.co.za" pass "thepassword" is user1
You could try manually that file.
Have a look at "/var/log/fetchmail".
It is empty.
Ah.
I managed to run fetchmail manually as user fetchmail and then it complains that no servers are configured.
I have a guess... The script has this code: if [ "$FETCHMAIL_USER" = "fetchmail" ] ; then if [ -z "$FETCHMAILHOME" ] ; then export FETCHMAILHOME=/var/lib/fetchmail fi fi I wonder if it is looking for the config file in /var/lib/fetchmail. I don't see where... ah, yes, man fetchmail says it is used directly by the daemon. (I don't have 11.3 available at the moment, just 11.2. I hope it is the same script). The command line used by the service script is this one: startproc -u $FETCHMAIL_USER $FETCHMAIL_BIN -d \ $FETCHMAIL_POLLING_INTERVAL$FETCHMAIL_FETCHALL_OPTION$FETCHMAIL_SILENT_OPTION \ $FETCHMAIL_EXPERT_OPTIONS -f $FETCHMAIL_RC -L /var/log/fetchmail 2>&1 Change the redirection at the end to a file, and see what you get there. Ah, no, probably what you already get.
We are migrating an 11.1 server over to new hardware (with 11.3), so this configuration has been working fine on 11.1.
Either you did not move everything, or something has changed on the script or the daemon.
What is baffeling me is that a fresh install on 11.3 asks for a password when fetchmail is started. And the error message does not make sense to me. I also found no reference to it on google.
Huh? That's new to me. You then have to look at the rc script and the man page for fetchmail, to see if it is different and where. Mmm! Compare the user "fetchmail" in /etc/passwd. -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
On Wed, 2010-08-25 at 20:03 -0400, Anton Aylward wrote:
Andre Truter said the following on 08/25/2010 05:23 PM:
Any idea how to get the daemon to start? Thanks
According to the man page ...
fetchmail -d
But then again, according to man page you need a config file wherein there are the passwords that apply to the userid for the site you're fetching mail from.
Works for me. Has for nearly a decade.
It has been working for me too for nearly a decade and this is a migration of a server, so my config is from a working system.. -- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za ~ My Imaginary Friend Thinks You Have Mental Problems. ~ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2010-08-26 at 01:34 +0200, Carlos E. R. wrote:
On 2010-08-25 23:23, Andre Truter wrote:
Any idea how to get the daemon to start?
/etc/sysconfig/fetchmail exists? Is it correct? Post it here, changing passwords and logins.
I got it working. The init script have a variable : $FETCHMAIL_RC_PATH which is not declared anywhere, so it tries to start fetchmail as follows: startproc -u fetchmail /usr/bin/fetchmail -d 120 -a -f / -L /var/log/fetchmail 2>&1 So fetchmail think that "-L /var/log/fetchmail" is its rc file... So I just added : FETCHMAIL_RC_PATH="/etc/fetchmailrc" to /etc/sysconfig/fetchmail and now it works. This is the second init script on 11.3 that I encounter that is broken. THe init script for Hylafax is also broken - it tries to start hylafax v 6 with obsolete options. ( I still need to file a bug report for that if it has not already been logged) -- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za ~ Sometimes my mind wanders; other times it leaves completely. ~ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Andre Truter said the following on 08/25/2010 08:22 PM:
....
This is the second init script on 11.3 that I encounter that is broken.
I disagree. I just wiped and re-installed That line *was* in /etc/sysconfig/fetchmail fetchmail-6.3.16-3.7.i586 ## Type: string ## Default: "" # # Any additional fetchmail options. See fetchmail(1) manual page for # more information. If you want to use --mda option, it may be required # to change FETCHMAIL_USER to root. Consult your MDA documentation for # more. # FETCHMAIL_EXPERT_OPTIONS="" ## Type: string ## Default: "/etc/fetchmailrc" # # Use to override default location of fetchmailrc. # FETCHMAIL_RC_PATH="/etc/fetchmailrc" -- In Christianity neither morality nor religion come into contact with reality at any point. --Friedrich Nietzsche -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-26 02:22, Andre Truter wrote:
On Thu, 2010-08-26 at 01:34 +0200, Carlos E. R. wrote:
On 2010-08-25 23:23, Andre Truter wrote:
Any idea how to get the daemon to start?
/etc/sysconfig/fetchmail exists? Is it correct? Post it here, changing passwords and logins.
I got it working.
The init script have a variable : $FETCHMAIL_RC_PATH which is not declared anywhere, so it tries to start fetchmail as follows:
It has been renamed. In 11.2 it is called thus: FETCHMAIL_RC=/etc/fetchmailrc in the script itself.
So I just added :
FETCHMAIL_RC_PATH="/etc/fetchmailrc"
to /etc/sysconfig/fetchmail and now it works.
Right.
This is the second init script on 11.3 that I encounter that is broken.
Well, if you upgraded it "might" have been handled.
THe init script for Hylafax is also broken - it tries to start hylafax v 6 with obsolete options. ( I still need to file a bug report for that if it has not already been logged)
Mmmm... -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
On Wed, 2010-08-25 at 20:32 -0400, Anton Aylward wrote:
Andre Truter said the following on 08/25/2010 08:22 PM:
....
This is the second init script on 11.3 that I encounter that is broken.
I disagree. I just wiped and re-installed That line *was* in /etc/sysconfig/fetchmail
Hmm.. You are correct. I just installed fetchmail on my dev box and the entry is there. Maybe I managed to be 'clever' enough to also copy the /etc/sysconfig/fetchmail from the old server together with the other configs.... So, I have to correct my statement : This is NOT the second init script on 11.3 that I encounter that is broken. So far it is only hylafax. -- Andre Truter | Software Consultant | Registered Linux user #185282 Jabber: andre.truter@gmail.com | http://www.trusoft.co.za ~ "Ubuntu" is an African word meaning "SUSE is too hard for me" - Anon SUSE user ~ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carlos E. R.
On 2010-08-26 02:22, Andre Truter wrote:
The init script have a variable : $FETCHMAIL_RC_PATH which is not declared anywhere, so it tries to start fetchmail as follows:
It has been renamed. In 11.2 it is called thus:
FETCHMAIL_RC=/etc/fetchmailrc
in the script itself.
Ahhhh, I have ll.2 and: 21:52 wahoo:~ # grep -i path /etc/sysconfig/fetchmail ## Path: Network/Mail/Fetchmail FETCHMAIL_RC_PATH="/etc/fetchmailrc" -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-26 03:53, Patrick Shanahan wrote:
* Carlos E. R. <> [08-25-10 20:58]:
On 2010-08-26 02:22, Andre Truter wrote:
The init script have a variable : $FETCHMAIL_RC_PATH which is not declared anywhere, so it tries to start fetchmail as follows:
It has been renamed. In 11.2 it is called thus:
FETCHMAIL_RC=/etc/fetchmailrc
in the script itself.
Ahhhh, I have ll.2 and:
21:52 wahoo:~ # grep -i path /etc/sysconfig/fetchmail ## Path: Network/Mail/Fetchmail FETCHMAIL_RC_PATH="/etc/fetchmailrc"
Well, that's funny. It is not in mine. On neither one of the two installs I have in this machine (32 and 64 bit). -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
Andre Truter said the following on 08/25/2010 09:16 PM:
[...] Maybe I managed to be 'clever' enough to also copy the /etc/sysconfig/fetchmail from the old server together with the other configs....
BTDT more than once :-( Oh, and worse! "Upgrading" can be a real bummer.
So, I have to correct my statement :
This is NOT the second init script on 11.3 that I encounter that is broken.
So far it is only hylafax.
Maybe one day I'll try that and see :-/ -- The same applies for other kinds of long-lasting low-level pain. [...] The body's response to being jabbed, pierced, and cut is to produce endorphins. [...] So here's my programme for breaking that cycle of dependency on Windows: get left arm tattooed with dragon motif, buy a crate of Jamaican Hot! Pepper Sauce, get nipples pierced. With any luck that will produce enough endorphins to make Windows completely redundant, and I can then upgrade to Linux and get on with things. -- Pieter Hintjens -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carlos E. R.
On 2010-08-26 03:53, Patrick Shanahan wrote:
Ahhhh, I have ll.2 and:
21:52 wahoo:~ # grep -i path /etc/sysconfig/fetchmail ## Path: Network/Mail/Fetchmail FETCHMAIL_RC_PATH="/etc/fetchmailrc"
Well, that's funny. It is not in mine. On neither one of the two installs I have in this machine (32 and 64 bit).
11:15 wahoo:~ > rpm -q yast2 sysconfig fetchmail postfix yast2-2.18.25-2.5.x86_64 sysconfig-0.74.1-67.1.x86_64 fetchmail-6.3.17-28.1.x86_64 postfix-2.7.1-54.1.x86_64 -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010-08-26 17:16, Patrick Shanahan wrote:
* Carlos E. R. <> [08-25-10 23:13]:
Well, that's funny. It is not in mine. On neither one of the two installs I have in this machine (32 and 64 bit).
11:15 wahoo:~ > rpm -q yast2 sysconfig fetchmail postfix yast2-2.18.25-2.5.x86_64 sysconfig-0.74.1-67.1.x86_64 fetchmail-6.3.17-28.1.x86_64 postfix-2.7.1-54.1.x86_64
~ > rpm -q yast2 sysconfig fetchmail postfix yast2-2.18.25-2.5.x86_64 sysconfig-0.72.6-2.6.1.x86_64 fetchmail-6.3.11-2.2.1.x86_64 postfix-2.6.1-2.6.1.x86_64 You have more modern versions. That's why, the bug was corrected later :-) -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar))
participants (4)
-
Andre Truter
-
Anton Aylward
-
Carlos E. R.
-
Patrick Shanahan