Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mail Exchanger

Discussion in 'cPanel Developers' started by kbuser, Jun 24, 2011.

  1. kbuser

    kbuser Well-Known Member

    Joined:
    Aug 25, 2008
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    58
    It seems that Remote vs Local mail exchanger is a setting which goes beyond whether or not the domain is listed in /etc/remotedomains or localdomains. As I've moved every domain from localdomains to remotedomain, and still have accounts marked as local when modifying them in the WHM interface.

    What I'm wondering is how is this information stored? How can I modify it programmatically?
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi kbuser,

    I think the best way to programmatically change that value for the users is to use the API2 Email::setalwaysaccept

    Regards,
    -DavidN
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kbuser

    kbuser Well-Known Member

    Joined:
    Aug 25, 2008
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    58
    Thank you sir, you are a gentleman and a scholar!

    I'm not sure how I missed this API call, I must have been stuck in API1 land.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice