diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-07-07 18:19:37 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-07-07 18:19:37 +0200 |
commit | aa6580e0c3fe577283ea1e9d17c092ab8f8a64b0 (patch) | |
tree | 9b96810a316069e5c19bae21c83d50869f6c1107 /tests/send-to-imap.py | |
parent | e10d3987e2d84ef8499bb41910e129db2a9c2b9a (diff) | |
download | aerogramme-aa6580e0c3fe577283ea1e9d17c092ab8f8a64b0.tar.gz aerogramme-aa6580e0c3fe577283ea1e9d17c092ab8f8a64b0.zip |
Add Cyrus + Identify Dovecot traces in filename
Diffstat (limited to 'tests/send-to-imap.py')
-rw-r--r-- | tests/send-to-imap.py | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/tests/send-to-imap.py b/tests/send-to-imap.py index 42faee0..46a97a6 100644 --- a/tests/send-to-imap.py +++ b/tests/send-to-imap.py @@ -29,6 +29,32 @@ import sys # maddy -config /data/maddy.conf run --debug # # docker run --rm -it -v maddydata:/data-p 143:143 -p 993:993 foxcpp/maddy +# +# -- Cyrus -- +# docker run --rm -it --name cyrus -v /dev/log:/dev/log -p 143:143 -p 993:993 debian:buster +# apt update; apt install -y cyrus-imapd cyrus-pop3d cyrus-nntpd cyrus-caldav cyrus-admin sasl2-bin vim +# # ( 1. No Configuration / 8. Europe / 37. Paris / yes) +# vim /etc/imapd.conf +# # (uncomment 'admins: cyrus') +# touch /var/lib/cyrus/tls_sessions.db +# chown cyrus:mail /var/lib/cyrus/tls_sessions.db +# mkdir /run/cyrus +# chown -R cyrus:mail /run/cyrus +# cyrmaster -D -l 32 -C /etc/imapd.conf -M /etc/cyrus.conf +# docker exec -ti --name cyrus /bin/bash +# saslpasswd2 cyrus +# # (put "cyrus" as password) +# saslpasswd2 test +# # (put "pass" as password) +# cyradm -u cyrus localhost +# cm kzUXL7HyS5OjLcU8 +# setaclmailbox kzUXL7HyS5OjLcU8 test ktelrswip +# +# -> note, must be run between 2 send-imap commands in cyradm +# localhost> setaclmailbox kzUXL7HyS5OjLcU8 cyrus x +# localhost> dm kzUXL7HyS5OjLcU8 +# localhost> cm kzUXL7HyS5OjLcU8 +# localhost> setaclmailbox kzUXL7HyS5OjLcU8 test ktelrswip def rebuild_body_res(b): bb = b'' @@ -49,7 +75,7 @@ parameters = { "con": IMAP4_SSL, "user": "test", "pw": "pass", - "ext": "", + "ext": ".dovecot", }, "maddy": { "con": IMAP4_SSL, @@ -57,6 +83,12 @@ parameters = { "pw": "pass", "ext": ".maddy", }, + "cyrus": { + "con": IMAP4, + "user": "test", + "pw": "pass", + "ext": ".cyrus", + } } conf = parameters[target] |