Web Mail


Single IP

Project Links
resume
about me
about server
user land
webmail

Photo Albums
bpfountz
lpfountz
twice DIGITAL

Web Pages
bpfountz
lpfountz

Reviews
3054CB
Netgate Q&A
5354AP1 Aries2

You are visiting...
The DigitalPimp


created by:
 Ben Pfountz
Untitled Document
Setting Up courier-imap

FreeBSD 4.9-STABLE

The Digitalpimp Collection

Ben Pfountz

March 18, 2004

 

Note: courier-imap is an imap interface, which allows reading email while it is left on the server. Works with your standard readers, such as outlook-express and netscape/thunderbird.

 

Note: At the time of this (original) writing, the port for courier-imap was broken, so I have always just installed from the source.

 

Note: this port uses expect, install expect from the ports first for added functionality:

 

Install expect from ports:

cd /usr/ports/lang/expect

make install WITHOUT_X11=yes

make clean

 

 

Install from the source code:

Download the tar.gz, unzip, and cd into the source folder

As a normal user, run the following commands:

./configure \

--without-ipv6 \

--without-module-authuserdb \

--without-module-authcram \

--without-module-authvchkpw \

--without-module-authldap \

--without-module-authmysql \

--without-module-authpgsql \

--without-module-authcustom

gmake

gmake check

su to root, and run the following commands

gmake install

gmake install-configure

 

 

Define Plugable Authentication Module (PAM) for imapd in /etc/pam.conf:

imap auth required pam_unix.so try_first_pass
imap account required pam_unix.so  
imap session required pam_permit.so  
pop3 auth required pam_unix.so try_first_pass
pop3 account required pam_unix.so  
pop3 session required pam_permit.so  

Note: You dont need the pop3 lines if you dont want to run pop3 server.

Note: You should have to remark out some current imap and pop3 lines.

 

Check the startup script:

cp /usr/lib/courier-imap/libexec/imapd.rc /usr/local/etc/rc.d/imapd.sh

cp /usr/lib/courier-imap/libexec/imapd-ssl.rc /usr/local/etc/rc.d/imapd-ssl.sh

 

Check the config files:

cd /usr/lib/courier-imap/etc

move *.dist to backup folder

 

Configuration files and changes to make:

configuration file setting value
/usr/lib/courier-imap/etc/authdaemonrc DAEMONS 2
/usr/lib/courier-imap/etc/imap ADDRESS 192.168.17.100
  MAXDAEMONS 24
  MAXPERIP 6
  IMAP_CHECK_ALL_FOLDERS 1
  IMAP_MOVE_EXPUNGE_TO_TRASH 1
/usr/lib/courier-imap/etc/imap-ssl SSLADDRESS 0
/usr/lib/courier-imap/etc/imap.cnf DEFAULT_BITS 1024
     

 

Note: Use the LAN IP address for your imap server, and 0 for the imap-ssl server.

 

Now you need to generate the ssl certificate:

cd /usr/lib/courier-imap/share

./mkimapdcert

 

NOTE: You may have extra authdaemond daemons running, check /usr/lib/courier-imap/libexec/authlib and 'chmod a-x' the ones you dont need.

Install Notes
a7v bios
os notes
os install
kernel cfg
ports update
vinum
soft updates
quotas
public pmsns
firewall
named
ppp
dhcpd
samba
apache+modssl
mod_php5
proftpd
qmail
blackhole
courier-imap
shared-folders
sqwebmail
skeleton
dependencies
nut
automount
net-snmpd
mrtg
system update
system config
formt floppy
wireless IPsec
bdes cdrw's
MySQL
Cert Auth
CPES AD 1
CPES AD 2
CPES Grp Plcy
AD1 <-> AD2
AD Reference