-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
56 lines (33 loc) · 1.65 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Single Mailbox Server
=====================
This is a very simple email server(SMTP/POP3) that accepts all incoming mails and drops them
in a single mailbox. I use this server for testing webapplications that send out mails.
Dependencies
------------
* Python (2.6 and 2.7), assuming python.exe is in your PATH variable
* setuptools (0.6c11)
* Twisted Framework (10.1.0)
Python version 3.1 failed my 5 minute test (setuptools would not install). Older versions of twisted might also
work but i developed this against 10.1.0.
If you are running the 64bit version you are going to need visual studio to install twisted since there are no binary
packages available.
Installation
------------
Make sure you have the dependencies above installed. Then simply run:
python setup.py install
Running The Server
------------------
Windows
-------
On windows I noticed you need to run twistd.py with the python command in front of it. Making use of file associations
does not seem to work.
%PYTHONHOME% is the path you have installed python
python %PYTHONHOME%\Scripts\Twistd.py singlemailboxserver
Linux
-----
Not tested yet, but i guess you can simply run
\path\to\twistd.py singlemailboxserver
On first startup and no options specified it will as for a password that will be used for authenticating when using
POP3. The username is your sytem loginname. You can override this with --pop3username and --pop3password.
By default the server listens on port 2500 for smtp and 1100 for POP3. You can also override these with command line options.
To get a overview of all the options append --help to the commands above.