Skip to main content

Send all email by smtp

Comments

5 comments

  • cPanelMichael
    Hello :) You could disable the PHP mail function. Mail routing settings are configured when the account is created: Create a New Account - Mail Routing Settings - Documentation - cPanel Documentation I also suggest voting and adding feedback to this feature request: A Tweak Setting to set the default mail exchanger for all WHM interfaces Thank you.
    0
  • David Poulin
    Thank for you reply. I can't disable the php mail function...as in this case i could block a tons of email for a few website....Also that could include to review all website code to be sure to convert mail function to another function.... For the account creation, i already check the remote option, but when i create addon domain, the default came back to auto detect configuration...and it's why i want to find a universal rule to be sure that email always goes to smtp... At this time, i take a look to the dns zone template, so i can edit the mx setup to be a specific addresse so every new zone always point to our smtp mail server...it's interesting but at this time i'm not sure if it's the best solution
    0
  • cPanelMichael
    The "Automatically detect which setting to use" should automatically determine if the domain name belongs in the /etc/localdomains or /etc/remotedomains file. Are you using a MX record in the zone template that points to a remote mail server? Thank you.
    0
  • David Poulin
    Every addon have a mx record...yes If i look into the dns zone for an addon domain, i can see that someting like that : domain.com 14100 in MX 0 domain.com. So in what i understand is that when the server need to send a email with that domain...and the setting is to automatically detect.....it's use the locadomains or remoteddomains...or the mx entry in the dns zone of that domain....
    0
  • cPanelMichael
    So in what i understand is that when the server need to send a email with that domain...and the setting is to automatically detect.....it's use the locadomains or remoteddomains...or the mx entry in the dns zone of that domain....

    Yes, that is correct. The conditions used by "Automatically Detect Configuration" are documented at: Edit MX Entry - Documentation - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.