How to configure mail for non-existent users rejection for all domains?

Created:

2016-12-18 06:50:32 UTC

Modified:

2017-08-16 18:26:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to configure mail for non-existent users rejection for all domains?

Applicable to:

  • Plesk 12.5 for Linux

Question

How to set mail rejection for non-existent users for all domains in Plesk at once?

Answer

  1. Store the list of all domains from psa database with the command:

    ~# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa --skip-column-names  -e "select name from domains" > domains.txt
  2. Download a script and unzip it:

    ~# wget https://support.plesk.com/hc/article_attachments/115004351105/all-domain-reject.zip
    ~# unzip all-domain-reject.zip
  3. Add execution permission for the script:

    ~# chmod +x ./all-domain-reject.sh
  4. Execute the script as follows:

    ~# ./all-domain-reject.sh domains.txt

Attachments:

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