Difference between revisions of "Postfix"

From John Freier
Jump to: navigation, search
(Created page with 'Install Postfix yum install postfix Configure Postfix Edit the '''/etc/postfix/main.cf''' and make the following changes. mydomain = example.com myorigin = $mydomain inet_...')
 
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
 
Start the service
 
Start the service
 
  /etc/init.d/postfix start
 
  /etc/init.d/postfix start
 +
 +
Add a port to Postfix to listen on.
 +
Open '''/etc/postfix/master.cf''' and add the following line:
 +
587 inet n - n - - smtpd
 +
 +
 +
Make sure to test and see if relay is denied from an outside connection!

Latest revision as of 12:21, 7 January 2010

Install Postfix

yum install postfix

Configure Postfix Edit the /etc/postfix/main.cf and make the following changes.

mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks_style = host

Start the service

/etc/init.d/postfix start

Add a port to Postfix to listen on. Open /etc/postfix/master.cf and add the following line:

587 inet n - n - - smtpd


Make sure to test and see if relay is denied from an outside connection!