2016-05-23 8 views
-1

私は自分の電子メールをアーカイブするためにローカルのdocker-dovecotマシンを作ろうとしています。私はApple Mailでそれらを照会したいと思います。私は単純なubuntu dockerマシンを持っています(私はMac上にいるので、並行しているVM上にあります)。個人専用のdovecot、1人のユーザーのローカルドッカーの設定がApple Mailのログインに失敗する

# A comma separated list of IPs or hosts where to listen in for connections. 
# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces. 
# If you want to specify non-default ports or anything more complex, 
# edit conf.d/master.conf. 
listen = *,:: 

# Protocols we want to be serving. 
protocols = imap 

# Static passdb. 

# This can be used for situations where Dovecot doesn't need to verify the 
# username or the password, or if there is a single password for all users: 
passdb { 
    driver = static 
    args = password=dovecot 
} 

# Location for users' mailboxes. The default is empty, which means that Dovecot 
# tries to find the mailboxes automatically. This won't work if the user 
# doesn't yet have any mail, so you should explicitly tell Dovecot the full 
# location. 
# 
# If you're using mbox, giving a path to the INBOX file (eg. /var/mail/%u) 
# isn't enough. You'll also need to tell Dovecot where the other mailboxes are 
# kept. This is called the "root mail directory", and it must be the first 
# path given in the mail_location setting. 
# 
# There are a few special variables you can use, eg.: 
# 
# %u - username 
# %n - user part in [email protected], same as %u if there's no domain 
# %d - domain part in [email protected], empty if there's no domain 
# %h - home directory 
# 
# See doc/wiki/Variables.txt for full list. Some examples: 
# 
# mail_location = maildir:~/Maildir 
# mail_location = mbox:~/mail:INBOX=/var/mail/%u 
# mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n 
# 
# <doc/wiki/MailLocation.txt> 
# 
mail_location = maildir:/var/mail/%n 

# System user and group used to access mails. If you use multiple, userdb 
# can override these by returning uid or gid fields. You can use either numbers 
# or names. <doc/wiki/UserIds.txt> 
# mail_uid = CHANGE_THIS_to_your_short_user_name_or_uid 
# mail_gid = admin 

# SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt> 
ssl = no 

# Login user is internally used by login processes. This is the most untrusted 
# user in Dovecot system. It shouldn't have access to anything at all. 
# default_login_user = _dovenull 

# Internal user is used by unprivileged processes. It should be separate from 
# login user, so that login processes can't disturb other processes. 
# default_internal_user = _dovecot 

# Setting limits. 
default_process_limit = 10 
default_client_limit = 50 

と私はApple Mailの

May 23 07:15:58 Mail[87524] <Debug>: <0x7fe16f021cd0:[Non-authenticated]> Wrote: 1.11 ID ("name" "Mac OS X Mail" "version" "9.3 (3124)" "os" "Mac OS X" "os-version" "10.11.5 (15F34)" "vendor" "Apple Inc.") 
May 23 07:15:58 Mail[87524] <Debug>: <0x7fe16f021cd0:[Non-authenticated]> Read: * ID { 
     name = Dovecot; 
    } 
May 23 07:15:58 Mail[87524] <Debug>: <0x7fe16f021cd0:[Non-authenticated]> Read: 1.11 OK 
May 23 07:15:58 Mail[87524] <Debug>: <0x7fe16f021cd0:[Non-authenticated]> Wrote: 3.11 LOGOUT 
May 23 07:16:00 Mail[87524] <Debug>: <0x7fe16aa14590:[Disconnected]> Read: * OK [CAPABILITY (
     IMAP4REV1, 
     "LITERAL+", 
     "SASL-IR", 
     "LOGIN-REFERRALS", 
     ID, 
     ENABLE, 
     IDLE, 
     "AUTH=PLAIN", 
     "AUTH=LOGIN" 
    )] 
May 23 07:16:00 Mail[87524] <Debug>: <0x7fe16aa14590:[Non-authenticated]> Wrote: 1.23 ID ("name" "Mac OS X Mail" "version" "9.3 (3124)" "os" "Mac OS X" "os-version" "10.11.5 (15F34)" "vendor" "Apple Inc.") 
May 23 07:16:00 Mail[87524] <Debug>: <0x7fe16aa14590:[Non-authenticated]> Read: * ID { 
     name = Dovecot; 
    } 
May 23 07:16:00 Mail[87524] <Debug>: <0x7fe16aa14590:[Non-authenticated]> Read: 1.23 OK 
May 23 07:16:00 Mail[87524] <Debug>: <0x7fe16aa14590:[Non-authenticated]> Wrote: 3.23 LOGOUT 

からこれを取得していますし、このdovecotのから(たmail.log):

私はこのlocal.confを持っ

May 23 05:07:22 f8ab3e20742f dovecot: master: Dovecot v2.2.9 starting up (core dumps disabled) 
May 23 05:07:22 f8ab3e20742f dovecot: ssl-params: Generating SSL parameters 
May 23 05:07:29 f8ab3e20742f dovecot: ssl-params: SSL parameters regeneration completed 
May 23 05:07:52 f8ab3e20742f dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=10.211.55.2, lip=172.17.0.2, session=<IJwtbHszbgAK0zcC> 
May 23 05:07:54 f8ab3e20742f dovecot: imap-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=10.211.55.2, lip=172.17.0.2, session=<qsRNbHszdgAK0zcC> 

doveconf -nの出力は(したがって「disable_plaintext_auth = no」がアクティブです):

# 2.2.9: /etc/dovecot/dovecot.conf 
# OS: Linux 4.4.8-boot2docker x86_64 Ubuntu 14.04.4 LTS aufs 
auth_mechanisms = plain login 
default_client_limit = 50 
default_process_limit = 10 
disable_plaintext_auth = no 
listen = *,:: 
mail_location = maildir:/var/mail/%n 
namespace inbox { 
    inbox = yes 
    location = 
    mailbox Drafts { 
    special_use = \Drafts 
    } 
    mailbox Junk { 
    special_use = \Junk 
    } 
    mailbox Sent { 
    special_use = \Sent 
    } 
    mailbox "Sent Messages" { 
    special_use = \Sent 
    } 
    mailbox Trash { 
    special_use = \Trash 
    } 
    prefix = 
} 
passdb { 
    args = password=dovecot 
    driver = static 
} 
protocols = imap 
ssl = no 

このログインが有効になっていない理由を教えてください。

ありがとうございます!

+0

'ログインを中止しました(認証が0秒間に行われない)'はベルを鳴らしませんか? – Kondybas

+0

解像度やヒントに結びついた鐘ではありません。私はApple Mailでユーザ名/パスを設定しました。 –

+1

MUA側からの試行がないため、認証に問題が発生しています。他のクライアントを使用してみてください。pop/imapのログインが機能するようにしてください。 – Kondybas

答えて

0

溶液(local.confから)正しく次の行を修正して設定することです:

# mail_uid = CHANGE_THIS_to_your_short_user_name_or_uid 

は、私がどのようにして見つけましたか?別のクライアントを試すポインタのために@ Kondybasに感謝します。私はThunderbirdを使用し、dovecotのログエントリを作成しました。なぜ、Apple Mailはこれらの行を生成しませんでしたか?それは、mail_uidユーザコンテキストに切り替えることができないということです。私はdovecot Dockerfileを拡張し、ユーザーを適切に切り替えました。その後、ThunderbirdとApple Mailを使って作業しました。

関連する問題