The following bug has been CLOSED
======================================================================
http://www.dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000084
======================================================================
Reported By: rondavis
Assigned To: ilja
======================================================================
Project: DBMail
Bug ID: 84
Category: POP3 daemon
Reproducibility: always
Severity: feature
Priority: normal
Status: closed
======================================================================
Date Submitted: 07-Sep-04 21:32 CEST
Last Modified: 13-Oct-04 10:42 CEST
======================================================================
Summary: pop3 Daemon Restart problems
Description:
When you attempt to restart the pop3 daemon when there are active
connections to the system on 110 the pop3 daemon stops but if you attempt
to start it will fail untill all the active connections to IP:110 clear
up. You can see in the maillog where it cannot bind to port address.
There should be a way to stop pop3 and kill all those connections so that
the system can restart properly.
======================================================================
----------------------------------------------------------------------
paul - 09-Sep-04 15:46 CEST
----------------------------------------------------------------------
What version are you using exactly? And what init scripts are you using?
This problem was supposedly fixed a long time ago, and I haven't seen in
since.
----------------------------------------------------------------------
rondavis - 09-Sep-04 16:46 CEST
----------------------------------------------------------------------
Here is a copy if the init script that i created:
The version is: 1_2_2
If this has already been fixed i apologize for the inconveniance. I was
unaware.
#! /bin/bash
#
# dbmail Start/Stop the dbmail daemons.
#
# description: DBMail is a mail server application
#
RETVAL=0
# See how we were called.
start() {
echo -n $"Starting DBMail: ";
touch /var/lock/subsys/local
/sbin/iptables -t nat -A OUTPUT -d 216.87.42.200 -p tcp --dport 25
-j DNAT --to 192.168.61.101
/usr/local/dbmail/bin/dbmail-pop3d
/usr/local/dbmail/bin/dbmail-imapd
echo -n $"Starting PostFix: ";
postfix start
}
stop() {
echo -n $"Stopping DBMail: ";
/sbin/iptables -t nat -F
killall -9 dbmail-pop3d
killall -9 dbmail-imapd
rm -f /var/lock/subsys/local
echo -n $"Stopping PostFix: ";
postfix stop
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?
----------------------------------------------------------------------
ilja - 14-Sep-04 14:24 CEST
----------------------------------------------------------------------
This should be fixed in later versions. Please update to DBMail 1.2.10
Bug History
Date Modified Username Field Change
======================================================================
07-Sep-04 21:32rondavis New Bug
09-Sep-04 15:46paul Bugnote Added: 0000231
09-Sep-04 16:46rondavis Bugnote Added: 0000232
14-Sep-04 14:24ilja Bugnote Added: 0000237
14-Sep-04 14:24ilja Assigned To => ilja
14-Sep-04 14:24ilja Resolution open => not a bug
14-Sep-04 14:24ilja Status new => resolved
13-Oct-04 10:42ilja Status resolved => closed
======================================================================