Webmin Server Conf Guide Part10
Webmin Server Conf Guide Part10
4.1. Installation
The rst step is to check that the Postfix server is installed on your computer. If it is not, please use the rpmdrake application or type urpmi apache in a terminal to install it. The server conguration is done through the Postx conguration button. You will nd it in the Servers category. If you dont nd it, you can recuperate the postfix.wbm le on the Webmin site (http://www.webmin. com/webmin/standard.html) and install it by using the Webmin conguration module in the Webmin category. If you click on the Webmin modules icon, you will end up on a page where you can tell Webmin the path to the module to be installed (or removed).
Postfix s conguration begins with the rst icon: General options. The Most useful general options part is relevant and interesting. The other part will be described in the Advanced Conguration, page 42 section of this chapter. The rst option concerns outgoing mail. You should specify the mail domain. Leave it to domainname if the computers domain name has the same value as your mail domain name. Through the second option, Postfix knows which domains and host names to manage. For example, your computer name is gateway.example.com and your mail domain is example.com. The outgoing mail domain should be example.com and the incoming domains would be example.com, localhost.example.com, localhost.localdomain, gateway.example.com: these are Webmin default values. The last important option is the Postmaster address. In that eld, you must specify the administrators e-mail address, whom will receive mail reports in case of problems.
41
The options contained in the second part, Other general options, must be congured. The Internet hostname of this mail system must be set up with the correct hostname. A wrong entry could lead your e-mails to be rejected from other mail servers. The Local Internet domain name option must be specied. Finally, by specifying the correct Local networks, you could avoid becoming the victim of illegal spammers. This option tells Postfix from which IP address it should accept e-mails. Leave all the notice options to the postmaster. He will receive all error messages from Postfix . The Mail aliases section congures the mail redirection to valid existing mailboxes. For example, you can congure it in order for all mail sent to the postmaster to be redirected to roots mailbox. You can also congure e-mail aliases for your users. The rst part species where Postfix should look for in the database le. The next step concerns General resource control. Two options are interesting: Max size of a message and Max size of bounced message. The rst one congures the maximum size of e-mails managed by Postfix . It restricts the le size of attachments users of your network could try to send. The second option avoids to ll your hard drive when an e-mail cannot be delivered locally. It bounces in Postfix s queue, waiting to be delivered. In the SMTP server options section, congure Restrict mail relaying with these values: $mydestination,$mynetworks. It will prevent Postfix from relaying e-mails from any client.
42
Chapter 4. Postx Mail Server The Transport mapping section tells Postfix which les contain domains to relay. In this le, specify all emails from a domain which is accepted by your mail server, which then has to be resent to another host. The Relocating mapping section tells Postfix what to do with nonexistent e-mails or domains. The Local delivery section contains options to help you congure the life of e-mails after Postfix receives them. It looks for a .forward le in users home directories (which indicate the e-mail address to send the mail back to); with Search list for forward, give the e-mail to procmail for ltering (External command to use instead of mailbox delivery), and then delivered to the Spool directory. In the SMTP server options section, you can prevent receiving spam mail by conguring the DNS domains for blacklist lookups eld. Some Internet servers run public DNSs with blacklisted hosts. These mail hosts are relaying spam mail. So conguring this option allows Postfix to look in these databases before accepting mails. All Postfix response in the bottom of the page should be kept to the default value. The Debugging features section contains two options. The rst one, List of domain/network patterns for which verbose log is enabled, species a list of hosts and domains, for which Postfix logs have to be verbose. The second one congures the logs verbosity level. If LDAP is installed on your system, you could access and congure options in the LDAP lookups section.
43
44