Chapter 24 . Running a Mail Server 627 (Submit web site)

Chapter 24 . Running a Mail Server 627 2. Debconf asks several questions about how to configure Postfix: Select Internet Site as the configuration type, unless you have to send outgoing mail through a specific server, in which case you should select Internet With Smarthost. Direct all mail to the appropriate account on your system. Generally this is the account that you created while installing Debian. Enter the name of the primary domain for which you will be accepting mail. Answer no to the question about adding your domain to simple addresses. If you selected the smarthost option, enter the name of that server when prompted. Enter the entire list of hosts for which you plan to accept mail. This is generally your main domain, localhost, and localhost.localdomain. Do not force synchronous writes for mail unless you expect your server to have frequent unexpected reboots and are ready to take the performance decrease. 3. Configure Postfix to use maildrop as its local MDA by editing the mailbox_ command line 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 external filter program read the original message on its input and then write the entire message to its output. ClamAV does not include this feature, so an intermediate program will be needed to perform some of the filtering steps. Create a file named /usr/local/sbin/clam-mailscan that 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 python from sys import stdin, stdout from os import execv, popen, umask, unlink from tempfile import mktemp CLAMSCAN= /usr/bin/clamscan umask(0077) errors = [] Note
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.

Leave a Reply