Postfix

From KevinWiki

(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision not shown)
Line 1: Line 1:
 +
[[Category:Network]]
= Installation =
= Installation =
* If sendmail was installed, stop it first.
* If sendmail was installed, stop it first.
Line 21: Line 22:
<pre>
<pre>
$ service postfix restart  
$ service postfix restart  
 +
</pre>
 +
 +
* Test
 +
<pre>
 +
$ sendmail email@address
 +
FROM: sender@address
 +
SUBJECT: Some subject.
 +
email body.
 +
blah blah.
 +
.
</pre>
</pre>

Latest revision as of 11:59, 1 August 2013

Installation

  • If sendmail was installed, stop it first.
$ /etc/init.d/sendmail stop 
  • Install Postfix.
$ apt-get install postfix 
  • Select Internet Site
  • Enter the domain for the mail server.

If receiving email should be done by Google Apps instead of Postfix, edit /etc/postfix/main.cf file.

mydestination = localhost.localdomain, localhost
fallback_transport = relay
$ service postfix restart 
  • Test
$ sendmail email@address 
FROM: sender@address
SUBJECT: Some subject.
email body.
blah blah.
.
Personal tools