All pastes #196587 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-10-10 18:40 UTC
rendered paste body
# cd /var/qmail/supervise
# mkdir -m 1755 courier-pop3dssl
# cd courier-pop3dssl
# fetch http://freebsdrocks.net/files/courier-pop3dssl-run 
# mv courier-pop3dssl-run run
# chmod 755 run
# mkdir -m 755 log
# cd log
# fetch http://freebsdrocks.net/files/service-any-log-run
# mv service-any-log-run run
# chmod 755 run



And now to make a pop3d and a pop3d-ssl conf file and also change a few settings in the pop3d-ssl file

cd /usr/local/etc/courier-imap/

cp pop3d.cnf.dist pop3d.cnf
vi pop3d.cnf   # make changes to reflect your server information. Make sure CN=mail.yourserver.com

cp pop3d-ssl.dist pop3d-ssl     # the pop3d-ssl config file

Now to make the pop3dssl cert...

/usr/local/share/courier-imap/mkpop3dcert



Change the SSLADDRESS to the IP of the server you're running it on.

if you use SSLADDRESS=0, the resulting server will try to listen on that port number (usually 143 or 993) for EVERY IP ADDRESS ON THE SYSTEM. If any other program (such as another instance of the service) is listening on a specific IP with the same port, the SSLADDRESS=0 server will refuse to start... and if the SSLADDRESS=0 service is already running, the other one (with the specific IP) will refuse to start.

Change the POP3DSSLSTART=NO to 

POP3DSSLSTART=YES

Now below that section we need to add

MAXDAEMONS=40

Now to start the daemon

ln -s /var/qmail/supervise/courier-pop3dssl /service/