Fix spamassassin locations
This commit is contained in:
parent
aa921b0fd0
commit
2253058acf
@ -81,10 +81,10 @@ COPY ./config/dovecot/dovecot.logging /etc/dovecot/conf.d/10-logging.conf
|
||||
|
||||
# spamassasin configuration
|
||||
COPY ./config/spamassasin/spamassasin.local.append \
|
||||
/etc/spamassassin/local.cf.append
|
||||
RUN mkdir /etc/spamassassin/.pyzor /etc/spamassassin/.razor
|
||||
COPY ./config/spamassasin/pyzor.servers /etc/spamassassin/.pyzor/servers
|
||||
RUN cat /etc/spamassassin/local.cf.append >> /etc/spamassassin/local.cf
|
||||
/etc/mail/spamassassin/local.cf.append
|
||||
RUN mkdir /etc/mail/spamassassin/.pyzor /etc/mail/spamassassin/.razor
|
||||
COPY ./config/spamassasin/pyzor.servers /etc/mail/spamassassin/.pyzor/servers
|
||||
RUN cat /etc/mail/spamassassin/local.cf.append >> /etc/mail/spamassassin/local.cf
|
||||
COPY ./update-spamlists /usr/bin/update-spamlists
|
||||
RUN chmod +x /usr/bin/update-spamlists
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
# you should leave this untouched
|
||||
razor_config /etc/spamassassin/.razor/razor-agent.conf
|
||||
pyzor_options --homedir /etc/spamassassin/.pyzor
|
||||
razor_config /etc/mail/spamassassin/.razor/razor-agent.conf
|
||||
pyzor_options --homedir /etc/mail/spamassassin/.pyzor
|
||||
|
||||
# here goes your whitelist stuff for example
|
||||
# whitelist_from user@example.com
|
||||
|
@ -4,7 +4,7 @@ set -e
|
||||
|
||||
while true; do
|
||||
if [[ $(date +%H) == 23 ]] ; then
|
||||
razor-admin -home=/etc/spamassassin/.razor -discover
|
||||
razor-admin -home=/etc/mail/spamassassin/.razor -discover
|
||||
sa-update
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user