Dovecot 1:2.3.7.2-1ubuntu3.3 未记录 Ubuntu 20.04.2 LTS 服务器上的身份验证失败

Dovecot 1:2.3.7.2-1ubuntu3.3 未记录 Ubuntu 20.04.2 LTS 服务器上的身份验证失败

我在 Ubuntu 20.04.2 LTS 服务器上运行 Dovecot 1:2.3.7.2-1ubuntu3.3。我的 postfix/dovecot 自托管邮件服务器运行良好!我可以毫无问题地发送和接收邮件。在撰写此问题时,与邮件服务器设置和操作系统本身相关的所有软件包都已更新为最新版本。
我试图做的是借助依赖于 dovecot 日志的 fail2ban 来阻止垃圾邮件登录。Fail2ban 设置不起作用,因为 dovecot 不记录与身份验证相关的任何内容。虽然我看到了其他类型的日志。

输出sudo dovecot -n

# 2.3.7.2 (3c910f64b): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.7.2 ()
# OS: Linux 5.4.0-58-generic x86_64 Ubuntu 20.04.2 LTS 
# Hostname: **redacted**
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = sha1
dict {
  quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
info_log_path = /var/log/dovecot-info.log
log_path = /var/log/dovecot.log
mail_debug = yes
mail_home = /var/vmail/%d/%n/
mail_location = maildir:~/Maildir
mail_plugins = quota
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
namespace inbox {
  inbox = yes
  location = 
  mailbox Archive {
    auto = subscribe
    special_use = \Archive
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Flagged {
    auto = subscribe
    comment = All my flagged messages
    special_use = \Flagged
  }
  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  quota = dict:User quota::proxy::quota
  quota_grace = 10%%
  quota_max_mail_size = 26M
  quota_rule = *:storage=4096M
  quota_rule2 = Trash:storage=+200M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  quota_warning4 = -storage=100%% quota-warning -100 %u
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_before = /var/mail/SpamToJunk.sieve
}
protocols = imap pop3 lmtp sieve imap lmtp sieve pop3
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service dict {
  unix_listener dict {
    group = vmail
    mode = 0660
    user = vmail
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
    user = vmail
  }
  user = dovecot
}
ssl_cert = **redacted**
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_min_protocol = TLSv1.2
ssl_prefer_server_ciphers = yes
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
verbose_ssl = yes
protocol lmtp {
  mail_plugins = quota sieve
}
protocol lda {
  mail_plugins = quota sieve
}
protocol imap {
  mail_plugins = quota imap_quota
}

输出sudo doveadm log find

Debug: /var/log/dovecot-info.log
Info: /var/log/dovecot-info.log
Warning: /var/log/dovecot.log
Error: /var/log/dovecot.log
Fatal: /var/log/dovecot.log

systemctl 的状态报告显示 dovecot 正在运行,没有其他信息。

我尝试了许多与日志相关的配置,但都没有成功(当然,在配置更改后重新启动了 dovecot)。如果我需要提供更多信息,请告诉我。提前致谢。

答案1

不知怎么的,这个问题就解决了。虽然我找不到问题的原因。(不是答案)

相关内容