Debian Bug report logs - #187608
mailutils-pop3d: no /etc/init.d script

version graph

Package: mailutils-pop3d; Maintainer for mailutils-pop3d is Jordi Mallach <[email protected]>; Source for mailutils-pop3d is src:mailutils (PTS, buildd, popcon).

Reported by: William Thompson <[email protected]>

Date: Fri, 4 Apr 2003 16:33:02 UTC

Severity: wishlist

Found in version 20030322-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Jordi Mallach <[email protected]>, [email protected]:
Bug#187608; Package mailutils-pop3d. (full text, mbox, link).


Acknowledgement sent to William Thompson <[email protected]>:
New Bug report received and forwarded. Copy sent to Jordi Mallach <[email protected]>, [email protected]. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: William Thompson <[email protected]>
To: [email protected]
Subject: mailutils-pop3d: no /etc/init.d script
Date: Fri, 4 Apr 2003 11:30:31 -0500
Package: mailutils-pop3d
Version: 20030322-1
Severity: wishlist

There's no working init.d script.

I made one that works for me:

#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/pop3d
NAME=pop3d
DESC="Mail Utils POP3 Daemon"
PIDFILE="/var/run/$NAME.pid"
PNAME="pop3d"
DOPTIONS="-d"

ENABLED=1

test "$ENABLED" != "0" || exit 0

test -f $DAEMON || exit 0

set -e

case "$1" in
  start)
	echo -n "Starting $DESC: "
	start-stop-daemon --start --pidfile $PIDFILE --name $PNAME \
	    --oknodo --startas $DAEMON -- $OPTIONS $DOPTIONS

	echo "$NAME."
	;;
  stop)
	echo -n "Stopping $DESC: "

	start-stop-daemon --stop --pidfile $PIDFILE --name $PNAME --oknodo

	echo "$NAME."
	;;
  reload)
	start-stop-daemon --stop --signal 1 --pidfile $PIDFILE \
		--name $PNAME --oknodo
  	;;
  restart|force-reload)
	echo -n "Restarting $DESC: "
	start-stop-daemon --stop --pidfile $PIDFILE --name $PNAME \
	    --retry 5 --oknodo
	start-stop-daemon --start --pidfile $PIDFILE --name $PNAME \
	    --oknodo --startas $DAEMON -- $OPTIONS $DOPTIONS

	echo "$NAME."
	;;
  *)
	echo "Usage: $0 {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac

exit 0


-- System Information
Debian Release: 3.0
Kernel Version: Linux potato 2.4.20 #3 SMP Wed Dec 11 08:49:36 EST 2002 i686 unknown

Versions of the packages mailutils-pop3d depends on:
ii  libc6          2.3.1-16       GNU C Library: Shared libraries and Timezone
ii  libgcrypt1     1.1.12-1       LGPL Crypto library - runtime library
ii  libgdbmg1      1.7.3-27       GNU dbm database routines (runtime version).
ii  libgnutls5     0.8.6-1        GNU TLS library - runtime library
ii  libgsasl1      0.0.6-1        GNU SASL library
ii  libidn9        0.1.11-3       GNU libidn library, implementation of IETF I
ii  libkrb53       1.2.7-3        MIT Kerberos runtime libraries
ii  libmailutils0  20030322-1     GNU Mail abstraction library
ii  libmysqlclient 3.23.49-8      mysql database client library
ii  libpam0g       0.76-9         Pluggable Authentication Modules library
ii  libtasn1-0     0.1.2-1        Manage ASN.1 structures (runtime)
ii  netbase        4.07           Basic TCP/IP networking system
ii  zlib1g         1.1.4-1        compression library - runtime
ii  e2fsprogs      1.32-2         The EXT2 file system utilities and libraries
	^^^ (Provides virtual package libcomerr2)



Information forwarded to [email protected], [email protected]:
Bug#187608; Package mailutils-pop3d. (full text, mbox, link).


