HomePhorge

(#13645) Do not open a smtp connection if nothing to report
f6ac1bbda292Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#13645) Do not open a smtp connection if nothing to report

If tagmail finds out that there are no messages that have to be sent to
anyone puppet will still open a smtp connection (if smtpserver is set)
and then close the connection without sending any data. This can lead
to a lot of syslogmessages on your smtp server like

sendmail: puppet.example.com did not issue MAIL/EXPN/VRFY/ETRN
during connection to MTA

The fix now does not even enter the send method if there are no reports
to be sent. This does also prevent unnecessary forking if there are no
reports.

Details

Event Timeline

Stefan Schulte <stefan.schulte@taunusstein.net> committed rPUf6ac1bbda292: (#13645) Do not open a smtp connection if nothing to report (authored by Stefan Schulte <stefan.schulte@taunusstein.net>).Apr 17 2012, 12:05 AM