Jump to content

Configuring imapd server port: Difference between revisions

From NikiWiki
Ggamba (talk | contribs)
mNo edit summary
Ggamba (talk | contribs)
Line 4: Line 4:
- Download the imapd server from [http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&button=Search&key=Washington+mail+servers&stype=all&sort=type&dir=%2F Hobbes] and unzip it somewhere;
- Download the imapd server from [http://hobbes.nmsu.edu/cgi-bin/h-search?sh=1&button=Search&key=Washington+mail+servers&stype=all&sort=type&dir=%2F Hobbes] and unzip it somewhere;


- create a directory to store the email files for the user ''username'', for example c:\home\default\mail\username
- 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:
- in \MPTN\ETC create an empty file named '''passwd''' and add to the '''inetd.lst''' file (create it if missing) the line:
Line 12: Line 12:
- configure inetd for autostart at system startup (in \TCPIP\BIN\tcpstart.cmd)
- configure inetd for autostart at system startup (in \TCPIP\BIN\tcpstart.cmd)


- run the command '''pw2add'''; user name will be ''username'' and password will be what you like (it is just to connect to the imapd server); when asked for home directory, specify the previously created one (in the sample: "c:\home\default\mail\username")
- 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; comment the "set mailspool" line
- copy the file imap.cmd to \TCPIP\BIN and edit it to reflect the imapd.exe location;


- run  
- run  


   mailutil create "#driver.mbx/mail\username\inbox"
   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.
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.

Revision as of 14:30, 2 November 2006

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