Thursday, January 02, 2020

Re: sending mail from wordpress

On Jan 2, 2020 6:27 AM, Stuart Henderson <stu@spacehopper.org> wrote:
>
> On 2020-01-02, Edgar Pettijohn <edgar@pettijohn-web.com> wrote:
> > I'm having trouble getting mail to go through wordpress.
>
> Confogure it to send by SMTP instead. (I don't use wordpress and can't
> help tell you exactly how, but it's definitely possible - search for
> e.g. "wordpress smtp authentication").

Will do.

>
> > The mail() function is not disabled. If my reading of
> > class-phpmailer.php is correct it should see that sendmail_path is
> > defined and use sendmail instead of mail().
>
> Using mail() needs a /bin/sh binary inside the chroot jail. You are
> better off avoiding mail() where possible.
>
>

/bin/sh is present. I tested with chroot /var/www /bin/sh which works. Jus complains about not having a tty. Maybe I need to populate /dev but that doesn't seem necessary.

Thanks,

Edgar

No comments:

Post a Comment