• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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