summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/service/README.rst
blob: 2cca9b3852fa2bf3282e02d50d938ddff74bb867 (plain)
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
testing the service
===================

Run the twisted service::

        twistd -n -y imap-server.tac

And use offlineimap for tests::

        offlineimap -c LEAPofflineimapRC-tests

minimal offlineimap configuration
---------------------------------

[general]
accounts = leap-local

[Account leap-local]
localrepository = LocalLeap
remoterepository = RemoteLeap

[Repository LocalLeap]
type = Maildir
localfolders = ~/LEAPMail/Mail

[Repository RemoteLeap]
type = IMAP
ssl = no
remotehost = localhost
remoteport = 9930
remoteuser = user
remotepass = pass

debugging
---------

Use ngrep to obtain logs of the sequences::

        sudo ngrep -d lo -W byline port 9930