Skip to main content

Send SMTP email using external SMTP server, but PHP's mail() emails using local exim server

Comments

3 comments

  • cPanelMichael
    How could I make SMTP email (or email that is sent from an actual email account in my server) go one way, and scripts email (mainly email sent using PHP's mail() function) go another way?

    Hello, Does this not happen by default? If you have email accounts handled on the remote mail server, then local email would not utilize that same remote mail server unless it was configured for SMTP authentication. Thank you.
    0
  • VMunich
    Hello, Does this not happen by default? If you have email accounts handled on the remote mail server, then local email would not utilize that same remote mail server unless it was configured for SMTP authentication. Thank you.

    Hi, thanks for you reply. Yes, the problem is: If I want to change an user's email password, I have to login in the cPanel email server. However if I want to change some files of their website, I have to login on the actual cPanel server where their site is hosted. With many servers, this could cause me some trouble, as this isn't how cPanel is supposed to work by design. I think that, if I could handle this in EXIM itself, I could have all email accounts and websites hosted on the same server, as it is supposed to be, but then if EXIM could handle my users emails to an external SMTP server, and handle all email generated by scripts to the local EXIM server, I would have a lot of less headaches regarding my customers' emails not reaching inboxes due to a blacklist caused by spamming scripts.
    0
  • cPanelMichael
    I think that, if I could handle this in EXIM itself, I could have all email accounts and websites hosted on the same server, as it is supposed to be, but then if EXIM could handle my users emails to an external SMTP server, and handle all email generated by scripts to the local EXIM server, I would have a lot of less headaches regarding my customers' emails not reaching inboxes due to a blacklist caused by spamming scripts.

    Have you considered setting up a smart host?
    0

Please sign in to leave a comment.