Hi,
As part of a backup script for cyrus-imapd, I'd like to temporarily stop
postfix delivering mails to cyrus-imapd and to just queue them. If it is
at all possible I'd like to do it without restarting any services (I
know I can just stop cyrus-imapd).
Reading what I can, there is a parameter, defer_transports, which I have
been trying to use with "postconf -o defer_transports=????" without
success. I have tried deferring smtp, lmtp and mailpostfilter, but it
does not stop mail delivery.
My master.cf is:
[root@server ~]# postconf -M
smtp inet n - n - - smtpd
smtps inet n - n - - smtpd -o
smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
submission inet n - n - - smtpd -o
smtpd_sasl_auth_enable=yes -o smtpd_tls_security_level=may -o
smtpd_client_restrictions=permit_sasl_authenticated,reject
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp -o
smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
mailprefilter unix - n n - - pipe
user=filter argv=/usr/sbin/mailprefilter -- -s ${sender} -r ${recipient}
-u ${sasl_username} -c ${client_address}
smtp-amavis unix - - n - 5 smtp -o
smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o
disable_dns_lookups=yes -o max_use=20
127.0.0.1:10025 inet n - n - - smtpd -o
content_filter=smtp-amavis:[127.0.0.1]:10024 -o
smtpd_restriction_classes= -o smtpd_client_restrictions= -o
smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o
smtpd_recipient_restrictions=permit_mynetworks,reject -o
mynetworks=127.0.0.0/8 -o smtpd_authorized_xforward_hosts=127.0.0.0/8 -o
strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o
smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000
127.0.0.1:10026 inet n - n - - smtpd -o
content_filter= -o smtpd_restriction_classes= -o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject -o
smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o
smtpd_recipient_restrictions=permit_mynetworks,reject -o
smtpd_data_restrictions=reject_unauth_pipelining -o
smtpd_end_of_data_restrictions= -o mynetworks=127.0.0.0/8 -o
smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o
smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o
smtpd_client_connection_rate_limit=0
mailpostfilter unix - n n - - pipe
user=filter argv=/usr/sbin/mailpostfilter -- -s ${sender} -r
${recipient} -c ${client_address}
I believe mailprefilter and mailpostfilter are internal routines of
ClearOS (a Centos 7 clone) and I have little understanding why they are
used instead of a more conventional setup.
Is there any way of achieving what I want without stopping services?
Thanks,
Nick