sensu / sensu-email-handler

Sensu Go Email Handler Plugin
https://sensu.io
MIT License
11 stars 17 forks source link

Plugin always opens with `EHLO localhost` and the email headers contain `Received: from localhost` at the smtp server it hits. This causes SpamAssassin to mark message from Sensu as spam. #77

Open ipaqmaster opened 1 year ago

ipaqmaster commented 1 year ago

Despite server hostname being set correctly and with a valid /etc/hosts, sensu-email-handler sends EHLO localhost and the email header has Received: from localhost which trips up SpamAssassin's HELO_LOCALHOST anti-spam rule, occasionally marking messages from sensu as spam combined with other minor flags.

/etc/hosts looks like: 127.0.0.1 sensu.domain.com sensu-go localhost localhost.localdomain /etc/hostname looks like: sensu.domain.com

Yet sensu-email-handler still uses localhost as its Extended HELO.

ipaqmaster commented 12 months ago

Will this just never be addressed? There's a common theme with these plugins just being released and forgotten.

ipaqmaster commented 7 months ago

This is still a problem and frequently gets hit by mail filters trying to reach me with email notifications of my own infrastructure.

My overall experience with Sensu-Go feels like it were abandoned along with its plugins shortly after release. It's been a frustrating experience having to modify the supplied asset definitions for official plugins to work on more (compatible) hosts due to unnecessarily strict entity.system.platform_family lines and it has been annoying working with these seemingly abandoned official plugins with issues left unacknowledged for years in an official project repo also untouched for years.