mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 09:06:19 +00:00
Fix logs and re-added rejecting missing hostnames
This commit is contained in:
parent
8e1330848d
commit
3a1d0a5f47
2 changed files with 9 additions and 3 deletions
|
|
@ -22,7 +22,13 @@ ${reset}"
|
|||
}
|
||||
|
||||
# Reset logs
|
||||
# echo | tee /var/log/maillog /var/log/maillog.debug >/dev/null
|
||||
for log in /var/log/maillog{,.{0..9}} /var/log/maillog.debug{,.{0..9}}
|
||||
do
|
||||
if [ ! -f ${log} ]
|
||||
then
|
||||
touch ${log}
|
||||
fi
|
||||
done
|
||||
syslogd -O /var/log/maillog -s 2000 -b 10
|
||||
|
||||
# Run all scripts in init folder
|
||||
|
|
@ -37,4 +43,4 @@ postfix reload &&
|
|||
echo -e "\n\e[1;32mMail service is ready\e[0m\n"
|
||||
|
||||
# Monitor log
|
||||
tail -f /var/log/maillog*
|
||||
tail -f /var/log/maillog{,.{0..9}} /var/log/maillog.debug{,.{0..9}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue