chore: Remove the wrapper script for Postfix (#3033)
This commit is contained in:
parent
f496897b09
commit
24d0c358a1
|
@ -40,32 +40,32 @@ smtps inet n - n - - smtpd
|
||||||
-o milter_macro_daemon_name=ORIGINATING
|
-o milter_macro_daemon_name=ORIGINATING
|
||||||
-o cleanup_service_name=sender-cleanup
|
-o cleanup_service_name=sender-cleanup
|
||||||
|
|
||||||
pickup fifo n - y 60 1 pickup
|
pickup fifo n - n 60 1 pickup
|
||||||
-o content_filter=
|
-o content_filter=
|
||||||
-o receive_override_options=no_header_body_checks
|
-o receive_override_options=no_header_body_checks
|
||||||
|
|
||||||
cleanup unix n - y - 0 cleanup
|
cleanup unix n - n - 0 cleanup
|
||||||
qmgr unix n - n 300 1 qmgr
|
qmgr unix n - n 300 1 qmgr
|
||||||
tlsmgr unix - - y 1000? 1 tlsmgr
|
tlsmgr unix - - n 1000? 1 tlsmgr
|
||||||
rewrite unix - - y - - trivial-rewrite
|
rewrite unix - - n - - trivial-rewrite
|
||||||
bounce unix - - y - 0 bounce
|
bounce unix - - n - 0 bounce
|
||||||
defer unix - - y - 0 bounce
|
defer unix - - n - 0 bounce
|
||||||
trace unix - - y - 0 bounce
|
trace unix - - n - 0 bounce
|
||||||
verify unix - - y - 1 verify
|
verify unix - - n - 1 verify
|
||||||
flush unix n - y 1000? 0 flush
|
flush unix n - n 1000? 0 flush
|
||||||
proxymap unix - - n - - proxymap
|
proxymap unix - - n - - proxymap
|
||||||
proxywrite unix - - n - 1 proxymap
|
proxywrite unix - - n - 1 proxymap
|
||||||
smtp unix - - y - - smtp
|
smtp unix - - n - - smtp
|
||||||
relay unix - - y - - smtp
|
relay unix - - n - - smtp
|
||||||
showq unix n - y - - showq
|
showq unix n - n - - showq
|
||||||
error unix - - y - - error
|
error unix - - n - - error
|
||||||
retry unix - - y - - error
|
retry unix - - n - - error
|
||||||
discard unix - - y - - discard
|
discard unix - - n - - discard
|
||||||
local unix - n n - - local
|
local unix - n n - - local
|
||||||
virtual unix - n n - - virtual
|
virtual unix - n n - - virtual
|
||||||
lmtp unix - - n - - lmtp
|
lmtp unix - - n - - lmtp
|
||||||
anvil unix - - y - 1 anvil
|
anvil unix - - n - 1 anvil
|
||||||
scache unix - - y - 1 scache
|
scache unix - - n - 1 scache
|
||||||
|
|
||||||
sender-cleanup unix n - n - 0 cleanup
|
sender-cleanup unix n - n - 0 cleanup
|
||||||
-o syslog_name=postfix/sender-cleanup
|
-o syslog_name=postfix/sender-cleanup
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# You cannot start postfix in some foreground mode and
|
|
||||||
# it's more or less important that docker doesn't kill
|
|
||||||
# postfix and its chilren if you stop the container.
|
|
||||||
#
|
|
||||||
# Use this script with supervisord and it will take
|
|
||||||
# care about starting and stopping postfix correctly.
|
|
||||||
#
|
|
||||||
# supervisord config snippet for postfix-wrapper:
|
|
||||||
#
|
|
||||||
# [program:postfix]
|
|
||||||
# process_name = postfix
|
|
||||||
# command = /path/to/postfix-wrapper.sh
|
|
||||||
# startsecs = 0
|
|
||||||
# autorestart = false
|
|
||||||
#
|
|
||||||
|
|
||||||
trap "service postfix stop" SIGINT
|
|
||||||
trap "service postfix stop" SIGTERM
|
|
||||||
trap "service postfix reload" SIGHUP
|
|
||||||
|
|
||||||
service postfix start
|
|
||||||
|
|
||||||
# wait until postfix is dead (triggered by trap)
|
|
||||||
while kill -0 "$(< /var/spool/postfix/pid/master.pid)"
|
|
||||||
do
|
|
||||||
sleep 5
|
|
||||||
done
|
|
|
@ -131,7 +131,7 @@ autostart=false
|
||||||
autorestart=true
|
autorestart=true
|
||||||
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
||||||
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
||||||
command=/usr/local/bin/postfix-wrapper.sh
|
command=postfix start-fg
|
||||||
|
|
||||||
[program:changedetector]
|
[program:changedetector]
|
||||||
startsecs=0
|
startsecs=0
|
||||||
|
|
Loading…
Reference in New Issue