Postfix
This report gives idea about my work and my conclusion on my work with Postfix.
The documentation about Postfix can be found in www.postfix.org. In this site you can find the most helpful information to configure postfix. But in this report I will give idea about the basic configuration without going deep for the moment.
Attached an explanation about how the mail is processed inside the Postfix
.
The postfix that come with Redhat 9 is version 1, while a Postfix version 2 supports a lot more functions, so my work actually is based on Postfix version 1 with its limitation.
First, it is better to build BIND server, I created the master zone
localdomain.msft owned by my machine linux1.localdomain.msft and after that I restarted the BIND service (service named restart).
I restarted the Postfix service, by (service postfix restart)
Then, I modified the /etc/postfix/main.cf file to have the initial configuration
a) The myhostname parameter describes the fully-qualified domain name of the
machine running the Postfix system.
myhostname = linux1.localdomain.msft
The mydomain parameter specifies the parent domain of $myhostname.
mydomain = localdomain.msft
b) The mynetworks parameter lists all networks that this machine somehow trusts.
Default (Trust SMTP clients in the IP subnetworks that Postfix is connected to):
mynetworks_style = subnet
Alternatively, you can specify the mynetworks list by hand, in which case Postfix ignores the mynetworks_style setting.
mynetworks = 10.12.0.0/16, 127.0.0.0/8
c) The inet_interfaces parameter specifies all network interface addresses that the Postfix system should listen on. The default is to listen on all active interfaces.
inet_interfaces = all
d) The myorigin parameter specifies the domain that appears in mail that is posted on this machine. The default is to use the local machine name, $myhostname, which defaults to the name of the machine.
myorigin = $myhostname (default)
e) The mydestination parameter specifies what domains this machine will deliver locally, instead of forwarding to another machine. The default is to receive mail for the machine itself. If your machine is a mail server for its entire domain, you must list $mydomain as well.
mydestination = $myhostname localhost.$mydomain
f) Clients to relay mail for: By default, Postfix will relay mail for clients in authorized networks and in authorized domains.
Authorized client networks are defined by the mynetworks parameter. The default is to authorize all clients in the IP subnetworks that the local machine is attached to.
Authorized client domains are by defined by the relay_domains configuration parameter. The default setting trusts clients with hostnames below the domain(s) listed in mydestination.
g) Trouble to report to the postmaster: The Postfix system itself also reports problems to the postmaster alias. You may not be interested in all types of trouble reports, so this reporting mechanism is configurable. The default is to report only serious problems (resource, software) to postmaster
notify_classes = resource, software
h) After I make the changes, I must reload postfix (service postfix reload)
7. Example:
From:
[email protected], To:
[email protected] The email will be delivered to
[email protected] But when I give
From:
[email protected], To:
[email protected] The email will not be delivered
When I give
From:
[email protected], To:
[email protected] The email will not be delivered. Full book can be found in http://www.lulu.com/content/347284