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

Update postfix config when hostname is changed #1392

greghensley opened this Issue Jul 12, 2016 · 1 comment


None yet
3 participants

greghensley commented Jul 12, 2016

After changing the hostname via the WebUI, the file /etc/postfix/generic still contains re-mapping directives for the old hostname. As a result, mail is sent to the configured SMTP forwarder without remapping the sender. Since the default sender is <user>@<hostname>.localdomain, most ISPs' SMTP forwarders will reject the message as the .localdomain TLD is not resolvable.

This should be considered silent failure, since users will simply stop receiving notifications. The only ways for users to detect that a problem exists is by either sending a test email from the WebUI, or accessing the root account from a shell and checking its mail spool (postfix returns the undeliverable mail).

Removing and re-adding the email configuration in the Rockstor WebUI correctly updates the postfix config.


This comment has been minimized.

Show comment
Hide comment

MFlyer Jul 13, 2016


Hi @greghensley working on it, probably going to solve it today (it's an easy one)



MFlyer commented Jul 13, 2016

Hi @greghensley working on it, probably going to solve it today (it's an easy one)


MFlyer added a commit to MFlyer/rockstor-core that referenced this issue Jul 13, 2016

Fixes #1392 - Update postfix config on hostname change
Added reference to update_generic from email_client view
On every hostname change check if Email Alerts ok (at least one row in email table)
and if so update /etc/postfix/generic-generic.db via update_generic

@schakrava schakrava closed this in 125f342 Jul 14, 2016

@schakrava schakrava added the bug label Jul 14, 2016

@schakrava schakrava added this to the Pinnacles milestone Jul 14, 2016

@schakrava schakrava changed the title from Changing hostname does not update postfix config to Update postfix config when hostname is changed Nov 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment