0% found this document useful (0 votes)
308 views

Webmin Server Conf Guide Part10

Postfix can be configured through Webmin to set up a mail server to send and receive emails. The installation process involves checking that Postfix is installed and accessing its configuration options in Webmin. Key configuration steps include setting the outgoing mail domain, incoming mail domains, and Postmaster address. Advanced options allow configuring mail relaying, canonical mappings, virtual domains, transport mappings, and logging settings to customize Postfix's email handling and security.

Uploaded by

Foysal Ahmed
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
308 views

Webmin Server Conf Guide Part10

Postfix can be configured through Webmin to set up a mail server to send and receive emails. The installation process involves checking that Postfix is installed and accessing its configuration options in Webmin. Key configuration steps include setting the outgoing mail domain, incoming mail domains, and Postmaster address. Advanced options allow configuring mail relaying, canonical mappings, virtual domains, transport mappings, and logging settings to customize Postfix's email handling and security.

Uploaded by

Foysal Ahmed
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Chapter 4.

Postx Mail Server


With Postfix , you can set up and congure a mail server in order to send and receive mails. This server can communicate directly with other mail servers on the Internet through the SMTP protocol. With the right conguration, Postfix can handle all the mail sent to the domain of your company.

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).

4.2. Step-by-Step Conguration Example


Each Postfix option in the Webmin module is documented. Just click on the options name and a new window will appear, explaining the relevant option.

Figure 4-1. Postx Modules Start-Up Screen

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

Chapter 4. Postx Mail Server

Figure 4-2. Postxs Main Conguration Screen

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.

4.3. Advanced Conguration


The General options section contains a lot of elds, but not all are important. You can choose to send all outgoing mails to a relay server, or to deliver them directly through Send outgoing mail via host. If you want to keep trace of all your e-mails, put an address in Address that receives bcc of each message, and the latter will receive a copy of each mail. For advanced administration, you could change the Postfix database type in the Default database type eld from hash to dbm. You can specify the Time in hours before sending a warning for no delivery. If you plan to use this mail server only to receive mails from the Internet, you could specify the public network interface in the Network interfaces for receiving mail eld. If you want to change the system user who is running Postfix , change it in Mail owner. The other options are system-specic, and are not important for conguring Postfix . In the Canonical mapping section, you can specify mapping table les, which are used to rewrite e-mail headers managed by Postfix . For example, in Address mapping lookup tables, you could associate the name of employees with their e-mails: [email protected] and [email protected]. In the Virtual domains section, you can specify domain table les, which are used by Postfix to redirect specic e-mails or entire domains to another server.

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

Chapter 4. Postx Mail Server

44

You might also like