• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

blacklist spam not deleted when account created via API

R

royce

Guest
Hi all, I am having a problem with creating an email address via the PLESK API RPC. I can create it ok, and set the black/white list patterns, and set it to 'Delete spam mail when it comes to mailbox' automatically.

In my testing, I send an email to that account from an address that is on the blacklist. The email is correctly marked '****SPAM****' but it is not automatically deleted from the users inbox.

When I create an email account via the GUI, and set the same blacklist parameters, and send it an email from a blacklisted sender, the email is automatically deleted and the user never sees it. This is the result I want.

I checked the user_prefs file in /var/qmail/mailnames/domain/emailaddress/.spamassassin/ and I also checked the values in the `spamfilter` MySQL table but I don't see any difference in how the records are defined for users created by the API and users created by the GUI. So I'm totally confused as to why the SPAM would be treated differently.

Any help you can provide is appreciated.
 
SWSoft acknowledges this is a bug

When the .qmail file is created for a new email account via the API, it is written as:

| /usr/local/psa/bin/psa-spamc accept

The GUI correctly creates the file as:

| /usr/local/psa/bin/psa-spamc reject

For now, I guess I will edit the .qmail file when I create the account. Hope they fix this soon, and hope this helps others with this problem.
 
Back
Top