Setting smarthosts to bypass phpmail / sendmail

mediumfriedchips

Verified User
Joined
Oct 23, 2020
Messages
23
Hello

I have an issue here.

I set up smarthosts to deliver emails from my vps instead of using the server IP and it worked great , the only issue I have is that all mail coming from the box is now going through smarthosts .

What I need is that only emails that are sent via smtp (from the actual email addresses on the server) go through smarthosts and not ones sent via websites scripts like phpmail or sendmail

Is they a way to set this ?

I am using mail baby for smarthosts

For the record I don't want to disable phpmail / sendmail I want to keep it running but mail sent from there to be sent from the local server and then smarthost email come from smtp

If anyone has an idea if this is possible that will be greatly appreciated.
 
Back
Top