SmarterMail: API - How to access (add) Security | Blacklist
Question asked by Sarah Weinberger - December 25, 2014 at 7:49 PM
Answered
Is there a SmarterMail API, so that I can access the via my WinForms application the Security | Blacklist area? I want to add records to the list.
 
A nice to have would be to pull the list as well.
 
How do I gain access to this API?

16 Replies

Reply to Thread
1
Robert Emmett Replied
Employee Post Marked As Answer
Sarah, you should be able to access the Security | Blacklist entries by going to http://mail.yourdomain.com/services/svcServerAdmin.asmx.  Use the following calls:  GetBlacklistEntries and SetBlacklistEntry to list the blacklist entries or set them.
 
 
Robert Emmett
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
Thank you Robert fot the information, however the link does not work! It goes to the KB root.
0
Robert Emmett Replied
Employee Post
The link should now work.
Robert Emmett
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
1. Am I correct that there are no arguments for GetBlacklistEntries?
2. What is the argument format for SetBlacklistEntry? (Note, the dialog offers - IP Address || IP Address Range - 4 checkboxes I have to be able to specify this information.
0
Robert Emmett Replied
Employee Post
There only arguments for GetBlacklistEntries is the system admin username and password. For SetBlacklistEntry, you will provide the system admin username and password, either IP Address or IP Address range (one or the other), either "true" or "false" for all four protocols, and an optional description.
Robert Emmett
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
Does that mean for GetBlacklistEntries I pass: "String Username, String Password" and that for SetBlacklistArguments I pass: "String Username, String Password, String IPAddress, Boolean Protocal1, Boolean Protocal2, Boolean Protocal3, Boolean Protocal4, String Description" as the arguments?
0
Robert Emmett Replied
Employee Post
You would also pass the IPAddress start and end ranges as an empty string after String IPAddress. Everything else is correct. Make sure that only IPAddress or the ranges are set--not both.
Robert Emmett
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
I received a cryptic error message. How exactly do I increase the quota for the GetBlacklistEntries? Error: "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."
0
Okay, mission accomplished. I did not realize that maxReceivedMessageSize was a .Net thing. I thought that it was a SmarterTools thing. All works now. Thanks.
0
I did not see a DeleteBlaclistEntry() method? Is it named something else?
0
Robert Emmett Replied
Employee Post
To completely remove a blacklist entry, set all the protocol booleans to false.
Robert Emmett
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
As an FYI, the SetBlacklistEntry() method misses the XMPP protocol. The method only allows stipulating SMTP, POP, and IMAP. Why was the XMPP protocol not exposed?
0
Robert Emmett Replied
Employee Post
I noticed that when you first posed the question. It has been fixed to expose the XMPP protocol and will be available in the next minor release.
Robert Emmett
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
dildargee1 Replied
 
We had a problem with our mail IDs, We are unable to send / receive mail from any of our mail IDs. We had updated all records into our domain but still we are facing the problem.   Can any of you please help or guide us regarding our issue....
 
____________________
ahsan
0
Bruce Barnes Replied
Tacking a question like this onto someone else's post is considered hijacking a thread. Please repost this as a new /uniqu thread: referencing SmarterMail as the product at the time of the post. Thank you.
Bruce Barnes
ChicagoNetTech Inc
brucecnt@comcast.net

Phonr: (773) 491-9019
Phone: (224) 444-0169

E-Mail and DNS Security Specialist
Network Security Specialist

Customer Service Portal: https://portal.chicagonettech.com
Website: https://www.ChicagoNetTech.com
Security Blog: http://networkbastion.blogspot.com/

Web and E-Mail Hosting, E-Mail Security and Consulting
0
Sorry to revive an old thread,
Is this API still valid in
  • SmarterMail Enterprise Edition
  • Version 14.4.5801
Also, one other question, Instead of using an API, is there an XML table or something that could be modified directly or uploaded ?  Where is the IP blocking data stored at ?

www.HawaiianHope.org - Providing technology services to non profit organizations, homeless shelters, clean and sober houses and prisoner reentry programs. To date we have given away over 1,000 free computers.

Reply to Thread