Postfix Install

From Secure Computing Wiki
Revision as of 16:00, 5 May 2007 by Ecrist (Talk | contribs) (New page: === 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 ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
      	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
      relayhost =
       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 "" > saslpw
      $ postmap saslpw
  3. FreeBSD Tasks
    1. Add the following in /etc/rc.conf to enable postfix
      ### Postfix
    2. Add the following in /etc/periodic.conf to disable sendmail chores
  4. Send a test mail from the command line and watch /var/log/maillog for errors.