basicNETS.co.uk

...family, life, work

  • Increase font size
  • Default font size
  • Decrease font size

HowTo install Exim-4.51 on FreeBSD 5.4

E-mail Print PDF
This article describes how to install Exim (for use with Courier IMAP/POP3 deamon + ClamAV and SpamAssassin) .  For Pop-before-smtp please read ahead to the courier imap article.
  • log in as root
  • Type ‘cd /usr/ports/mail/exim’
  • Type ‘make install clean’
  • Edit mailer.conf
    • Type ‘vi /etc/mail/mailer.conf’
    • Put a ‘#’ character before every line
    • Add the following lines: sendmail        /usr/local/sbin/exim
      send-mail       /usr/local/sbin/exim
      mailq           /usr/local/sbin/exim -bp
      newaliases      /usr/bin/true
      hoststat        /usr/local/sbin/exim
      purgestat       /usr/local/sbin/exim
    • Enable Exim in rc.conf
      • Type ‘vi /etc/rc.conf’
      • Add the followinf lines:
        exim_enable="YES"
        sendmail_enable="NONE"
        sendmail_submit_enable="NO"
    • Configure Exim
      • Type ‘vi /usr/local/etc/exim/configure’
      • Modify the following lines:
        primary_hostname = mail.host.name
        hostlist relay_from_hosts = localhost:192.168.0.0/16
        qualify_domain = domain.name
        rfc1413_query_timeout = 0s
        #require verify = sender
        local_delivery:
          driver = appendfile
          #file = /var/mail/$local_part
          directory = /home/$local_part/Maildir
          maildir_format
          check_string =
          delivery_date_add
          envelope_to_add
          return_path_add
          group = mail
          user = $local_part
          mode = 0660
          no_mode_fail_narrower
      • Type ':wq' to exit
      • Type ‘/usr/local/etc/rc.d/exim.sh start’