Global way to disable catchall emails for all domains

Created:

2017-03-05 04:22:55 UTC

Modified:

2017-08-08 13:45:55 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Global way to disable catchall emails for all domains

Question

How-to disable catchall emails for all domains?

Answer

Use the script below to disable catchall for all domains where it was enabled:


~# MYSQL_PWD=`cat /etc/psa/.psa.shadow`  mysql -uadmin  psa -Nse"select d.name from domains d, DomainServices ds where ds.dom_id=d.id and ds.parameters_id in (select id from Parameters where parameter='nonexist_mail' and value='catch');"| while read i; do /usr/local/psa/bin/domain_pref -u $i -no_usr reject; done

Have more questions? Submit a request
Please sign in to leave a comment.