The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    8
    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:
    1
    Trophy Points:
    18
    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
     
  3. kbuser

    kbuser Well-Known Member

    Joined:
    Aug 25, 2008
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    8
    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