To install exim

According to POST-INSTALL-NOTES:

1 Clear the sendmail queue and stop the sendmail daemon.

As this is a new machine, I just set sendmail_enable to ‘NONE’ and reboot the box

2 Adjust mailer.conf(5) as appropriate.

Here is the new one, with old sendmail settings comment out

# $FreeBSD: src/etc/mail/mailer.conf,v 1.3 2002/04/05 04:25:12 gshapiro Exp $
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
# sendmail      /usr/libexec/sendmail/sendmail
# send-mail     /usr/libexec/sendmail/sendmail
# mailq         /usr/libexec/sendmail/sendmail
# newaliases    /usr/libexec/sendmail/sendmail
# hoststat      /usr/libexec/sendmail/sendmail
# purgestat     /usr/libexec/sendmail/sendmail

# Now I use exim
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

3 Set the ’sendmail_enable’ rc.conf(5) variable to ‘NONE’.

Already done.

4 Set the ‘daily_status_include_submit_mailq’ and ‘daily_clean_hoststat_enable’ periodic.conf(5) variables to ‘NO’.

For a new box, I need to create /etc/periodic.conf and put those in.

  • Set the ‘exim_enable’ rc.conf(5) variable to ‘YES’.
  • Start exim with ‘/usr/local/etc/rc.d/exim.sh start’.

For basic setup, check primary_hostname, local_domains, relay_from_hosts, and smtp_accept_queue_per_connection in configure]

Tags: , ,

Post a Comment

You could use <code type="name"> to get your code colorized

Your email is never published nor shared. Required fields are marked *

Close
E-mail It