質問編集履歴
3
dovecot
test
CHANGED
File without changes
|
test
CHANGED
@@ -298,6 +298,56 @@
|
|
298
298
|
|
299
299
|
#override_fields = home=/home/virtual/%u
|
300
300
|
|
301
|
-
}
|
301
|
+
}
|
302
|
-
|
302
|
+
|
303
|
-
```
|
303
|
+
```
|
304
|
+
|
305
|
+
```10-auth.conf
|
306
|
+
|
307
|
+
disable_plaintext_auth = no
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
auth_mechanisms = cram-md5 plain login
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
#!include auth-deny.conf.ext
|
316
|
+
|
317
|
+
#!include auth-master.conf.ext
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
!include auth-system.conf.ext
|
322
|
+
|
323
|
+
#!include auth-sql.conf.ext
|
324
|
+
|
325
|
+
#!include auth-ldap.conf.ext
|
326
|
+
|
327
|
+
!include auth-passwdfile.conf.ext
|
328
|
+
|
329
|
+
#!include auth-checkpassword.conf.ext
|
330
|
+
|
331
|
+
#!include auth-vpopmail.conf.ext
|
332
|
+
|
333
|
+
!include auth-static.conf.ext
|
334
|
+
|
335
|
+
```
|
336
|
+
|
337
|
+
```10-mail.conf
|
338
|
+
|
339
|
+
mail_location = maildir:/var/spool/virtual/%d/%n/Maildir
|
340
|
+
|
341
|
+
namespace inbox {
|
342
|
+
|
343
|
+
inbox = yes
|
344
|
+
|
345
|
+
first_valid_uid = 1000
|
346
|
+
|
347
|
+
valid_chroot_dirs = /home
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
```
|
2
conf
test
CHANGED
File without changes
|
test
CHANGED
@@ -83,3 +83,221 @@
|
|
83
83
|
```
|
84
84
|
|
85
85
|
Thunderbirdでアクセスすると、サーバとの接続がタイムアウトしましたとでます。
|
86
|
+
|
87
|
+
```main.cf
|
88
|
+
|
89
|
+
#
|
90
|
+
|
91
|
+
newaliases_path = /usr/bin/newaliases.postfix
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
# mailq_path: The full pathname of the Postfix mailq command. This
|
96
|
+
|
97
|
+
# is the Sendmail-compatible mail queue listing command.
|
98
|
+
|
99
|
+
#
|
100
|
+
|
101
|
+
mailq_path = /usr/bin/mailq.postfix
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
# setgid_group: The group for mail submission and queue management
|
106
|
+
|
107
|
+
# commands. This must be a group name with a numerical group ID that
|
108
|
+
|
109
|
+
# is not shared with other accounts, not even with the Postfix account.
|
110
|
+
|
111
|
+
#
|
112
|
+
|
113
|
+
setgid_group = postdrop
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
# html_directory: The location of the Postfix HTML documentation.
|
118
|
+
|
119
|
+
#
|
120
|
+
|
121
|
+
html_directory = no
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
# manpage_directory: The location of the Postfix on-line manual pages.
|
126
|
+
|
127
|
+
#
|
128
|
+
|
129
|
+
manpage_directory = /usr/share/man
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
# sample_directory: The location of the Postfix sample configuration files.
|
134
|
+
|
135
|
+
# This parameter is obsolete as of Postfix 2.1.
|
136
|
+
|
137
|
+
#
|
138
|
+
|
139
|
+
sample_directory = /usr/share/doc/postfix-2.10.1/samples
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
# readme_directory: The location of the Postfix README files.
|
144
|
+
|
145
|
+
#
|
146
|
+
|
147
|
+
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
smtpd_sasl_auth_enable = yes
|
152
|
+
|
153
|
+
smtpd_sasl_local_domain = mail.suzunet.info, suzunet.orz.hm
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
smtpd_recipient_restrictions =
|
158
|
+
|
159
|
+
permit_mynetworks
|
160
|
+
|
161
|
+
permit_sasl_authenticated
|
162
|
+
|
163
|
+
reject_unauth_destination
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
message_size_limit = 10485760
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
local_recipient_maps =
|
172
|
+
|
173
|
+
luser_relay = unknown_user@localhost
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
smtpd_sasl_security_options = noanonymous
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
message_size_limit = 10240000
|
182
|
+
|
183
|
+
mailbox_size_limit = 102400000
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
virtual_transport = virtual
|
188
|
+
|
189
|
+
virtual_mailbox_domains = suzunet.info, suzunet.orz.hm
|
190
|
+
|
191
|
+
virtual_mailbox_maps = hash:/etc/postfix/virtual-mailbox
|
192
|
+
|
193
|
+
virtual_mailbox_base = /var/spool/virtual
|
194
|
+
|
195
|
+
virtual_alias_maps = hash:/etc/postfix/valias_map
|
196
|
+
|
197
|
+
virtual_uid_maps = static:10000
|
198
|
+
|
199
|
+
virtual_gid_maps = static:10000
|
200
|
+
|
201
|
+
```
|
202
|
+
|
203
|
+
```10-auth.conf
|
204
|
+
|
205
|
+
auth_mechanisms = cram-md5 plain login
|
206
|
+
|
207
|
+
#!include auth-deny.conf.ext
|
208
|
+
|
209
|
+
#!include auth-master.conf.ext
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
!include auth-system.conf.ext
|
214
|
+
|
215
|
+
#!include auth-sql.conf.ext
|
216
|
+
|
217
|
+
#!include auth-ldap.conf.ext
|
218
|
+
|
219
|
+
!include auth-passwdfile.conf.ext
|
220
|
+
|
221
|
+
#!include auth-checkpassword.conf.ext
|
222
|
+
|
223
|
+
#!include auth-vpopmail.conf.ext
|
224
|
+
|
225
|
+
!include
|
226
|
+
|
227
|
+
```
|
228
|
+
|
229
|
+
```10-ssl.conf
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
ssl = yes
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
ssl_cert = </etc/letsencrypt/live/mail.suzunet.info/fullchain.pem
|
238
|
+
|
239
|
+
ssl_key = </etc/letsencrypt/live/mail.suzunet.info/privkey.pem
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
local_name suzunet.orz.hm{
|
244
|
+
|
245
|
+
ssl_cert = </etc/letsencrypt/live/suzunet.orz.hm/fullchain.pem
|
246
|
+
|
247
|
+
ssl_key = </etc/letsencrypt/live/suzunet.orz.hm/privkey.pem
|
248
|
+
|
249
|
+
ssl_protocols = !SSLv2 !SSLv3
|
250
|
+
|
251
|
+
}
|
252
|
+
|
253
|
+
# SSL protocols to use
|
254
|
+
|
255
|
+
ssl_protocols = !SSLv2 !SSLv3
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
# SSL ciphers to use
|
260
|
+
|
261
|
+
#ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
|
262
|
+
|
263
|
+
ssl_cipher_list = EECDH+AESGCM+AES128:EECDH+AESGCM+AES256:EDH+AESGCM+AES128:EDH+AESGCM+AES256:EECDH+SHA256+AES128:EECDH+SHA384+AES256:EDH+SHA256+AES128:EDH+SHA256+AES256:EECDH+SHA1+AES128:EECDH+SHA1+AES256:EDH+SHA1+AES128:EDH+SHA1+AES256:EECDH+HIGH:EDH+HIGH:AESGCM+AES128:AESGCM+AES256:SHA256+AES128:SHA256+AES256:SHA1+AES128:SHA1+AES256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!KRB5:!aECDH:!3DES
|
264
|
+
|
265
|
+
```
|
266
|
+
|
267
|
+
```auth-passwdfile.conf.ext
|
268
|
+
|
269
|
+
passdb {
|
270
|
+
|
271
|
+
driver = passwd-file
|
272
|
+
|
273
|
+
#args = scheme=CRYPT username_format=%u /etc/dovecot/users
|
274
|
+
|
275
|
+
args = /etc/dovecot/users
|
276
|
+
|
277
|
+
}
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
userdb {
|
282
|
+
|
283
|
+
driver = passwd-file
|
284
|
+
|
285
|
+
#args = username_format=%u /etc/dovecot/users
|
286
|
+
|
287
|
+
args = /etc/dovecot/users
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
# Default fields that can be overridden by passwd-file
|
292
|
+
|
293
|
+
#default_fields = quota_rule=*:storage=1G
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
# Override fields from passwd-file
|
298
|
+
|
299
|
+
#override_fields = home=/home/virtual/%u
|
300
|
+
|
301
|
+
}:q!
|
302
|
+
|
303
|
+
```
|
1
参考先を記入
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,12 @@
|
|
5
5
|
1)suzunet.info
|
6
6
|
|
7
7
|
2)suzunet.orz.hm
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
https://www40.atwiki.jp/sanosoft/pages/86.html
|
12
|
+
|
13
|
+
ここを参考にしてやって見たのですが、エラー出ていて、うまく行っていません。
|
8
14
|
|
9
15
|
|
10
16
|
|