Full Installation Guide - Basic Qmail POP Server

From Qmail-LDAP Wiki

Jump to: navigation, search

Up

Contents

Create service

Create directory service with:

/var/qmail/bin/qmail-pop3d-conf /var/qmail/bin/auth_pop qmaill /var/qmail/service/pop3d

Define access

Add to /var/qmail/service/pop3d/tcp file the list of allowed IP's to connect. If any IP can connect to POP, create tcp with:

:allow

And if you want to restrict access for a set of IP addresses, put something like:

172.16.1.24:allow 192.168.:allow


You can also add IP's with add-client command:

./add-client 172.16.1.24 192.168.


Now make the binary file in order to qmail(tcpserver) recognize the change:

cd /var/qmail/service/pop3d
make

Enable service

Activate the service:

ln -s /var/qmail/service/pop3d /service

LOG

Activate extended log level:

echo "3"> /service/pop3d/env/POP3_LOGLEVEL

Test

Check status:

svstat /service/pop3d /service/pop3d/log

If all is OK youll get something like:

/service/pop3d: up (pid 6345) 6 seconds
/service/pop3d/log: up (pid 6347) 6 seconds

Check the logs:

tail -f /service/pop3d/log/main/current 


Test access with telnet:

telnet 127.0.0.1 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <pid.timestamp@server.domain.com>
user your_login
+OK 
pass your_password
+OK 
quit
+OK 
Connection closed by foreign host.
%
Personal tools