• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Plesk-API: How to set Mail Service Prefs?

ChrisH

Basic Pleskian
Hi,
following this documentation it should be able to de/activate Webmail and Greylisting with the API:
Mail Service Preferences

So this should work:
<packet> <mail> <set_prefs> <filter> <site-id>1</site-id> </filter> <prefs> <greylisting>true</greylisting> <webmail>none</webmail> <mailservice>true</mailservice> </prefs> </set_prefs> </mail> </packet>

But I get an error:
Parser error: Request is invalid. Error in line 13: Element 'webmail': This element is not expected. Expected is one of ( mailservice, ip_address, mail-provider, webmail-certificate ).

Anybody any ideas? It it an bug?

Thanks in advance!
Cheers Chris.
 
Indeed, <webmail>none</webmail> only works alone like:

<packet>
<mail>
<set_prefs>
<filter>
<site-id>1</site-id>
</filter>
<prefs>
<webmail>none</webmail>
</prefs>
</set_prefs>
</mail>
</packet>

and after that, you may run:

<packet>
<mail>
<set_prefs>
<filter>
<site-id>1</site-id>
</filter>
<prefs>
<greylisting>true</greylisting>
<mailservice>true</mailservice>
</prefs>
</set_prefs>
</mail>
</packet>

You can submit request to Reports and I will forward it to developers for consideration.
 
Thank you IgorG for your answer. You are right, webmail alone will work. But have you tried to change greylisting? It doesn't work at all - even alone.
I will submit an request. Thanks again.
 
Back
Top