Hi Thomas,
thank you for reactng so fast
Thomas Goirand wrote:
Postfix and dkimproxy are 2 SMTP servers. I really don't think that one
needs the other to be able to start. I don't understand at all why you
are saying that postfix needs to be started first. Can you make it more
clear?
Sure, when the system comes up dkimproxy is started first
since both are S20 and d<p and because in the dependency definitions
of their /etc/init.d files there is no dependency on each other.
If you start postfix first, everything is fine.
----------manual stop and start----------------------------------------
server:/var/log# /etc/init.d/dkimproxy start
Starting inbound DomainKeys-filter: dkimproxy.in.
Starting outbound DomainKeys-filter: dkimproxy.out.
server:/var/log# ps auxwww | grep dkim
root 19251 9.2 1.2 13336 9896 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.in --hostname=server.dr1.neuffer.info
--conf_file /etc/dkimproxy/dkimproxy_in.conf
root 19258 9.2 1.2 13288 9848 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.out --domain=dr1.neuffer.info --method=simple
--conf_file /etc/dkimproxy/dkimproxy_out.conf
root 19263 0.0 1.0 13336 7996 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.in --hostname=server.dr1.neuffer.info
--conf_file /etc/dkimproxy/dkimproxy_in.conf
root 19264 0.0 1.0 13288 7956 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.out --domain=dr1.neuffer.info --method=simple
--conf_file /etc/dkimproxy/dkimproxy_out.conf
root 19265 0.0 1.0 13288 7832 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.out --domain=dr1.neuffer.info --method=simple
--conf_file /etc/dkimproxy/dkimproxy_out.conf
root 19266 0.0 1.0 13288 7832 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.out --domain=dr1.neuffer.info --method=simple
--conf_file /etc/dkimproxy/dkimproxy_out.conf
root 19267 0.0 1.0 13288 7832 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.out --domain=dr1.neuffer.info --method=simple
--conf_file /etc/dkimproxy/dkimproxy_out.conf
root 19268 0.0 1.0 13288 7832 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.out --domain=dr1.neuffer.info --method=simple
--conf_file /etc/dkimproxy/dkimproxy_out.conf
root 19269 0.0 1.0 13336 7872 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.in --hostname=server.dr1.neuffer.info
--conf_file /etc/dkimproxy/dkimproxy_in.conf
root 19270 0.0 1.0 13336 7872 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.in --hostname=server.dr1.neuffer.info
--conf_file /etc/dkimproxy/dkimproxy_in.conf
root 19271 0.0 1.0 13336 7872 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.in --hostname=server.dr1.neuffer.info
--conf_file /etc/dkimproxy/dkimproxy_in.conf
root 19272 0.0 1.0 13336 7872 ? S 09:05 0:00 /usr/bin/perl
-I/usr/lib /usr/sbin/dkimproxy.in --hostname=server.dr1.neuffer.info
--conf_file /etc/dkimproxy/dkimproxy_in.conf
root 19274 0.0 0.0 1784 572 pts/0 S+ 09:05 0:00 grep dkim
server:/var/log# lsof -i:10026
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
dkimproxy 19251 root 4u IPv4 614761 TCP localhost:10026 (LISTEN)
dkimproxy 19263 root 4u IPv4 614761 TCP localhost:10026 (LISTEN)
dkimproxy 19269 root 4u IPv4 614761 TCP localhost:10026 (LISTEN)
dkimproxy 19270 root 4u IPv4 614761 TCP localhost:10026 (LISTEN)
dkimproxy 19271 root 4u IPv4 614761 TCP localhost:10026 (LISTEN)
dkimproxy 19272 root 4u IPv4 614761 TCP localhost:10026 (LISTEN)
server:/var/log# /etc/init.d/postfix start
Starting Postfix Mail Transport Agent: postfix.
Apr 12 09:04:16 server postfix/master[16192]: terminating on signal 15
Apr 12 09:07:04 server postfix/master[19364]: fatal: bind 127.0.0.1 port 10026:
Address already in use
---------------Log from system restart yesterday
afternoon-------------------------------
Apr 11 17:48:24 server postgrey[3464]: Process Backgrounded
Apr 11 17:48:24 server postgrey[3464]: 2008/04/11-17:48:24 postgrey (type
Net::Server::Multiplex) starting! pid(3464)
Apr 11 17:48:24 server postgrey[3464]: Binding to TCP port 60000 on host
127.0.0.1
Apr 11 17:48:24 server postgrey[3464]: Setting gid to "106 106"
Apr 11 17:48:24 server postgrey[3464]: Setting uid to "123"
Apr 11 17:48:54 server postfix/master[6470]: fatal: bind 127.0.0.1 port 10026:
Address already in use
Apr 11 17:49:09 server spamd[6541]: logger: removing stderr method
Apr 11 17:49:12 server dovecot: Dovecot v1.0.13 starting up
Apr 11 17:50:07 server spamd[6543]: spamd: server started on port 783/tcp
(running version 3.2.4)
Apr 11 17:50:07 server spamd[6543]: spamd: server pid: 6543
Apr 11 17:50:07 server spamd[6543]: spamd: server successfully spawned child
process, pid 7778
Apr 11 17:50:07 server spamd[6543]: spamd: server successfully spawned child
process, pid 7779
Apr 11 17:50:07 server spamd[6543]: prefork: child states: II
Apr 11 17:50:19 server postgrey[3464]: 2008/04/11-17:50:19 Server closing!
Apr 11 17:50:19 server postgrey[3464]: Couldn't unlink "/var/run/postgrey.pid"
[Permission denied]
Apr 11 17:50:21 server spamd[6543]: spamd: server killed by SIGTERM, shutting
down
Apr 11 17:51:06 server dovecot: Killed with signal 15
Apr 11 17:51:10 server postfix/postfix-script[9153]: fatal: the Postfix mail
system is not running
----------------------------------------------------
### BEGIN INIT INFO
# Provides: postfix mail-transport-agent
# Required-Start: $local_fs $remote_fs $syslog $named $network $time
# Required-Stop: $local_fs $remote_fs $syslog $named $network
# Should-Start: postgresql mysql clamav-daemon postgrey spamassassin
# Should-Stop: postgresql mysql clamav-daemon postgrey spamassassin
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop the Postfix Mail Transport Agent
# Description: postfix is a Mail Transport agent
### END INIT INFO
### BEGIN INIT INFO
# Provides: dkimproxy
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Domain key filter init script
# Description: dkimproxy is an SMTP-proxy designed for Postfix. It
# implements DKIM message signing and verification.
# It comprises two separate filters, an "outbound" filter
# for signing outgoing email, and an "inbound" filter for
# verifying signatures of incoming email. The filters can
# operate as either Before-Queue or After-Queue Postfix
# content filters.
### END INIT INFO
-------------excerpt from master.cf-------------------------
## For injecting mail back into postfix from the filter
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
-------dkimproxy_in.conf-----------------------------
# specify what address/port DKIMproxy should listen on
listen 127.0.0.1:10026
# specify what address/port DKIMproxy forwards mail to
relay 127.0.0.1:10027
-----------------------------------------------------
----------dkimproxy_out.conf-------------------------
# specify what address/port DKIMproxy should listen on
listen 127.0.0.1:10028
# specify what address/port DKIMproxy forwards mail to
relay 127.0.0.1:10029
# specify what domains DKIMproxy can sign for (comma-separated, no spaces)
# Note that this is set in /etc/init.d/dkimproxy in this Debian package
# unactivate it there if you want to use the config file
#domain example.org
# specify what signatures to add
signature dkim(c=relaxed)
signature domainkeys(c=nofws)
# specify location of the private key
keyfile /var/lib/dkimproxy/private.key
# specify the selector (i.e. the name of the key record put in DNS)
selector postfix
-----------------------------------------------------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]