Email sender is www-data@domain.com

While the GUI and php.ini file show the sender as noreply@domain.com, the received email sender is the webapp owner, www-data, and sender line is www-data@domain.com.

Why is this the case?

How can this be fixed?

TIA

Have a look at

Admin -> Additional Settings -> E-Mail-Server

what address is in there.

Are you passing the mails to an external server via smtp? Or do you pass it to php or sendmail on your system. In that case, it can also be the setting of your mail server (of the NC system). If your mail server is separate and you only need a small daemon that passes mails to this external mailserver, have a look at ssmtp.

@tflidd Using php to send the mail after installing ssmtp, for this purpose.

@amittel My bad on not being clearer in my initial post.

“While the GUI and php.ini file show the sender as noreply@domain.com, the received email sender is the webapp owner, www-data, and sender line is www-data@domain.com.”

Then check the configuration of ssmtp, there should be an option to allow other senders:

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
1 Like

Shit!!! @tflidd, you da man!!!

EXACTLY the issue, and something I must have overlooked in haste.

Thank you!