Mailinglist Archive: opensuse (1761 mails)
| < Previous | Next > |
Re: [opensuse] fetchmail daemon fails to start on 11.3
- From: "Carlos E. R." <robin.listas@xxxxxxxxx>
- Date: Thu, 26 Aug 2010 02:15:32 +0200
- Message-id: <4C75B224.7040604@xxxxxxxxx>
On 2010-08-26 01:54, Andre Truter wrote:
Ah, sorry, I confused the file. But it helps, too.
You could try manually that file.
Ah.
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.
Either you did not move everything, or something has changed on the script or
the daemon.
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 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@xxxxxxxxxxxxx"
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))
| < Previous | Next > |