Postfix Install

From Secure Computing Wiki
Revision as of 22:10, 23 November 2010 by Ikoryle (Talk | contribs)

Jump to: navigation, search


Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly


CLICK HERE


Setup Mail

<ol><li>Postfix Installation <ol><li>Install Postfix from Ports

  • Enable Cyrus SASLv1, disable all cyrus sasl options.

<pre> $ cd /usr/ports/mail/postfix $ make install clean</pre>

  • When prompted to activate postfix in /etc/mail/mailer.conf, enter "y".

<pre>Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y</pre> <li> Configure Postfix <pre>$ 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</pre>

  • Check /var/log/maillog

</ol> <li>Setup SMTP AUTH to ipHouse

  • To keep mail from being routed over private frames downtown.

<ol><li>Add the following lines to main.cf:

<pre>relayhost = smtp.iphouse.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/usr/local/etc/postfix/saslpw
smtp_sasl_security_options =</pre>

<li>Create password file and map for authentication: <pre>$ echo "smtp.iphouse.com nobody@claimlynx.com:itaot" > saslpw $ postmap saslpw</pre> </ol><li>FreeBSD Tasks <ol><li>Add the following in /etc/rc.conf to enable postfix <pre>### Postfix postfix_enable="YES" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" </pre> <li>Add the following in /etc/periodic.conf to disable sendmail chores <pre> daily_clean_hoststat_enable="NO" daily_status_mail_rejects_enable="NO" daily_status_include_submit_mailq="NO" daily_submit_queuerun="NO" </pre> </ol> <li>Send a test mail from the command line and watch /var/log/maillog for errors.