Difference between revisions of "Postfix"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
Line 9: Line 9:
 
; master.cf : Specifies how Postfix interacts with various processes to accomplish mail delivery.  
 
; master.cf : Specifies how Postfix interacts with various processes to accomplish mail delivery.  
 
; transport : Maps email addresses to relay hosts.
 
; transport : Maps email addresses to relay hosts.
 +
 +
=== Basic Postfix Configuration ===
 +
 +
By default, Postfix does not accept network connections from any host other than the local host. Perform the following steps as root to enable mail delivery for other hosts on the network:
 +
 +
# Edit the /etc/postfix/main.cf file with a text editor, such as vi.
 +
# Uncomment the mydomain line by removing the hash mark (#), and replace domain.tld with the domain the mail server is servicing, such as example.com.
 +
# Uncomment the myorigin = $mydomain line.
 +
# Uncomment the myhostname line, and replace host.domain.tld with the hostname for the machine.
 +
# Uncomment the mydestination = $myhostname, localhost.$mydomain line.
 +
# Uncomment the mynetworks line, and replace 168.100.189.0/28 with a valid network setting for hosts that can connect to the server.
 +
# Uncomment the inet_interfaces = all line.
 +
# Restart the postfix service.
 +
 +
Once these steps are complete, the host accepts outside emails for delivery.
  
 
==[http://www.postfix.org/OVERVIEW.html Postfix Architecture Overview]==
 
==[http://www.postfix.org/OVERVIEW.html Postfix Architecture Overview]==

Revision as of 14:13, 17 August 2007

Postfix is a mail transfer agent that routes and delivers e-mail.

Configuration

Postfix stores its configuration files in the /etc/postfix/ directory. The following is a list of the more commonly used files:

access
Used for access control, this file specifies which hosts are allowed to connect to Postfix.
aliases
A configurable list required by the mail protocol.
main.cf
The global Postfix configuration file. The majority of configuration options are specified in this file.
master.cf
Specifies how Postfix interacts with various processes to accomplish mail delivery.
transport
Maps email addresses to relay hosts.

Basic Postfix Configuration

By default, Postfix does not accept network connections from any host other than the local host. Perform the following steps as root to enable mail delivery for other hosts on the network:

  1. Edit the /etc/postfix/main.cf file with a text editor, such as vi.
  2. Uncomment the mydomain line by removing the hash mark (#), and replace domain.tld with the domain the mail server is servicing, such as example.com.
  3. Uncomment the myorigin = $mydomain line.
  4. Uncomment the myhostname line, and replace host.domain.tld with the hostname for the machine.
  5. Uncomment the mydestination = $myhostname, localhost.$mydomain line.
  6. Uncomment the mynetworks line, and replace 168.100.189.0/28 with a valid network setting for hosts that can connect to the server.
  7. Uncomment the inet_interfaces = all line.
  8. Restart the postfix service.

Once these steps are complete, the host accepts outside emails for delivery.

Postfix Architecture Overview

How Postfix recieves mail

Postfix-get.png

We use smtpd. Yes, our "sendmail" isn't the real thing, but rather a Postfix component.

How Postfix delivers mail

Postfix-send.png

External Information