Jump to content

Configuring imapd server port

From NikiWiki

How to install and configure the port of Imapd server for Os/2

- Download the imapd server from Hobbes and unzip it somewhere;

- create a directory to store the INBOX files for all the users, for example c:\var\mail, and one directory for each user, for example c:\home\default\mail\username;

- in \MPTN\ETC create an empty file named passwd and add to the inetd.lst file (create it if missing) the line:

 imap tcp imapd

- configure inetd for autostart at system startup (in \TCPIP\BIN\tcpstart.cmd)

- run the command pw2add for each user; user name will be username as in c:\home\default\mail\username and password will be what you like (it is just to connect to the local imapd server); home directory will be :\home\default\mail\username;

- copy the file imap.cmd to \TCPIP\BIN and edit it to reflect the imapd.exe location;

- run

 mailutil create "#driver.mbx/mail\username"

and start inetd (*). Server is up and running! If you connect with Thunderbird, you must turn off the use of the "IDLE" command. You can turn off idle by de-selecting "Use IDLE command" in Thunderbird's advanced settings box of your e-mail account's server settings.


(*) Note: don't run inetd from the same directory where imapd.exe is! If you look at the window where inetd is running, for any imapd command received you should see only a single line like:

 spawnning imapd socket=xxxx