On Tue, 2009-06-23 at 18:59 +0200, Benny Pedersen wrote: > On Tue, June 23, 2009 18:46, Steve wrote: > > I am assured that it is amavis-new :-) However, I've also been told the > > lottery numbers over and over and I've not won a penny. > > well you need to play if you want to win, admins like me get fingers very > dirthy one or more times, but for me its the road to be a better nerd :) > It could very easily be the way that Barracuda configure it. They are not known for their programming expertise. They have to share Micky Mouse with Disney Land for half the year....
I can confirm it's Amavis-new if the start script on the model I have in front of me is to be believed... !/bin/sh # # amavisd This script controls the amavisd-new daemon. # (to be used with version amavisd-new-20020630 or later) # # chkconfig: 2345 98 31 # description: amavisd is an interface between MTA and content checkers # processname: amavisd # pidfile: /var/spool/scan/amavisd.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Source timezone info . /home/emailswitch/code/firmware/current/etc/tz # force perms on /mail/scan /bin/chown -R scana.scana /mail/scan # Make sure the stats.log file is in place and writable touch /mail/log/stats.log chmod 777 /mail/log/stats.log # Empty the stats log file if it is larger than 20 MB size=`du -m /mail/log/stats.log | cut -f1` if [ $size -ge 20 ] ; then `cat /dev/null > /mail/log/stats.log`; fi prog="/home/emailswitch/code/firmware/current/bin/amavisd" prog_base="$(basename ${prog})" prog_config_file="/home/emailswitch/code/firmware/current/etc/amavisd.conf" # Source configuration. [ -e /etc/sysconfig/${prog_base} ] && . /etc/sysconfig/${prog_base} RETVAL=0 # See how we were called. case "$1" in start) # Make sure amavisd is down killall -9 amavisd # Start intent server /home/emailswitch/code/firmware/current/sbin/intentctl start # Start up amavisd echo "cleaning scan directory of amavis- files" find /mail/scan -name "amavis-*" -prune -exec rm -fr {} \; action $"Starting ${prog_base}:" ${prog} -c ${prog_config_file} RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/${prog_base} PLATFORM="1" if [ -f "/etc/barracuda/platform" ]; then PLATFORM=`/bin/cat /etc/barracuda/platform` fi if [ "$PLATFORM" != "1" ]; then /usr/bin/killall lmtp echo "sleep 10 && /usr/bin/killall -HUP master" | /bin/sh & fi ;; stop) # Go ahead and shut-down amavisd now action $"Shutting down ${prog_base}:" ${prog} -c ${prog_config_file} stop RETVAL=$? if [ $RETVAL -eq 0 ] ; then echo "${prog_base} stopped" rm -f /var/lock/subsys/${prog_base} fi # Remove any "start" locks, in case we're unlucky with a race # condition. rmdir $start_lockdir >/dev/null 2>&1 # Shut down intent server /home/emailswitch/code/firmware/current/sbin/intentctl stop ;; # reload) # # Let reload do a quick stop/start w/o dealing with the mta overhead # # this should only be used on systems which aren't very loaded otherwise # # the mta will quit talking to amavisd # # # Reload intent config # /home/emailswitch/code/firmware/current/sbin/intentctl reload # # action $"Shutting down ${prog_base}:" ${prog} -c ${prog_config_file} stop # action $"Starting ${prog_base}:" ${prog} -c ${prog_config_file} # ;; status) status ${prog_base} RETVAL=$? ;; reload|restart) $0 stop $0 start RETVAL=$? ;; *) echo "Usage: $0 {start|stop|status|restart|reload}" exit 1 esac # Quit out with the last retrun value we had exit $RETVAL