1
Web services API Get CatchAll
Question asked by Ant - 4/25/2017 at 8:16 AM
Answered
I've been doing some work that makes use of the SmarterMail web services API.
 
I can't seem to find a way of discovering what alias is currently set as the catch-all alias. 
 
The API only has 'SetCatchAll'.
 
It looks like it could do with a 'GetCatchAll' method, or have I missed something in the docs?

2 Replies

Reply to Thread
0
Employee Replied
Employee Post Marked As Answer
Hello Ant.  You can retrieve the catchall name by calling GetRequestedDomainSettings.  In the requestedSettings string, use 'catchall', and the name of the domains catchall will be returned.  I hope this helps.
 
POST /Services/svcDomainAdmin.asmx HTTP/1.1
Host: mail.exampledomain.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetRequestedDomainSettings"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetRequestedDomainSettings xmlns="http://tempuri.org/">
      <AuthUserName>admin</AuthUserName>
      <AuthPassword>password</AuthPassword>
      <DomainName>example.com</DomainName>
      <requestedSettings>
        <string>catchall</string>
      </requestedSettings>
    </GetRequestedDomainSettings>
  </soap:Body>
</soap:Envelope>
 
0
Ant Replied
Thanks Rod, that's exactly what I'm after. I knew it would be in there somewhere....

Reply to Thread