mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 07:36:18 +00:00
Fix alpine postwhite
This commit is contained in:
parent
5c42800b27
commit
4484389191
2 changed files with 8 additions and 10 deletions
|
|
@ -41,7 +41,8 @@ RUN printf '%s\n' 'https://dl-cdn.alpinelinux.org/alpine/edge/main/' \
|
||||||
server_names_hash_bucket_size 128;\n' -i /etc/nginx/nginx.conf \
|
server_names_hash_bucket_size 128;\n' -i /etc/nginx/nginx.conf \
|
||||||
# Installer
|
# Installer
|
||||||
&& /tmp/installer.sh \
|
&& /tmp/installer.sh \
|
||||||
&& rm /tmp/installer.sh
|
&& rm /tmp/installer.sh \
|
||||||
|
&& sed -i '/while ps / s|; do| 2>\&1&|;s|while ps |while ls /proc/|' /usr/local/bin/postwhite/postwhite
|
||||||
|
|
||||||
# Expose ports
|
# Expose ports
|
||||||
EXPOSE 25
|
EXPOSE 25
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,12 @@ do
|
||||||
sleep 1d
|
sleep 1d
|
||||||
done &
|
done &
|
||||||
|
|
||||||
# # Update Postscreen Whitelists (daily)
|
# Update Postscreen Whitelists (daily)
|
||||||
# while true
|
while true
|
||||||
# do
|
do
|
||||||
# at midnight <<- postwhite
|
at -f /usr/local/bin/postwhite/postwhite midnight
|
||||||
# wget -q https://myvelabs.com/docker/myvemail-docker/raw/branch/master/data/postwhite -O /etc/postfix/postscreen_spf_whitelist.cidr
|
sleep 1d
|
||||||
# postfix reload
|
done &
|
||||||
# postwhite
|
|
||||||
# sleep 1d
|
|
||||||
# done &
|
|
||||||
|
|
||||||
# Update Yahoo! IPs for Postscreen Whitelists (weekly)
|
# Update Yahoo! IPs for Postscreen Whitelists (weekly)
|
||||||
while true
|
while true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue