Jump to content
Sign in to follow this  
Invisionize.eu

[IPS Marketplace] (SL) Email actions

Recommended Posts

Many users has bad email: account deleted, user suspended, no space in mailbox etc. Your mails to this users back to you with errors.

This is advanced version of (SL) Force users to change email

Features:

  • Make users unapproved until they did not change their email address
  • To users with bad emails did not send any emails
  • Approving emails by users
  • Move users to selected group
  • Log all actions

All you need for work is bad emails list.

 

How to get users list with bad emails?

1. Manually: see your mailer-daemon letters

2. You can use special services

2. Auto: in mail error.log

i am doing like this:

#BAD EMAILS
cat 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.badmails
cat mail.log.badmails|cut -d " " -f1,2|uniq -c >mail.log.badmails.stats
sed -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.stats
sed -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.

Pobierz plik

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

W celu świadczenie usług przez nasz Serwis na najwyższym poziomie, w ramach Serwisu wykorzystujemy pliki Cookies (tzw. ciasteczka). Korzystając ze stron Serwisu IPSBEYOND.PL bez zmiany ustawień przeglądarki będą one zapisane w pamięci urządzenia. Jeżeli nie dokonacie Państwo zmiany ustawień przeglądarki internetowej to wyrażacie zgodę na zapisywanie plików Cookies.