Issue #13645 has been updated by Moses Mendoza.

Status changed from Merged - Pending Release to Closed

released with 2.7.15rc1
----------------------------------------
Bug #13645: tagmail: did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
https://projects.puppetlabs.com/issues/13645#change-62964

Author: Stefan Schulte
Status: Closed
Priority: Normal
Assignee: Stefan Schulte
Category: reports
Target version: 2.7.15
Affected Puppet version: 
Keywords: tagmail
Branch: https://github.com/puppetlabs/puppet/pull/634


I get a lot of the following messages when I look into `/var/log/mail` of our 
smtp relay

<pre>
Apr  5 12:16:11 smtp sendmail[8240]: q35AGBJq008240: puppet.example.com 
[$PUPPETS_IP] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
</pre>

Searching this in google leads to the assumption that puppet opens a socket but 
then closes it again without sending any mail. I use the `smtpserver` 
configoption in my `/etc/puppet/puppet.conf` so I guess it may be triggered 
here:

<pre>
Net::SMTP.start(Puppet[:smtpserver]) do |smtp|
  reports.each do |emails, messages|
    smtp.open_message_stream(Puppet[:reportfrom], *emails) do |p|
      p.puts "From: #{Puppet[:reportfrom]}"
      p.puts "Subject: Puppet Report for #{self.host}"
      p.puts "To: " + emails.join(", ")
      p.puts "Date: #{Time.now.rfc2822}"
      p.puts
      p.puts messages
    end
  end
end
</pre>

I guess an empty `reports` may trigger the described behaviour.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to