summaryrefslogtreecommitdiff
path: root/tw/home/files/aerc/accounts.conf
blob: acbc36c823e8e05f3ac8619287fa980320a2b930 (about) (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[Mythic Beasts]
source            = imaps://timo%40twilken.net@oncilla.mythic-beasts.com
outgoing          = smtps+plain://timo%40twilken.net@smtp-auth.mythic-beasts.com
source-cred-cmd   = pass www/mythic-beasts/email/timo | head -1
outgoing-cred-cmd = pass www/mythic-beasts/email/timo | head -1
default           = INBOX
from              = Timo Wilken <timo@twilken.net>
copy-to           = Sent
postpone          = Drafts
cache-headers     = true
pgp-auto-sign     = true
pgp-key-id        = 53EC3C06856883DD92355BC22FC78504681F69B0
pgp-opportunistic-encrypt = true

[CERN]
# https://man.sr.ht/~rjarry/aerc/providers/microsoft.md#office365-with-xoauth2
source            = imaps+xoauth2://timo.wilken%40cern.ch@outlook.office365.com?client_id=9e5f94bc-e8a4-4e73-b8be-63364c29d753&token_endpoint=https://login.microsoftonline.com/common/oauth2/v2.0/token&scope=https://outlook.office.com/SMTP.Send https://outlook.office.com/IMAP.AccessAsUser.All offline_access
outgoing          = smtp+xoauth2://timo.wilken%40cern.ch@smtp.office365.com:587?client_id=9e5f94bc-e8a4-4e73-b8be-63364c29d753&token_endpoint=https://login.microsoftonline.com/common/oauth2/v2.0/token&scope=https://outlook.office.com/SMTP.Send https://outlook.office.com/IMAP.AccessAsUser.All offline_access
smtp-starttls     = yes
# To authorize for the first time (to get refresh token):
# mutt_oauth2.py ~/.local/share/aerc/cern.tokens --authorize --authflow authcode --provider microsoft \
#    --email timo.wilken@cern.ch --client-id 9e5f94bc-e8a4-4e73-b8be-63364c29d753 --client-secret '' \
#    --encryption-pipe 'gpg --encrypt --recipient timo@twilken.net'
# Confirm empty client secret. When done, copy-paste ?code= value from final URL to the command-line.
# Then, to store the refresh token:
# gpg --decrypt ~/.local/share/aerc/cern.tokens | jq -r .refresh_token | pass insert -e -f cern/exol/refresh-token
source-cred-cmd   = pass cern/exol/refresh-token
outgoing-cred-cmd = pass cern/exol/refresh-token
default           = INBOX
from              = Timo Wilken <timo.wilken@cern.ch>
aliases           = twilken@cern.ch
copy-to           = Sent Items
postpone          = Drafts
cache-headers     = true
pgp-auto-sign     = true
pgp-key-id        = C2249BBE5E8761C943A0CFA1B7B3914BF63ACD7C
# Don't auto-encrypt mail, even if we have the keys of all recipients.
pgp-opportunistic-encrypt = false

[Gmail]
source            = imaps://timo.21.wilken%40gmail.com@imap.gmail.com
outgoing          = smtps+login://timo.21.wilken%40gmail.com@smtp.gmail.com
source-cred-cmd   = pass www/google/app-passwords/mutt | head -1
outgoing-cred-cmd = pass www/google/app-passwords/mutt | head -1
default           = INBOX
from              = Timo Wilken <timo.21.wilken@gmail.com>
copy-to           = [Gmail]/Sent Mail
postpone          = [Gmail]/Drafts
cache-headers     = true
pgp-auto-sign     = true
pgp-key-id        = 53EC3C06856883DD92355BC22FC78504681F69B0
pgp-opportunistic-encrypt = true

[Cantab]
source            = imaps+xoauth2://tw466%40cantab.ac.uk@outlook.office365.com?client_id=9e5f94bc-e8a4-4e73-b8be-63364c29d753&token_endpoint=https://login.microsoftonline.com/common/oauth2/v2.0/token&scope=https://outlook.office.com/SMTP.Send https://outlook.office.com/IMAP.AccessAsUser.All offline_access
outgoing          = smtp+xoauth2://tw466%40cantab.ac.uk@smtp-mail.outlook.com:587?client_id=9e5f94bc-e8a4-4e73-b8be-63364c29d753&token_endpoint=https://login.microsoftonline.com/common/oauth2/v2.0/token&scope=https://outlook.office.com/SMTP.Send https://outlook.office.com/IMAP.AccessAsUser.All offline_access
smtp-starttls     = yes
source-cred-cmd   = pass cambridge/exol-refresh-token
outgoing-cred-cmd = pass cambridge/exol-refresh-token
default           = INBOX
from              = Timo Wilken <tw466@cantab.ac.uk>
copy-to           = Sent Items
postpone          = Drafts
cache-headers     = true
pgp-auto-sign     = true
pgp-key-id        = 53EC3C06856883DD92355BC22FC78504681F69B0
pgp-opportunistic-encrypt = true

[Outlook]
source            = imaps+xoauth2://timo_wilken%40live.co.uk@outlook.office365.com?client_id=9e5f94bc-e8a4-4e73-b8be-63364c29d753&token_endpoint=https://login.microsoftonline.com/common/oauth2/v2.0/token&scope=https://outlook.office.com/SMTP.Send https://outlook.office.com/IMAP.AccessAsUser.All offline_access
outgoing          = smtp+xoauth2://timo_wilken%40live.co.uk@smtp-mail.outlook.com:587?client_id=9e5f94bc-e8a4-4e73-b8be-63364c29d753&token_endpoint=https://login.microsoftonline.com/common/oauth2/v2.0/token&scope=https://outlook.office.com/SMTP.Send https://outlook.office.com/IMAP.AccessAsUser.All offline_access
smtp-starttls     = yes
source-cred-cmd   = pass www/microsoft/exol-refresh-token
outgoing-cred-cmd = pass www/microsoft/exol-refresh-token
default           = INBOX
from              = Timo Wilken <timo_wilken@live.co.uk>
copy-to           = Sent
postpone          = Drafts
cache-headers     = true
pgp-auto-sign     = true
pgp-key-id        = 53EC3C06856883DD92355BC22FC78504681F69B0
pgp-opportunistic-encrypt = true