BUG: Mailadresse Absender ASCII Notification after 2.0 Upgrade

Ich habe folgendes Problem mit meiner CMK-Instanz (CRE 2.0.0p8):

Bei den Notifications werden für ein HOST/DOWN-Event Mails sowohl über das Plugin “mail” als auch über das Plugin “asciimail” verschickt.

In beiden Fällen habe ich unter “Notification Method” die Option “From” → “Email address” angepasst und sowohl bei mail als auch bei ascii dieselbe Absenderadresse hinterlegt.

Die Mail, die mit dem PLugin “mail” verschickt wurde, kommt wie gewünscht mit dem gesetzten Email-Adressaten an. Bei der ASCII-Mail wird jedoch bei der Absenderadresse der Teil vor dem “@” durch den Namen der OMD-Instanz geändert.

Warum wird das gemacht und wo lässt sich das ändern?

I just wanted to add that we are also experiencing the same problem since updating our Checkmk
from rel 1.6.0p27 to 2.0.0p20.
HTML emails are sent with the correct ‘from’ sender address as defined in our notification rules, but
ascii mail which we use for SMS alerts ignores the From email address we set and defaults to
setting the sender field to ‘OMD_SITE@fqdn’.

In our 1.6 sItes, the from address is correctly used by the asciimail method as well.

I suspect it might not be the configured notification rule which sends out those mails, but the fallback mechanism instead.

The notification analysis might help.

Just confirming that as per ‘martin.schwarz’ comments,
asciimail does indeed depend on the ‘Fallback email address for notifications’ set in the global settings.
Altering this to the correct value solved our issue wth asciimail sender address not being set correctly.

For an updated / upgraded instance from 1.6 to 2.0 i can say that there is a real bug with the from address definition.

The old 1.6 or older rule looks like this.

'asciimail', {'from': 'mail@domain.com', ...

and the new 2.0 syntax is this

'asciimail', {'from': {'address': 'mail@domain.com'}, ...

The old notification rules are not respecting the from setting only the new rules. The easiest solution to achieve the new syntax was, open the rule modify something and save the rule.

If you have too many rules and don’t want to modify all, the quicker solution would be to define a “sender_canonical” setting for your postfix. :wink:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.