
私の顧客の1人がGmailをデフォルトのメールクライアントとして使用したいのですが、新しいCENTOSサーバーのバージョン(6.6、まあ、新しいバージョンではありません)にアップグレードし、"new"
dovecotとpostfixの設定は基本的にかなり強化されました。
ただし、centosサーバーはデフォルトでIMAP SSLをサポートしていますが、gmail(クライアント)はPOP3認証とPLAINTEXT認証のみをサポートしているため、使用できません。
Gmailは言う
POP3 Server denied POP3 access for the given username and password.
Server returned error: "Plaintext authentication disallowed on non-secure
(SSL/TLS) connections."
フォローするこのチュートリアルただし、変更は適用されず、まだGmailのエラーメッセージが表示されています。ポート 110 が開いています。
指示に従って:
/etc/dovecot/conf.d/10-master.conf は次のように設定されます。
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
/etc/postfix.main.cf に次の行を追加しました。
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
追加情報
[root@somemail ~]# postconf -d | grep mail_version
mail_version = 2.6.6
milter_macro_v = $mail_name $mail_version
[root@somemail ~]# dovecot --version
2.0.9
[root@somemail ~]# cat /etc/centos-release
CentOS release 6.6 (Final)
ただし、現在のGmail警告は引き続き表示されます。プレーンテキスト認証を有効にするにはどうすればよいですか?
答え1
鳩の設定ファイルを追加しますdisable_plaintext_auth = no
。/etc/dovecot/dovecot.conf
ファイルの末尾に次の行を開き、追加します。
disable_plaintext_auth = no
最後に、次のコマンドを使用してdovecotサービスを再起動します。
service dovecot restart
答え2
次のコマンドを実行します。
$ doveconf disable_plaintext_auth