• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

CLI to discard mail to nonexistent user?

A

astanley

Guest
I am using Plesk 7.5.4 on Windows 2003. If I view the Mail preferences for a domain on my server, I can choose one of 3 default actions for nonexistent user email: bounce, catch-all, or discard. I also know that in a domain template I can set one of the same 3 as the default action. My question revolves around the use of the CLI to select this "Discard" option. domain_pref.exe --help, and the online CLI documentation seem to indicate that the -no_usr argument only accepts two values: "bounce:txt" or an email address. Is the documentation just outdated or is it really not possible to "Discard" via the CLI? I don't know if this is relevant, but I am using the SmarterMail mail server.
 
SOLVED

./domain_pref.sh -u domain.com -no_usr 'reject'
 
Re: SOLVED

Originally posted by verdehosting
./domain_pref.sh -u domain.com -no_usr 'reject'

FYI - this option doesn;t seem to work in 7.6 / Windows. The utility rejects the syntax.

Ken
 
Of course youll have to adjust the linux format for windows, just run the program and see how it wants them.
 
Originally posted by verdehosting
Of course youll have to adjust the linux format for windows, just run the program and see how it wants them.

I did. It does not accept 'reject' as an option for -no_usr. Nor is 'discard' an option. Further, the -no_usr option is marked as "obsolete" however there is no mention of what replaced it.

Just FYI.
 
Back
Top