php - Sending mail from webserver to external mail server with local domain name -
this issue i've encountered several time , haven't yet found decent solution for:
sending e-mail webserver on e.g. "domain.com", info@domain.com hosted on external mail server e.g. google mail
in case send php on apache , on shared hosting, can imagine same case on other frameworks.
these e-mails seem delivered local mail server, if set mx records on server point right external mail server.
a solution use external smtp server, isn't easy when you're working clients either need set-up new e-mail account on server , provide smtp details or sign-up third-party smtp server.
what solution this? there no way around smtp?
most emai/mta server "autoconfigure" themselves. guess list of local email domains (doimans locally hosted mailboxes).
in sendmail case can turn off adding following line in sendmail.mc:
define(`confdont_probe_interfaces', `true') documentation : cf/readme - confdont_probe_interfaces
Comments
Post a Comment