Web services API Get CatchAll
Question asked by Ant - April 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?

1 Reply

Reply to Thread
0
Rod Lasky Replied
Employee Post
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>
 
Rod Lasky
Technical Support Specialist
SmarterTools Inc.
(877) 357-6278
www.smartertools.com

Reply to Thread