mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-23 02:27:05 +00:00
Remove submission options configuration
The plan is to add it in later in another form in a seprarate branch.
This commit is contained in:
parent
d904feb399
commit
bb63d5774a
@ -28,19 +28,6 @@ mkdir -p $STORAGE_ROOT/mail
|
|||||||
# Enable the 'submission' port 587 listener.
|
# Enable the 'submission' port 587 listener.
|
||||||
sed -i 's/^#submission\b/submission/' /etc/postfix/master.cf
|
sed -i 's/^#submission\b/submission/' /etc/postfix/master.cf
|
||||||
|
|
||||||
# Enable selected 'submission' service options.
|
|
||||||
perl -i -pe 's/ ^[#] ( \s+ -o \s (?:
|
|
||||||
syslog_name |
|
|
||||||
smtpd_reject_unlisted_recipient |
|
|
||||||
smtpd_recipient_restrictions |
|
|
||||||
smtpd_relay_restrictions |
|
|
||||||
milter_macro_daemon_name
|
|
||||||
) )
|
|
||||||
/\1/x
|
|
||||||
if $rc = /^submission\b/ ... ($_ !~ /^#?\s/) and # submission line to next "logical" line
|
|
||||||
$rc !~ /(^1|E0)$/ # exclude outer matching lines' \
|
|
||||||
/etc/postfix/master.cf
|
|
||||||
|
|
||||||
# Add 'authclean' service hook (if necessary) to 'submission' service options.
|
# Add 'authclean' service hook (if necessary) to 'submission' service options.
|
||||||
if ! grep -Eq '^\s+-o cleanup_service_name=authclean\b' /etc/postfix/master.cf; then
|
if ! grep -Eq '^\s+-o cleanup_service_name=authclean\b' /etc/postfix/master.cf; then
|
||||||
sed -i $'/^submission\\b/ a\\\n -o cleanup_service_name=authclean' /etc/postfix/master.cf
|
sed -i $'/^submission\\b/ a\\\n -o cleanup_service_name=authclean' /etc/postfix/master.cf
|
||||||
|
Loading…
Reference in New Issue
Block a user