Web site construction - 624 Part V . Running Servers 3. Configure
624 Part V . Running Servers 3. Configure SpamAssassin to not modify message bodies by adding the following line to the end of /etc/spamassassin/local.conf: report_safe 0 4. Start SpamAssassin: # invoke-rc.d spamassassin start 5. Install the ClamAV virus scanning daemon: # apt-get install daemon clamav-daemon 6. Install the milter programs that sendmail will use to perform the content filtering: # apt-get install spamass-milter clamav-milter 7. Edit the spamass-milter startup parameters in /etc/default/spamassmilter. The configuration settings shown here instruct spamass-milter to not modify the message body (which can result in significant performance decreases) and to reject messages with a spam score higher than 20. # spamass-milt startup defaults # OPTIONS are passed directly to spamass-milter. # man spamass-milter for details OPTIONS= -m -r 20 Note the last line in this example. If you have several options to specify, you include them in a single OPTIONS line as shown. 8. The master sendmail configuration file is /etc/mail/sendmail.cf. Its format is very complicated, which is why the preferred method is to edit /etc/mail/ sendmail.mc. /etc/mail/sendmail.mc contains macros that are translated and copied to the sendmail.cf when you run sendmailconfig or when you run make from the /etc/mail directory. Open sendmail.mc in your text editor and make the following changes: DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1 )dnl This line tells sendmail to only listen for connections on the loopback interface. If you plan to receive messages directly via SMTP, replace 127.0.0.1 with 0.0.0.0. Add the following line after the DAEMON_OPTIONS lines if you do not have control over all hosts within the domains that you are relaying for (doing so will help prevent other machines within those domains from relaying mail through your server without authorization): FEATURE(`relay_hosts_only )dnl Insert this line if you have to send all outgoing mail through a specific server: define(`SMART_HOST , `mail.example.org )dnl If you are going to allow client machines to relay messages through your server (see step 12 and the associated Caution), find this line: FEATURE(`access_db , , `skip )dnl and replace skip with /etc/mail/access.
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.