• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

List all domains with "Mail sent to non-existent users"

MislavO

Regular Pleskian
Hello.

In my documents I have command:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "select name from domains" | grep -v 'name' > domains.txt; while read i; do echo $i; /usr/local/psa/bin/domain_pref -i $i | grep nonexistent; done < domains.txt

but it seems like that is no longer working. I've tried to search psa database to find this option "Mail sent to non-existent users", but no success.

What I want to do is list all domains settings for "Mail sent to non-existent users" or even filter them - list only domains that have option set other then Reject.
 
The problem here in incorrect parameter for grep command. It should be 'non-existent' instead of 'nonexistent'. For example:

# /usr/local/psa/bin/domain_pref -i ppu12-5.demo.pp.plesk.ru | grep non-existent
What to do with mail sent to non-existent users: 'reject'
 
Back
Top