Answer the question
In order to leave comments, you need to log in
Why is dovecot not letting users through?
When connecting to the server via telnet, I connect and see:
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] DraTooTi)0)!!.
LOGIN [email protected] test123
* BAD Error in IMAP command received by server.
:~ # dovecot -n
# 2.2.28 (bed8434): /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 10.3-RELEASE-p11 amd64
auth_default_realm = dataharbour.tk
auth_mechanisms = plain login
auth_realms = dataharbour.tk
disable_plaintext_auth = no
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
login_greeting = DraTooTi)0)!!.
mail_gid = 1000
mail_location = maildir:/var/vmail/%d/%n
mail_plugins = quota
mail_uid = 1000
namespace inbox {
inbox = yes
location =
prefix =
}
passdb {
args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
autocreate = Trash
autocreate2 = sent-mail
autocreate3 = drafts
autosubscribe = Trash
autosubscribe2 = sent-mail
autosubscribe3 = drafts
quota = maildir:User quota
quota_rule = *:storage=1G
quota_rule2 = Trash:storage=+100M
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
}
protocols = imap pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-userdb {
group = vmail
mode = 0666
user = vmail
}
user = vmail
}
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
user = vmail
}
user = dovecot
}
ssl_cert = </etc/postfix/certs/cert.pem
ssl_key = # hidden, use -P to show it
userdb {
args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol lda {
mail_plugins = quota autocreate
}
protocol imap {
mail_plugins = quota autocreate quota imap_quota
}
Answer the question
In order to leave comments, you need to log in
I solved the problem, there were no write permissions for the vmail user in the /var/vmail directory
it looks like login is allowed, tryA LOGIN [email protected] test123
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question