Project

General

Profile

Actions

Feature #822

closed

Allow a Customizable "Reply" Address in Email Configuration

Added by Matt Mencel over 13 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
E-Mail
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

At my site, it is required that any smtp connections must use a valid "reply" address to send through our servers.

Foreman has this hard-coded in the app/models/host_mailer.rb file in two places...

from "Foreman-noreply@" + Facter.domain

...and so by default is not allowed to send mail. Our smtp server rejects it.

I've fixed it for now for our site by changing those lines in the model, but it's not safe from upgrades. I would like this to be customizable in the config/email.yaml file if possible so that we could set it without having to edit the host_mailer.rb file directly.

Thanks,
Matt

Actions

Also available in: Atom PDF