send user emails via DA but system emails via external SMTP

landlord096

Verified User
Joined
May 1, 2014
Messages
32
Hi,

I would like to send all system emails using an external SMTP, but when an user has een website which uses php mail function, it should b send directly from DA/exim.

How do I accomplish this?
 
What do you mean by 'system' emails? Do you mean emails sent by 'root' and by other system users, as various processes take place? Or sent by DirectAdmin?

In terms of sending them directly through external SMTP (not through DirectAdmin/exim and then a smarthost), you'd have to do that directly with each system process or perhaps your OS, or perhaps by replacing what's called the Sendmail Interface with a smarter system which would determine, on a by-user basis, whether to forward to an external smarthost or to exim.

If you can clarify more specifically which emails and how sent, perhaps I or someone else could come up with some other ideas.

Jeff
 
Hi Jeff,

Sorry for the late reply.

What I want is that every single email, except emails send using a contactform on a hosted site is sent through an external smtp server.
So When a user retrieves his password, he will get an email sent by the external smtp. But when a visitor fill-in his contactform on his website, it should be send using phpmail.

So basically all e-mails coming from our systems / company are sent using an external smtp server which handles dkim,spf and dmarc validations.
 
Hello,

Isn't it that depends on settings you use in your CMS? Almost all modern CMS can use either SMTP or PHP mail(). If you mean something else then please clarify your thoughts. I don't seem to get all what you write here.
 
Back
Top