• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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