Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Postfix Documentation
Previous Page Home Next Page

Postfix on a null client

A null client is a machine that can only send mail. It receives no mail from the network, and it does not deliver any mail locally. A null client typically uses POP, IMAP or NFS for mailbox access.

In this example we assume that the Internet domain name is "example.com" and that the machine is named "nullclient.example.com". As usual, the examples show only parameters that are not left at their default settings.

1 /etc/postfix/
main.cf:
2     
myorigin = $
mydomain
3     
relayhost = $
mydomain
4     
inet_interfaces = 127.0.0.1
5     
local_transport = 
error:local delivery is disabled
6 
7 /etc/postfix/
master.cf:
8     Comment out the local delivery agent entry

Translation:

  • Line 2: Send mail as "[email protected]" (instead of "[email protected]"), so that nothing ever has a reason to send mail to "[email protected]".

  • Line 3: Forward all mail to the mail server that is responsible for the "example.com" domain. This prevents mail from getting stuck on the null client if it is turned off while some remote destination is unreachable.

  • Line 4: Do not accept mail from the network.

  • Lines 5-8: Disable local mail delivery. All mail goes to the mail server as specified in line 3.

Postfix Documentation
Previous Page Home Next Page