HindrikOxilion
Verified User
- Joined
- Sep 23, 2011
- Messages
- 33
Hey all,
We're utilizing a (PHP) script to automate some abuse actions, based on reports from an outgoing spam filter.
One use-case is to suspend an e-mail account via the DirectAdmin API, but this only seems to work if the e-mail account to be suspended ends with the main/hosted domain. It does not work if the e-mail address ends with an alias/pointer domain. To clarify a bit:
Suppose we have some user with domain maindomain.tld, and an alias/pointer domain named pointer.tld.
If we determine that outgoing spam is sent via authenticated SMTP with [email protected], suspending the e-mail account [email protected] does not work via the API. We should somehow determine the main domain for which pointer.tld is an alias, and then issue a suspension of the account [email protected] via the API.
So my question at this time is:
how could one determine/retrieve the actual hosted domain name via the API, given any domain (be it main, alias or pointer) as input.
I'll gladly receive any thoughts on this...
With kind regards,
Hindrik Deelstra
Oxilion B.V.
We're utilizing a (PHP) script to automate some abuse actions, based on reports from an outgoing spam filter.
One use-case is to suspend an e-mail account via the DirectAdmin API, but this only seems to work if the e-mail account to be suspended ends with the main/hosted domain. It does not work if the e-mail address ends with an alias/pointer domain. To clarify a bit:
Suppose we have some user with domain maindomain.tld, and an alias/pointer domain named pointer.tld.
If we determine that outgoing spam is sent via authenticated SMTP with [email protected], suspending the e-mail account [email protected] does not work via the API. We should somehow determine the main domain for which pointer.tld is an alias, and then issue a suspension of the account [email protected] via the API.
So my question at this time is:
how could one determine/retrieve the actual hosted domain name via the API, given any domain (be it main, alias or pointer) as input.
I'll gladly receive any thoughts on this...
With kind regards,
Hindrik Deelstra
Oxilion B.V.