mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-17 21:26:19 +00:00
Update build/run/docker-entrypoint/init.d/70-reject.sh
This commit is contained in:
parent
d1b726ab48
commit
251e8787d7
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue