mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 07:36:18 +00:00
First commit
This commit is contained in:
commit
7b58f82156
21 changed files with 1951 additions and 0 deletions
34
build/run/docker-entrypoint/init.d/50-cron.sh
Executable file
34
build/run/docker-entrypoint/init.d/50-cron.sh
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Update Postscreen Whitelists (daily)
|
||||
while true
|
||||
do
|
||||
sleep 1d
|
||||
/usr/local/bin/postwhite/postwhite
|
||||
done &
|
||||
|
||||
# Update Yahoo! IPs for Postscreen Whitelists (weekly)
|
||||
while true
|
||||
do
|
||||
sleep 7d
|
||||
/usr/local/bin/postwhite/scrape_yahoo
|
||||
done &
|
||||
|
||||
# Roundcube cleanup (daily)
|
||||
while true
|
||||
do
|
||||
sleep 1d
|
||||
/usr/share/webapps/roundcube/bin/cleandb.sh
|
||||
done &
|
||||
|
||||
# # Refresh ssl keys daily
|
||||
# # https://www.golinuxcloud.com/renew-self-signed-certificate-openssl/
|
||||
# while true
|
||||
# do
|
||||
# sleep 1d
|
||||
# openssl x509 -x509toreq -in /etc/ssl/dovecot/tls.pem -signkey /etc/ssl/dovecot/tls.key -out /tmp/new-certificate-sign-request.csr
|
||||
# openssl x509 -req -days 3650 -in /tmp/new-certificate-sign-request.csr -signkey /etc/ssl/dovecot/tls.key -out /etc/ssl/dovecot/tls.pem
|
||||
# rm /tmp/new-certificate-sign-request.csr
|
||||
# dovecot reload
|
||||
# postfix reload
|
||||
# done &
|
||||
Loading…
Add table
Add a link
Reference in a new issue