I'm using qmail for my mail server. Periodically, qmail refuses an email because of non-compliance (see
http://cr.yp.to/docs/smtplf.html). It appears that immediately after qmail refuses to accept the mail, avastrelay shuts down abnormally. The log prior to termination looks like this:
Nov 07 12:56:38 avastrelay[1673]: info: smtp connection with '172.16.1.3:725'
Nov 07 12:56:38 avastrelay[1673]: info: connected to avast! '/var/run/avast4mailscanner.sock'
Nov 07 12:56:38 avastrelay[1673]: info: message accepted for relaying
Nov 07 12:56:38 avastrelay[1673]: info: smtp client connection to '172.16.1.3:825'
Nov 07 12:56:38 avastrelay[1673]: warning: message forwarding failed - See
http://pobox.com/~djb/docs/smtplf.html.
Nov 07 12:56:38 avastrelay[1673]: info: closing smtp client '172.16.1.3:825'
Nov 07 12:56:38 avastrelay[1673]: info: closing smtp connection '172.16.1.3:725'
Nov 07 12:56:38 avastrelay[1673]: info: closing avast! client '/var/run/avast4mailscanner.sock'
Nov 07 12:57:51 avastrelay[1673]: info: smtp connection with '172.16.1.3:725'
After restarting avastrelay, I get a few lines of this:
Nov 07 16:40:08 avastrelay[7207]: info: Starting avast! relay
Nov 07 16:40:08 avastrelay[7207]: info: listening on '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: smtp connection with '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: smtp connection with '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: smtp connection with '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: smtp connection with '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: smtp connection with '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: smtp connection with '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: smtp connection with '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: smtp connection with '172.16.1.3:725'
Nov 07 16:40:41 avastrelay[7209]: info: connected to avast! '/var/run/avast4mailscanner.sock'
Nov 07 16:40:41 avastrelay[7209]: info: connected to avast! '/var/run/avast4mailscanner.sock'
Nov 07 16:40:41 avastrelay[7209]: info: connected to avast! '/var/run/avast4mailscanner.sock'
Nov 07 16:40:41 avastrelay[7209]: info: connected to avast! '/var/run/avast4mailscanner.sock'
Nov 07 16:40:41 avastrelay[7209]: info: connected to avast! '/var/run/avast4mailscanner.sock'
Nov 07 16:40:41 avastrelay[7209]: info: connected to avast! '/var/run/avast4mailscanner.sock'
This is followed by lots of errors:
Nov 07 16:40:41 avastrelay[7209]: info: connected to avast! '/var/run/avast4mailscanner.sock'
Nov 07 16:40:41 avastrelay[7209]: warning: message scan failed - Service not available
Nov 07 16:40:41 avastrelay[7209]: info: closing avast! client '/var/run/avast4mailscanner.sock'
Then it shuts down again. At some point, it will stay up and running... but at the moment, I'm having to constantly monitor avastrelay to make sure email keeps moving through the way it's supposed to.