New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postfix SMTP sender address #970
Comments
@maxhq Thanks for this excellent advise. The email feature is a recent one and I also think it would definitely benefit from this. @rockstor rockstor@fastmail.co.uk That way not only roots emails will be re mapped. Does that look like a reasonable idea to you? In which case I'd be happy to have a crack at it as the email notification feature is quite important for notifications and failure alerts and the like so we don't want it rejected for having an invalid domain name. |
@phillxnet Your version is even better - thank you! |
@maxhq Thanks, hopefully I can make it work. I am currently working on a pull request for this issue. |
Since this is a slightly larger deal I have for the time being todo'ed this aspect. This way we can at least get the majority of users sorted re email from re-writes.
Problem
When mail is sent by Rockstor (or manually using
echo "test" | mail root
), my ISP complains:...because Rockstor's Postfix sends the following header with a local domain:
Solution
This can be prevented by (see http://www.postfix.org/ADDRESS_REWRITING_README.html#generic):
adding this to /etc/postfix/generic:
running
postmap generic
adding this to /etc/postfix/main.cf:
running
postfix reload
I guess it's not too hard to include these steps in the mail configuration script.
The text was updated successfully, but these errors were encountered: