Debian Codegraph @

debian/README.Debian.in

raw
1 @PACKAGE@ for Debian
2 --------------------
3
4 mail-user-agent
5 ===============
6
7 The following configuration enables you to run Mew as a default mail
8 user agent of emacsen.
9
10 (if (boundp 'mail-user-agent)
11 (setq mail-user-agent 'mew-user-agent))
12 (if (boundp 'read-mail-command)
13 (setq read-mail-command 'mew))
14
15 Local mailbox
16 =============
17
18 If you want to use a local mailbox instead of POP, you need the
19 following configuration.
20
21 (setq mew-mailbox-type 'mbox) ;; 'pop is used by default
22 (setq mew-mbox-command "incm") ;; incm gets mails from maildir or mbox
23 (setq mew-mbox-command-arg "-u -a") ;; See also incm manual
24
25 SSL/TLS
26 =======
27
28 To use SSL/TLS, install the ca-certificates package and the stunnel4
29 package (or the stunnel package).
30
31 By default, in the startup file, the mew-prog-ssl variable is set to
32 "mewstunnel" (wrapper script for using stunnel4 or stunnel), the
33 mew-ssl-cert-directory variable is set to "/etc/ssl/certs" (directory
34 to store CA certificates in), and the mew-ssl-verify-level variable
35 is set to 2 (verify server's certificate). See also "Mew manual".
36
37 (setq mew-prog-ssl (or (executable-find "mewstunnel") "stunnel"))
38 (setq mew-prog-ssl-arg nil)
39 ;;(setq mew-prog-ssl-arg "ciphers=DEFAULT:@SECLEVEL=2\nsslVersionMin=TLSv1.2\n")
40 ;;(setq mew-prog-ssl-arg "ciphers=DEFAULT:@SECLEVEL=1\nsslVersionMin=TLSv1.2\nsslVersionMax=TLSv1.2\n")
41 ;;(require 'gnutls) ;; gnutls-trustfiles
42 ;;(dolist (file (gnutls-trustfiles)) (setq mew-prog-ssl-arg (concat mew-prog-ssl-arg "CAfile=" file "\n")))
43 (setq mew-ssl-cert-directory "/etc/ssl/certs")
44 (setq mew-ssl-verify-level 2)
45
46 (setq mew-auto-get nil)
47 (setq mew-use-cached-passwd t)
48 (setq mew-passwd-timer-unit 60)
49 (setq mew-passwd-lifetime 24)
50 (setq mew-name "FULL NAME")
51 (setq mew-user "USERNAME")
52 (setq mew-mail-domain "example.com")
53 (setq mew-dcc 'me)
54 (setq mew-proto "+")
55 ;;(setq mew-proto "%")
56 (setq mew-smtp-server "smtp.example.com")
57 (setq mew-smtp-user "[email protected]")
58 (setq mew-smtp-ssl t)
59 ;;(setq mew-smtp-port "smtp") ;; 25
60 ;;(setq mew-smtp-port 2525)
61 (setq mew-smtp-port "submission") ;; 587
62 (setq mew-smtp-ssl-port mew-smtp-port) ;; STARTTLS
63 ;;(setq mew-smtp-ssl-port 465)
64 (setq mew-pop-server "pop.example.com")
65 (setq mew-pop-user "[email protected]")
66 (setq mew-pop-auth 'pass)
67 (setq mew-pop-ssl t)
68 (setq mew-pop-size 0)
69 (setq mew-imap-server "imap.example.com")
70 (setq mew-imap-user "[email protected]")
71 (setq mew-imap-ssl t)
72 (setq mew-imap-size 0)
73 (setq mew-imap-trash-folder "%Trash")
74 (setq mew-imap-spam-folder "%Spam")
75
76 GnuTLS
77 ======
78
79 Experimental support for Emacs's built-in GnuTLS can be enabled by
80 the following configuration.
81
82 (setq mew-ssl-default 'native) ;; GnuTLS
83 ;;(setq mew-ssl-default 'tunnel) ;; stunnel
84
85 cf. https://groups.google.com/g/mew-ja/c/sSfEPKD_CSM
86 https://github.com/hrs-allbsd/Mew
87
88 Emacs network security is handled at a higher level via
89 open-network-stream and the Network Security Manager (NSM).
90 cf. gnutls.el and nsm.el
91
92 (setq network-security-level 'medium) ;; For the Network Security Manager (NSM)
93 ;;(setq network-security-level 'high)
94 (setq gnutls-verify-error nil) ;; The checks are performed by NSM
95 ;;(setq gnutls-verify-error '(("\\.[0-9]+$") (".*" t)))
96 (setq gnutls-min-prime-bits nil) ;; Use the default GnuTLS value
97 ;;(setq gnutls-min-prime-bits 2048)
98 (setq gnutls-algorithm-priority nil)
99 ;;(setq gnutls-algorithm-priority "SECURE128:-VERS-SSL3.0:-VERS-TLS1.0:-VERS-TLS1.1")
100 ;;(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
101 (setq gnutls-log-level 0)
102 ;;(setq gnutls-log-level 2) ;; For debugging, look in the *Messages* buffer
103
104 See also the following variables which override the gnutls-* variables.
105
106 (setq mew-ssl-verify-error nil)
107 (setq mew-ssl-min-prime-bits 2048)
108
109 XOAUTH2
110 =======
111
112 Experimental support for IMAP/SMTP/POP with XOAUTH2 requires
113 oauth2.el from ELPA and can be enabled by the following configuration.
114
115 ;; Set to your own OAuth cliend-id and client-secret
116 (setq mew-auth-oauth-client-id "xxxxxxxxxapps.googleusercontent.com"
117 mew-auth-oauth-client-secret "xxxxxxxxxxxxxxxxxxxxxxxxxx"
118 plstore-cache-passphrase-for-symmetric-encryption t
119 epg-pinentry-mode 'loopback)
120
121 (setq mew-config-alist
122 '(("default"
123 ;; ...
124 (smtp-auth-list ("XOAUTH2"))
125 (pop-auth-list ("XOAUTH2"))
126 (imap-auth-list ("XOAUTH2")))
127 ;; ...
128 ))
129
130 See also the variables mew-auth-oauth2-auth-url, mew-auth-oauth2-token-url,
131 mew-auth-oauth2-resource-url, and mew-auth-oauth2-redirect-url. The
132 default values are for Gmail.
133
134 cf. https://groups.google.com/g/mew-ja/c/Hn9L27ll-eY
135 https://github.com/yoshinari-nomura/Mew/tree/mew-support-xoauth2
136
137 contrib
138 =======
139
140 contrib/*.el files are installed in the site-lisp directory.
141
142 -- Tatsuya Kinoshita <[email protected]>, Sat, 14 Jan 2023 20:07:27 +0900