0

On my Debian Raspberry, i have installed ssmtp. When I send an email, using Wordpress' contact 7 form, the email appears as sent by www-data, the owner of the directory where wordpress is installed. How can I change this ? it is so ugly !

Here is my ssmtp.conf:

[email protected]
mailhub=smtp.orange.fr:25
rewriteDomain=xxx.com
hostname=raspberrypi
FromLineOverride=NO

Thanks.

1 Answer 1

0

You could try using FastCGI based apache/PHP server which would send the mail as the mail account configured for the user hosting the WordPress site. You can also configure WordPress to send SMTP though a different server.

WordPress may already be trying to send mail using the correct "From" address, but I do see that your config has FromLineOverride=NO as described in this StackOverflow question:

https://stackoverflow.com/questions/13675703/ssmtp-rewritting-from-field-in-emails

1
  • Thanks Kristopher Finally, I have uninstalled ssmtp, installed others, reinstalled ssmtp ! and it works fine. I think the pb was more or less the fact I was using Orange with a port 25, and now I am using Gmail with a port 587, secured.
    – Sebastien
    Commented Apr 16, 2015 at 9:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .