You need to configure your web server to execute the CGI script. Apache configuration sample snippet: Alias /sareport $WWW_HOST_DIR Options +ExecCGI AddHandler cgi-script .cgi DirectoryIndex sa_report.cgi Order deny,allow Deny from all Allow from 127.0.0.1 Allow from ::1 # Allow from .example.com Insert into your host's configuration, and replace "$WWW_HOST_DIR" with your virtual host's base directory (e.g. /var/www/example.com/). Please make sure that your web server supports CGI scripts (e.g. Apache loads the mod_cgi module). To support multiple hosts (and/or you want to use multiple configuration files) you need to: 1. set the $CONFIG_FILE variable in the cgi-bin/sa_report.cgi script. 2. you need to add an configuration file to the /etc/sendmailanalyzer directory. (Note: each file named *.conf in this directory is treated like a task to execute)