All pastes #196336 Raw Edit

w0ls0n

public text v1 · immutable
·published 2006-10-10 14:19 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

Now to make the pop3dssl cert

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

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

cp pop3d.cnf pop3d
cp pop3d-ssl.dist pop3d-ssl

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

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/