force php mail function to use auth

Hi,

how can i force php mail function to not put mail directly in postfix but have to auth itself before sending an email?

Best Regards,
Kristijan Lecnik

Howdy,

Well, you couldn’t force PHP Mail specifically to have to authenticate – what you would have to do is force all locally generated emails to have to authenticate.

And that causes a problem, because a lot of legitimate apps (such as Cron) frequently generate emails.

So there isn’t actually a good way to do that, unfortunately.

-Eric