627Chapter 24Running a Mail Server2.Debconf asks several questions (Hosting web)

627Chapter 24Running a Mail Server2.Debconf asks several questions about how to configure Postfix: Select Internet Site as the configuration type, unless you have to sendoutgoing mail through a specific server, in which case you should selectInternet With Smarthost. Direct all mail to the appropriate account on your system. Generally thisis the account that you created while installing Debian. Enter the name of the primary domain for which you will be accepting mail. Answer noto the question about adding your domain to simple addresses. If you selected the smarthost option, enter the name of that server whenprompted. Enter the entire list of hosts for which you plan to accept mail. This isgenerally your main domain, localhost, and localhost.localdomain. Do not force synchronous writes for mail unless you expect your serverto have frequent unexpected reboots and are ready to take the perfor- mance decrease. 3.Configure Postfix to use maildropas its local MDA by editing the mailbox_ commandline in /etc/postfix/main.cf: mailbox_command = /usr/bin/maildrop -d ${USER} If you will be relaying mail for any clients, add their IP addresses to the mynetworks line. 4.The only filter mechanism supported by maildrop requires that the externalfilter program read the original message on its input and then write the entiremessage to its output. ClamAV does not include this feature, so an intermedi- ate program will be needed to perform some of the filtering steps. Create a filenamed /usr/local/sbin/clam-mailscanthat contains the following: By the time this book goes to press, this script should be available online at http: //www.tuckerlabs.com/wayne/projects/clam-mailscan/. #!/usr/bin/env pythonfrom sys import stdin, stdoutfrom os import execv, popen, umask, unlinkfrom tempfile import mktempCLAMSCAN= /usr/bin/clamscan umask(0077) errors = [] Note33_
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Leave a Reply