Commit 8fcdf43f authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve mail scripts

parent 2fcf99c6
......@@ -22,7 +22,7 @@ mkdir -p $BACKUPDIR || exit
ARCNAME="$BACKUPDIR/$(date -R).tar.gz"
erc create "$ARCNAME" $SPAMDIR || exit
# remove mails
echo "removing mails from $SPAMDIR ..."
find "$SPAMDIR" -maxdepth 1 -type f -name "*." -delete
rm -f $SPAMDIR/cyrus.*
......
......@@ -7,6 +7,8 @@
# Sep 14 04:11:10 server postfix/smtpd[22127]: NOQUEUE: reject: RCPT from mail.mtml.ru[95.131.27.100]: 450 4.1.7 <noreply@mirtesen.ru>: Sender address rejected: unverified address: connect to mirtesen.ru[95.131.27.20]:25: Connection refused; from=<noreply@mirtesen.ru> to=<lav@etersoft.ru> proto=ESMTP helo=<mailgate1.mtml.ru>
# Sep 14 22:46:17 server postfix/smtpd[20894]: NOQUEUE: reject: RCPT from mail.us.archive.org[207.241.224.6]: 450 4.1.7 <noreply@openlibrary.org>: Sender address rejected: unverified address: host mail.archive.org[207.241.224.6] said: 550 5.1.1 <noreply@openlibrary.org>: Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command); from=<noreply@openlibrary.org> to=<lav@etersoft.ru> proto=ESMTP helo=<mail.archive.org>
epm q python-module-httplib2 || exit
if [ "$1" = "-f" ] ; then
skip
cat /var/log/mail/all | grep "reject: RCPT" | egrep "(Sender address rejected: unverified address|Helo command rejected: Host not found)" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment