大网数据广告活动
服务器运维问答

Disable passwords in mail.log

· 52CE 我爱测

I'm running a postfix/dovecot/mysql mailserver. In my /var/log/mail.log I can see my plain text password showing up: dovecot: auth-worker(25749): pam([email omitted],1.2.3.4,<FgaHxoXXdgCvy/>): pam_authenticate() failed: Authentic…

问题原文

原帖链接 · kzpm · CC BY-SA 3.0

I'm running a postfix/dovecot/mysql mailserver.

In my /var/log/mail.log I can see my plain text password showing up:

dovecot: auth-worker(25749): pam([email omitted],1.2.3.4,<FgaHxoXXdgCvy/>): pam_authenticate() failed: Authentication failure (password mismatch?) (given password:myPlaiNTextPassword)

Maybe it is not a big deal, but I don't feel comfortable with it.

How can I disable plaintext password entries showing up in /var/log/mail.log?

dovecot -n:

# 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.16 (fed8554)
# OS: Linux 4.9.0-4-amd64 x86_64 Debian 9.3 ext4
auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = yes
imap_id_send = name
mail_debug = yes
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_privileged_group = mail
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 {
  driver = pam
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
protocols = imap pop3 lmtp
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  unix_listener auth-userdb {
    mode = 0600
    user = vmail
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
ssl = required
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key =  # hidden, use -P to show it
userdb {
  driver = passwd
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
userdb {
  args = uid=vmail gid=vmail home=/var/vmail/%u
  driver = static
}

已采纳解答

原帖链接 · Miloš Đakonović · CC BY-SA 3.0

I would toggle the values of:

auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
auth_verbose_passwords = yes

Try with no, of course.

(Also, check password scheme. Right now it may be plain text. Try to use any kind of password hashing instead.)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-12-30)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。