Skip to content
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

Unable to configure email alerts if the local network domain is localdomain #2373

Closed
parthjoshi-pc opened this issue May 25, 2022 · 1 comment

Comments

@parthjoshi-pc
Copy link
Contributor

Because of a quirk of the rockstor Django application, if your local network has its default domain configured as localdomain, then it is not possible to configure email alerts. This is because Rockstor automatically adds an entry to the /etc/default/generic postfix lookup table with the domain name localdomain and then tries to add another entry for the default domain of the host. This leads to a duplicate entry being added in the lookup table with the postmap command failing with the following error:

CommandException: Error running a command. cmd = /usr/sbin/postmap /etc/postfix/generic. rc = 1. stdout = ['']. stderr = ['postmap: warning: lmdb:/etc/postfix/generic: duplicate entry: "@hostxxxx.localdomain"', 'postmap: fatal: error updating lmdb:/etc/postfix/generic: Invalid argument', '']

This can be fixed trivially by not adding the extra entry in this case.

phillxnet added a commit that referenced this issue Oct 22, 2022
…main-generic-map

Prevent duplicate localdomain entry in generic map #2373
@phillxnet
Copy link
Member

Closing as:
Fixed by #2374
Thanks again to @parthjoshi-pc for also providing the fix. Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants