Enabling Trac Email notifications

If you’ve ever reported a but to Ruby on Rails, you’ll have noticed that their Trac has nice email notification feature. And I bet you want that in your Trac as well! Now, email notification are nothing exotic. You don’t need any plugins, just an outgoing SMTP server and access to your trac.ini file. In your trac directory open up conf/trac.ini and look for the [notification] header. Make sure you have at least the following settings.

Bash it! - Number of messages in Postfix queue

Got bash? Here’s a nice snippet that will return the number of messages currently in the postfix queue. postqueue -p | tail -n 1 | cut -d' ' -f5 Feel free to post any updates or improvements.