Skip to main content

API to get current mail exchanger routing type

Comments

7 comments

  • ServerHealers
    The API is currently not returning mxcheck parameter, so it might be removed from that API I think. Another option is to retrieve it using below command: [QUOTE]grep -l "^DOMAIN$" /etc/{localdomains,remotedomains}
    Replace DOMAIN with your actual domain name. If this returns /etc/localdomains - then the domain is set to Local routing If this returns /etc/remotedomains - then the domain is set to Remote routing.
    0
  • swbrains
    I checked in the /etc directory but I don't have a localdomains or a remotedomains file or folder, even after I set the account to "local" or "remote" exchanger type.
    0
  • swbrains
    Ok, it looks like you're referring to the root's /etc folder, whereas I was looking at the account's /etc folder. Unfortunately, I need to determine the exchanger type from a script running under a user's account, so the script won't have access to the root's /etc folder.
    0
  • ServerHealers
    Unfortunately, I don't think there is a way to determine this as a normal user at this stage. You would need root level access to the server to crawl up through those files I mentioned earlier.
    0
  • swbrains
    Thanks -- I've submitted a feature request for a local account to be able to retrieve their current mail exchanger type via the API:
    0
  • ServerHealers
    Great! If you could share the link to your feature request in this thread then it would be helpful for others to upvote on it easily. :)
    0
  • swbrains
    I've updated my previous message with the link.
    0

Please sign in to leave a comment.