mailchk bug

  • There had been a problem eariler at AZB wherein the mailchk script deployed at mumbai location had tried to restart mfilter i.e. stop it and start it again.
  • Mfilter was stopped but it could not be started
  • Mfilter is killed by mailchk executing command
         kill -9 /etc/init.d/mfilter 
         

    and started by mailchk executing command

      
         $rcmfilter start.
         
  • The value of this variable $rcmfilter is "/etc/init.d/mfilterd" instead of "/etc/init.d/mfilter" and hence mfilter was killed but could not be started.
  • The fix for the same has to be deployed across all locations on which mailchk was put up.
  • HOW TO FIX THIS
    1. Log on the server where mailchk script has been deployed
    2. cd /usr/local/lib/mailcheck/conf/
    3. mkdir RCS
    4. ci -l mailcheck.conf
    5. Please remember that you have already taken a backup of the configuration file so that we can revert back to it when the need arises. For your information, a file checked into RCS is checked out by
      co -l
    6. vi mailcheck.conf
    7. search for word rcmfilter
    8. The line will be of type
      rcmfilter='/etc/init.d/mfilterd'
    9. Change this line to
      rcmfilter='/etc/init.d/mfilter'
    10. Save and quit.