mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 01:26:17 +00:00
Delete build/run/docker-entrypoint/init.d/70-reject.sh
This commit is contained in:
parent
251e8787d7
commit
acf3093c0f
1 changed files with 0 additions and 16 deletions
|
|
@ -1,16 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Notify if rejected emails were found
|
|
||||||
while true
|
|
||||||
do
|
|
||||||
unset reject
|
|
||||||
bash -c 'tail -n +0 --pid=$$ -f /var/log/mail/maillog* | grep --line-buffered -F -v -f /var/log/mail/reject.log | { sed "/NOQUEUE: reject/q" && kill $$ ;}'
|
|
||||||
reject="$(grep "NOQUEUE: reject" /var/log/mail/maillog* | grep -F -v -f /var/log/mail/reject.log)"
|
|
||||||
echo ${reject} >>/var/log/mail/reject.log
|
|
||||||
cat <<- mail | sendmail reject@${MYVEMAIL_DOMAIN}
|
|
||||||
From: reject@${MYVEMAIL_DOMAIN}
|
|
||||||
To: reject@${MYVEMAIL_DOMAIN}
|
|
||||||
Subject: Rejected email found
|
|
||||||
|
|
||||||
${reject}
|
|
||||||
mail
|
|
||||||
done &
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue