Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The issue I'm having here is that when I get an alert from Munin, I want it to create a ticket. When the ticket it created, it sends an email back to the email address that Munin sent from each time the ticket is updated, which is not an actual email address, so it creates a "suspended" ticket.

I'd like to get rid of the suspended tickets by changing the email address that Munin sends from, which is munin@xxxxx.localdomain to our business donotreply@xxxx.com. Does anyone have any insight into how to do this?

I'm using 'mail' as an MTA.

share|improve this question
    
Do you have a contact.email.command definition in your config ? –  Iain May 23 at 16:57
    
Thanks for the response! I actually got it all set up and working now. I'll post a detailed answer to this in a few hours. I don't seem to have a high enough rep to answer my own question within 8 hours. –  Cody May 23 at 22:56

1 Answer 1

up vote 2 down vote accepted

So, I figured out the solution. I had to change my email setup in /etc/munin/munin.conf from:

contacts me # may be unnecessary and cause warnings
contact.me.command mail -s "Munin notification ${var:host}" myemail@gmail.com
contact.me.always_send warning critical

to:

contacts me # may be unnecessary and cause warnings
contact.me.command mailx -r donotreply@xxxx.com -s "Munin notification ${var:host}" myemail@gmail.com
contact.me.always_send warning critical

So, basically, just had to use "mailx" instead of "mail" and also preface the subject of the email with "-r donotreply@xxx.com"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.