File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ SMTP_RELAY_PORT = ${lookup{port}lsearch{SMTP_RELAY_FILE}}
8282SMTP_RELAY_USER = ${lookup{user}lsearch{SMTP_RELAY_FILE}}
8383SMTP_RELAY_PASS = ${lookup{pass}lsearch{SMTP_RELAY_FILE}}
8484
85+ # Custom Filter
86+ system_filter = /etc/exim4/system.filter
87+ system_filter_user = Debian-exim
88+
8589######################################################################
8690# ACL CONFIGURATION #
8791# Specifies access control lists for incoming SMTP mail #
Original file line number Diff line number Diff line change @@ -21,3 +21,9 @@ upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'no'
2121upgrade_config_set_value ' UPGRADE_REBUILD_USERS' ' no'
2222upgrade_config_set_value ' UPGRADE_UPDATE_FILEMANAGER_CONFIG' ' false'
2323
24+ system_filter=$( cat /etc/exim4/exim4.conf.template | grep ' system_filter' ) ;
25+ if [ -z " $system_filter " ]; then
26+ sed -i ' /SMTP_RELAY_PASS = \${lookup{pass}lsearch{SMTP_RELAY_FILE}}/a #shouldberemoved\n# Custom Filter\nsystem_filter = \/etc\/exim4\/system.filter\nsystem_filter_user = Debian-exim' /etc/exim4/exim4.conf.template
27+ # Keep the spacing between the reley_pass and Custom Filter we need to insert a dummy text and remove it later on
28+ sed -i ' s/#shouldberemoved//g' /etc/exim4/exim4.conf.template
29+ fi
You can’t perform that action at this time.
0 commit comments