• 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.

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