This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
system:install_guides:postfix [2007-03-20T18:46:28+0000] 69.17.44.81 |
system:install_guides:postfix [2007-03-20T18:48:15+0000] (current) 69.17.44.81 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | - sudo yum install postfix spamassassin (spamassassin is optional) | + | 1. sudo yum install postfix spamassassin (spamassassin is optional and not covered here)\\ |
- | - sudo vi /etc/postfix/main.conf | + | 2. sudo vi /etc/postfix/main.conf \\ |
uncomment the following line: | uncomment the following line: | ||
<code> | <code> | ||
default_privs = nobody | default_privs = nobody | ||
- | </code>\\ | + | </code> |
change the following lines | change the following lines | ||
<code> | <code> | ||
myhostname = sf-lug.com | myhostname = sf-lug.com | ||
- | </code>\\ | + | </code> |
<code> | <code> | ||
mydomain = sf-lug.com | mydomain = sf-lug.com | ||
- | </code>\\ | + | </code> |
<code> | <code> | ||
myorigin = $mydomain | myorigin = $mydomain | ||
Line 18: | Line 18: | ||
<code> | <code> | ||
inet_interfaces = all | inet_interfaces = all | ||
- | </code>\\ | + | </code> |
<code> | <code> | ||
mydestination = $myhostname, localhost.$mydomain, localhost | mydestination = $myhostname, localhost.$mydomain, localhost | ||
Line 25: | Line 25: | ||
<code> | <code> | ||
mynetworks_style = host | mynetworks_style = host | ||
- | </code>\\ | + | </code> |
<code> | <code> | ||
mail_spool_directory = /var/spool/mail | mail_spool_directory = /var/spool/mail | ||
+ | </code> | ||
+ | |||
+ | 3. Change the following in /etc/hosts so mail will come from the right domain (sf-lug.com) | ||
+ | <code> | ||
+ | 127.0.0.1 sf-lug.com localhost | ||
</code> | </code> |