質問編集履歴
3
dovecot
title
CHANGED
File without changes
|
body
CHANGED
@@ -148,5 +148,30 @@
|
|
148
148
|
|
149
149
|
# Override fields from passwd-file
|
150
150
|
#override_fields = home=/home/virtual/%u
|
151
|
+
}
|
151
|
-
|
152
|
+
```
|
153
|
+
```10-auth.conf
|
154
|
+
disable_plaintext_auth = no
|
155
|
+
|
156
|
+
auth_mechanisms = cram-md5 plain login
|
157
|
+
|
158
|
+
#!include auth-deny.conf.ext
|
159
|
+
#!include auth-master.conf.ext
|
160
|
+
|
161
|
+
!include auth-system.conf.ext
|
162
|
+
#!include auth-sql.conf.ext
|
163
|
+
#!include auth-ldap.conf.ext
|
164
|
+
!include auth-passwdfile.conf.ext
|
165
|
+
#!include auth-checkpassword.conf.ext
|
166
|
+
#!include auth-vpopmail.conf.ext
|
167
|
+
!include auth-static.conf.ext
|
168
|
+
```
|
169
|
+
```10-mail.conf
|
170
|
+
mail_location = maildir:/var/spool/virtual/%d/%n/Maildir
|
171
|
+
namespace inbox {
|
172
|
+
inbox = yes
|
173
|
+
first_valid_uid = 1000
|
174
|
+
valid_chroot_dirs = /home
|
175
|
+
|
176
|
+
|
152
177
|
```
|
2
conf
title
CHANGED
File without changes
|
body
CHANGED
@@ -40,4 +40,113 @@
|
|
40
40
|
Aug 1 20:03:33 suzunet dovecot: pop3(jsuzuki): Error: user jsuzuki: Initialization failed: Namespace '': stat(/var/spool/virtual//jsuzuki/Maildir) failed: Permission denied (euid=1001(jsuzuki) egid=1001(jsuzuki) missing +x perm: /var/spool/virtual/, dir owned by 10000:10000 mode=0700)
|
41
41
|
Aug 1 20:03:33 suzunet dovecot: pop3(jsuzuki): Error: Invalid user settings. Refer to server log for more information.
|
42
42
|
```
|
43
|
-
Thunderbirdでアクセスすると、サーバとの接続がタイムアウトしましたとでます。
|
43
|
+
Thunderbirdでアクセスすると、サーバとの接続がタイムアウトしましたとでます。
|
44
|
+
```main.cf
|
45
|
+
#
|
46
|
+
newaliases_path = /usr/bin/newaliases.postfix
|
47
|
+
|
48
|
+
# mailq_path: The full pathname of the Postfix mailq command. This
|
49
|
+
# is the Sendmail-compatible mail queue listing command.
|
50
|
+
#
|
51
|
+
mailq_path = /usr/bin/mailq.postfix
|
52
|
+
|
53
|
+
# setgid_group: The group for mail submission and queue management
|
54
|
+
# commands. This must be a group name with a numerical group ID that
|
55
|
+
# is not shared with other accounts, not even with the Postfix account.
|
56
|
+
#
|
57
|
+
setgid_group = postdrop
|
58
|
+
|
59
|
+
# html_directory: The location of the Postfix HTML documentation.
|
60
|
+
#
|
61
|
+
html_directory = no
|
62
|
+
|
63
|
+
# manpage_directory: The location of the Postfix on-line manual pages.
|
64
|
+
#
|
65
|
+
manpage_directory = /usr/share/man
|
66
|
+
|
67
|
+
# sample_directory: The location of the Postfix sample configuration files.
|
68
|
+
# This parameter is obsolete as of Postfix 2.1.
|
69
|
+
#
|
70
|
+
sample_directory = /usr/share/doc/postfix-2.10.1/samples
|
71
|
+
|
72
|
+
# readme_directory: The location of the Postfix README files.
|
73
|
+
#
|
74
|
+
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
|
75
|
+
|
76
|
+
smtpd_sasl_auth_enable = yes
|
77
|
+
smtpd_sasl_local_domain = mail.suzunet.info, suzunet.orz.hm
|
78
|
+
|
79
|
+
smtpd_recipient_restrictions =
|
80
|
+
permit_mynetworks
|
81
|
+
permit_sasl_authenticated
|
82
|
+
reject_unauth_destination
|
83
|
+
|
84
|
+
message_size_limit = 10485760
|
85
|
+
|
86
|
+
local_recipient_maps =
|
87
|
+
luser_relay = unknown_user@localhost
|
88
|
+
|
89
|
+
smtpd_sasl_security_options = noanonymous
|
90
|
+
|
91
|
+
message_size_limit = 10240000
|
92
|
+
mailbox_size_limit = 102400000
|
93
|
+
|
94
|
+
virtual_transport = virtual
|
95
|
+
virtual_mailbox_domains = suzunet.info, suzunet.orz.hm
|
96
|
+
virtual_mailbox_maps = hash:/etc/postfix/virtual-mailbox
|
97
|
+
virtual_mailbox_base = /var/spool/virtual
|
98
|
+
virtual_alias_maps = hash:/etc/postfix/valias_map
|
99
|
+
virtual_uid_maps = static:10000
|
100
|
+
virtual_gid_maps = static:10000
|
101
|
+
```
|
102
|
+
```10-auth.conf
|
103
|
+
auth_mechanisms = cram-md5 plain login
|
104
|
+
#!include auth-deny.conf.ext
|
105
|
+
#!include auth-master.conf.ext
|
106
|
+
|
107
|
+
!include auth-system.conf.ext
|
108
|
+
#!include auth-sql.conf.ext
|
109
|
+
#!include auth-ldap.conf.ext
|
110
|
+
!include auth-passwdfile.conf.ext
|
111
|
+
#!include auth-checkpassword.conf.ext
|
112
|
+
#!include auth-vpopmail.conf.ext
|
113
|
+
!include
|
114
|
+
```
|
115
|
+
```10-ssl.conf
|
116
|
+
|
117
|
+
ssl = yes
|
118
|
+
|
119
|
+
ssl_cert = </etc/letsencrypt/live/mail.suzunet.info/fullchain.pem
|
120
|
+
ssl_key = </etc/letsencrypt/live/mail.suzunet.info/privkey.pem
|
121
|
+
|
122
|
+
local_name suzunet.orz.hm{
|
123
|
+
ssl_cert = </etc/letsencrypt/live/suzunet.orz.hm/fullchain.pem
|
124
|
+
ssl_key = </etc/letsencrypt/live/suzunet.orz.hm/privkey.pem
|
125
|
+
ssl_protocols = !SSLv2 !SSLv3
|
126
|
+
}
|
127
|
+
# SSL protocols to use
|
128
|
+
ssl_protocols = !SSLv2 !SSLv3
|
129
|
+
|
130
|
+
# SSL ciphers to use
|
131
|
+
#ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
|
132
|
+
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
|
133
|
+
```
|
134
|
+
```auth-passwdfile.conf.ext
|
135
|
+
passdb {
|
136
|
+
driver = passwd-file
|
137
|
+
#args = scheme=CRYPT username_format=%u /etc/dovecot/users
|
138
|
+
args = /etc/dovecot/users
|
139
|
+
}
|
140
|
+
|
141
|
+
userdb {
|
142
|
+
driver = passwd-file
|
143
|
+
#args = username_format=%u /etc/dovecot/users
|
144
|
+
args = /etc/dovecot/users
|
145
|
+
|
146
|
+
# Default fields that can be overridden by passwd-file
|
147
|
+
#default_fields = quota_rule=*:storage=1G
|
148
|
+
|
149
|
+
# Override fields from passwd-file
|
150
|
+
#override_fields = home=/home/virtual/%u
|
151
|
+
}:q!
|
152
|
+
```
|
1
参考先を記入
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
1)suzunet.info
|
4
4
|
2)suzunet.orz.hm
|
5
5
|
|
6
|
+
https://www40.atwiki.jp/sanosoft/pages/86.html
|
7
|
+
ここを参考にしてやって見たのですが、エラー出ていて、うまく行っていません。
|
8
|
+
|
6
9
|
```ここに言語を入力
|
7
10
|
Aug 1 19:53:05 suzunet dovecot: pop3-login: Login: user=<jsuzuki>, method=PLAIN, rip=192.168.11.6, lip=192.168.11.250, mpid=32231, TLS, session=<ejDNf11yxQDAqAsG>
|
8
11
|
Aug 1 19:53:05 suzunet dovecot: pop3(jsuzuki): Error: user jsuzuki: Initialization failed: Namespace '': stat(/var/spool/virtual//jsuzuki/Maildir) failed: Permission denied (euid=1001(jsuzuki) egid=1001(jsuzuki) missing +x perm: /var/spool/virtual/, dir owned by 10000:10000 mode=0700)
|