Difference between revisions of "Postfix Install"

From Secure Computing Wiki
Jump to: navigation, search
m (Reverted edits by Ikoryle (talk) to last revision by Ecrist)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ucozisit.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://ucozisit.co.cc CLICK HERE]=
 
----
 
</div>
 
 
=== Setup Mail ===
 
=== Setup Mail ===
  
&lt;ol>&lt;li>Postfix Installation
+
<ol><li>Postfix Installation
&lt;ol>&lt;li>Install Postfix from Ports
+
<ol><li>Install Postfix from Ports
 
*Enable Cyrus SASLv1, disable all cyrus sasl options.
 
*Enable Cyrus SASLv1, disable all cyrus sasl options.
&lt;pre> $ cd /usr/ports/mail/postfix
+
<pre> $ cd /usr/ports/mail/postfix
$ make install clean&lt;/pre>
+
$ make install clean</pre>
 
* When prompted to activate postfix in /etc/mail/mailer.conf, enter "y".
 
* When prompted to activate postfix in /etc/mail/mailer.conf, enter "y".
&lt;pre>Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y&lt;/pre>
+
<pre>Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y</pre>
&lt;li> Configure Postfix
+
<li> Configure Postfix
&lt;pre>$ cd /usr/local/etc/postfix
+
<pre>$ cd /usr/local/etc/postfix
 
$ vim main.cf:
 
$ vim main.cf:
 
uncomment "myorigin = $mydomain"
 
uncomment "myorigin = $mydomain"
Line 24: Line 16:
 
uncomment "alias_maps = hash:/etc/aliases"
 
uncomment "alias_maps = hash:/etc/aliases"
 
uncomment "alias_database = hash:/etc/aliases"
 
uncomment "alias_database = hash:/etc/aliases"
$ postfix start&lt;/pre>
+
$ postfix start</pre>
 
* Check /var/log/maillog
 
* Check /var/log/maillog
&lt;/ol>
+
</ol>
&lt;li>Setup SMTP AUTH to ipHouse
+
<li>Setup SMTP AUTH to ipHouse
 
*To keep mail from being routed over private frames downtown.
 
*To keep mail from being routed over private frames downtown.
&lt;ol>&lt;li>Add the following lines to main.cf:  
+
<ol><li>Add the following lines to main.cf:  
  &lt;pre>relayhost = smtp.iphouse.com
+
  <pre>relayhost = smtp.iphouse.com
 
  smtp_sasl_auth_enable = yes
 
  smtp_sasl_auth_enable = yes
 
  smtp_sasl_password_maps = hash:/usr/local/etc/postfix/saslpw
 
  smtp_sasl_password_maps = hash:/usr/local/etc/postfix/saslpw
  smtp_sasl_security_options =&lt;/pre>
+
  smtp_sasl_security_options =</pre>
  
&lt;li>Create password file and map for authentication:
+
<li>Create password file and map for authentication:
&lt;pre>$ echo "smtp.iphouse.com        nobody@claimlynx.com:itaot" > saslpw
+
<pre>$ echo "smtp.iphouse.com        nobody@claimlynx.com:itaot" > saslpw
$ postmap saslpw&lt;/pre>
+
$ postmap saslpw</pre>
&lt;/ol>&lt;li>FreeBSD Tasks
+
</ol><li>FreeBSD Tasks
&lt;ol>&lt;li>Add the following in /etc/rc.conf to enable postfix  
+
<ol><li>Add the following in /etc/rc.conf to enable postfix  
&lt;pre>### Postfix
+
<pre>### Postfix
 
postfix_enable="YES"
 
postfix_enable="YES"
 
sendmail_enable="NO"
 
sendmail_enable="NO"
Line 46: Line 38:
 
sendmail_outbound_enable="NO"
 
sendmail_outbound_enable="NO"
 
sendmail_msp_queue_enable="NO"
 
sendmail_msp_queue_enable="NO"
&lt;/pre>
+
</pre>
&lt;li>Add the following in /etc/periodic.conf to disable sendmail chores  
+
<li>Add the following in /etc/periodic.conf to disable sendmail chores  
&lt;pre>
+
<pre>
 
daily_clean_hoststat_enable="NO"
 
daily_clean_hoststat_enable="NO"
 
daily_status_mail_rejects_enable="NO"
 
daily_status_mail_rejects_enable="NO"
 
daily_status_include_submit_mailq="NO"
 
daily_status_include_submit_mailq="NO"
 
daily_submit_queuerun="NO"
 
daily_submit_queuerun="NO"
&lt;/pre>
+
</pre>
&lt;/ol>
+
</ol>
&lt;li>Send a test mail from the command line and watch /var/log/maillog for errors.
+
<li>Send a test mail from the command line and watch /var/log/maillog for errors.

Latest revision as of 16:45, 26 November 2010

Setup Mail

  1. Postfix Installation
    1. Install Postfix from Ports
      • Enable Cyrus SASLv1, disable all cyrus sasl options.
       $ cd /usr/ports/mail/postfix
      $ make install clean
      • When prompted to activate postfix in /etc/mail/mailer.conf, enter "y".
      Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y
    2. Configure Postfix
      $ cd /usr/local/etc/postfix
      $ vim main.cf:
      	uncomment "myorigin = $mydomain"
      	uncomment "mydestination = $myhostname, localhost.$mydomain, localhost"
      	uncomment "mynetworks_style = host"
      	uncomment "alias_maps = hash:/etc/aliases"
      	uncomment "alias_database = hash:/etc/aliases"
      $ postfix start
      • Check /var/log/maillog
  2. Setup SMTP AUTH to ipHouse
    • To keep mail from being routed over private frames downtown.
    1. Add the following lines to main.cf:
      relayhost = smtp.iphouse.com
       smtp_sasl_auth_enable = yes
       smtp_sasl_password_maps = hash:/usr/local/etc/postfix/saslpw
       smtp_sasl_security_options =
    2. Create password file and map for authentication:
      $ echo "smtp.iphouse.com        nobody@claimlynx.com:itaot" > saslpw
      $ postmap saslpw
  3. FreeBSD Tasks
    1. Add the following in /etc/rc.conf to enable postfix
      ### Postfix
      postfix_enable="YES"
      sendmail_enable="NO"
      sendmail_submit_enable="NO"
      sendmail_outbound_enable="NO"
      sendmail_msp_queue_enable="NO"
      
    2. Add the following in /etc/periodic.conf to disable sendmail chores
      daily_clean_hoststat_enable="NO"
      daily_status_mail_rejects_enable="NO"
      daily_status_include_submit_mailq="NO"
      daily_submit_queuerun="NO"
      
  4. Send a test mail from the command line and watch /var/log/maillog for errors.