Fixed perl policy and at syntax

This commit is contained in:
Myve 2024-08-14 17:48:59 +00:00
commit afb613e32d
4 changed files with 8 additions and 6 deletions

View file

@ -6,19 +6,19 @@ atd
# Roundcube cleanup (daily)
while true
do
at midnight -f /usr/share/webapps/roundcube/bin/cleandb.sh
at -f /usr/share/webapps/roundcube/bin/cleandb.sh midnight
done &
# Update Postscreen Whitelists (daily)
while true
do
at midnight -f /usr/local/bin/postwhite/postwhite
at -f /usr/local/bin/postwhite/postwhite midnight
done &
# Update Yahoo! IPs for Postscreen Whitelists (weekly)
while true
do
at midnight sunday -f /usr/local/bin/postwhite/scrape_yahoo
at -f /usr/local/bin/postwhite/scrape_yahoo midnight sunday
done &
# # Refresh ssl keys daily

View file

@ -121,7 +121,7 @@ postconf -e "body_checks = pcre:/etc/postfix/body_checks"
# master.cf
sed -e 's/^smtp .*smtpd$/# &/' \
-e '/#smtp\|#smtpd\|#dnsblog\|#tlsproxy/ s/^#//' -i /etc/postfix/master.cf
tee -a /etc/postfix/master.cf >/dev/null <<- 'master.cf'
tee -a /etc/postfix/master.cf >/dev/null <<- master.cf
# Enable submission
submission inet n - y - - smtpd
@ -136,7 +136,7 @@ submission inet n - y - - smtpd
# SPF Policy
policy unix - n n - 0 spawn
user=nobody argv=/usr/bin/postfix-policyd-spf-perl
user=nobody argv=${MYVEMAIL_POLICYD}
master.cf
# Deleting Email Headers For Outgoing Emails