Acknowledgement sent to Jordi Mallach <[email protected]>:
Extra info received and forwarded to list. Copy sent to [email protected]. (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Jordi Mallach <[email protected]>
To: William Thompson <[email protected]>, [email protected]
Subject: Re: Bug#187608: mailutils-pop3d: no /etc/init.d script
Date: Fri, 4 Apr 2003 19:10:03 +0200
[Message part 1 (text/plain, inline)]
On Fri, Apr 04, 2003 at 11:30:31AM -0500, William Thompson wrote:
> There's no working init.d script.

The daemon should have been configured to use inetd. Didn't you get an
inetd.conf entry? (you need to restart inetd manually)

Jordi
-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to [email protected], Jordi Mallach <[email protected]>, [email protected]:
Bug#187608; Package mailutils-pop3d. (full text, mbox, link).


Acknowledgement sent to Jordi Mallach <[email protected]>:
Extra info received and forwarded to list. Copy sent to Jordi Mallach <[email protected]>, [email protected]. (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: Jordi Mallach <[email protected]>
To: William Thompson <[email protected]>, [email protected]
Subject: mailutils-pop3d: no /etc/init.d script
Date: Fri, 4 Apr 2003 20:35:31 +0200
[Message part 1 (text/plain, inline)]
On Fri, Apr 04, 2003 at 01:03:56PM -0500, William Thompson wrote:
> > I just got this bounce. What is the reason to not accept my mail?
> > This is a fixed IP on a DSL link.
> I had received tons of spam from hosts on nombres.ttd.es that I had to block
> them.  I added your IP to the accept list.

I can believe that. Thanks for white-listing me.

> Yes, it does work from inetd.  I wanted it to run as a daemon being the fact
> that when I install it on the real mailserver here it'll be hit about 60
> times a minute and didn't want to use inetd.

Ok, I guess I'll do some setup similar to what (I've been told) proftpd
does: it installs an init.d script, but not the rcX links. The init.d
script also kills running instances, so if you start it and it was on
inetd, it'll take over.

> So far, this is the *ONLY* mysql pop3d server I have found that allows me to
> give it the select query which is required because the db isn't a
> /etc/passwd like table (plus I wanted to have 2 names for 1 person.  People
> here have network logins and email ids that aren't the same.)
> 
> This is why I made the init.d script.

Thanks for the script. I hope I'll do something about it sometime soon,
I'm a bit tight on time though.

Jordi
-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to [email protected], Jordi Mallach <[email protected]>, [email protected]:
Bug#187608; Package mailutils-pop3d. (full text, mbox, link).


Acknowledgement sent to William Thompson <[email protected]>:
Extra info received and forwarded to list. Copy sent to Jordi Mallach <[email protected]>, [email protected]. (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

From: William Thompson <[email protected]>
To: Jordi Mallach <[email protected]>
Cc: [email protected]
Subject: Re: mailutils-pop3d: no /etc/init.d script
Date: Fri, 4 Apr 2003 13:49:51 -0500
> > Yes, it does work from inetd.  I wanted it to run as a daemon being the fact
> > that when I install it on the real mailserver here it'll be hit about 60
> > times a minute and didn't want to use inetd.
> 
> Ok, I guess I'll do some setup similar to what (I've been told) proftpd
> does: it installs an init.d script, but not the rcX links. The init.d
> script also kills running instances, so if you start it and it was on
> inetd, it'll take over.

It does something like this:
if ! egrep -q "^[:space:]*ServerType.*standalone" /etc/proftpd.conf
then
    run_proftpd=0
fi

then under start:
    if [ $run_proftpd = 1 ]
        then
            update-inetd --disable ftp
            echo -n "Starting professional ftp daemon: "
...
...

I personally thing that calling update-inetd to disable it might cost a
little.  But our machine here is a 1.2ghz celeron handling mail.  (used to
be a 233mhz pentium)                            

> > So far, this is the *ONLY* mysql pop3d server I have found that allows me to
> > give it the select query which is required because the db isn't a
> > /etc/passwd like table (plus I wanted to have 2 names for 1 person.  People
> > here have network logins and email ids that aren't the same.)
> > 
> > This is why I made the init.d script.
> 
> Thanks for the script. I hope I'll do something about it sometime soon,
> I'm a bit tight on time though.

Welcome.  I'll continue to use my script until the package is updated to
have an init.d script.

You may wish to look at the imap server portion as well.  Since I'm not
using IMAP here, I didn't look into it.



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 15:59:27 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.