#1701 logging.handlers.SMTPHandler uses nobody@fedoraproject.org as from address
Closed: Fixed Opened by kordex.

mail_logging.py L189 has nobody@fedoraproject.org

When mail is unable to deliver postfix logs as follows:

Undelivered Mail Returned to Sender
X-Postfix; Host or domain name not found. Name service error

However this should be apache@hostname instead of nobody@fedoraproject.org as process is running under apache on the host which generates the email.

apache@hostname is an valid email address as it has alias configured for root on Fedora hosts

grep apache /etc/aliases

apache: root

Current configuration might cause unwanted mail delivery.

Happy new year!


Instead of using apache@hostname I went with the approach to use the FROM_EMAIL set in the configuration file, making us be more consistent.

Commit a67cd7ee fixes this issue

@pingou changed the status to Closed

Metadata