IBResource Опубликовано 24 Января 2017 Жалоба Поделиться Опубликовано 24 Января 2017 Many users has bad email: account deleted, user suspended, no space in mailbox etc. Your mails to this users back to you with errors. With this hook user MUST be to change his email and confirm it. Letters to selected users did not sent and you have no errors. How to get users list with bad emails? 1. Manually: see your mailer-daemon letters 2. Auto: in mail error.log i am doing like this:#BAD EMAILScat mail.log|grep "user is terminated|No such user|account is disabled|The email account that you tried to reach does not exist" >mail.log.badmailscat mail.log.badmails|cut -d " " -f1,2|uniq -c >mail.log.badmails.statssed -E "s/[[:space:]]+/ /g" mail.log.badmails|cut -d " " -f7|sort|uniq -c|sort -n -r|sed 's/to=/g'|sed 's/>,//g'|sed 's/ //g' >mail.log.badmails.to.statssed -E "s/[[:space:]]+/ /g" mail.log.badmails|cut -d " " -f7|sort|uniq -c|sort -n -r|sed 's/.*to=/g'|sed 's/>,//g' >mail.log.badmails.list You get file mail.log.badmails.list where all your bad mails listed. Just copy-paste into config. Thats all.Перейти на сайт Invision Power Ссылка на комментарий Поделиться на других сайтах Прочее
Рекомендуемые сообщения