Code: Select all
root@zoneminder:/tmp# tail -f zmfilter.log
01/09/09 15:08:12.668611 zmfilter[4831].INF [Scanning for events]
01/09/09 15:10:47.984449 zmfilter[4831].INF [Creating notification email]
01/09/09 15:10:47.985024 zmfilter[4831].INF [Sending notification email 'West_Pathway Alarm - 2009-01-09 15:10:30']
01/09/09 15:12:48.207334 zmfilter[4831].INF [Notification email sent]
The line in zmfilter.pl that was causing the delay was $mail->smtpsend; I found a blurb online about the order in which smtpsend checks for mail hosts, and at least on my system it doesn't appear to be honoring the "Host" directive that ZM is trying to pass to it. So I added a line in my /etc/hosts:
Code: Select all
127.0.0.1 mailhost
Code: Select all
01/09/09 15:13:18.221506 zmfilter[4831].INF [Creating notification email]
01/09/09 15:13:18.221892 zmfilter[4831].INF [Sending notification email 'West_Pathway Alarm - 2009-01-09 15:12:57']
01/09/09 15:13:18.293129 zmfilter[4831].INF [Notification email sent]
And a quick thank you to Ross in this thread:
http://www.zoneminder.com/forums/viewto ... t=mailhost
I didn't discover that thread until after I'd done all this work, because I didn't know to search for the word "mailhost", but had I seen that thread sooner it might have clued me in faster.