AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[dovecot](server)

Martin Hope
bertramscharpf
Asked: 2024-09-08 04:29:29 +0800 CST

FreeBSD 进程组成员身份不受尊重

  • 6

这是我所做的:我让 Exim 使用管道传输为某个进程发送电子邮件dovecot-lda。此进程以用户/组身份运行jdoe:jdoe。(我使用自写的包装器检查了两次truss。)消息已正确传递;但我看到一条消息:

dovecot_lda transport output: lda(jdoe): Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied

但可以肯定的是,它jdoe具有组成员身份所需的权限wheel:

# ls -l /var/run/dovecot/stats-writer
srw-rw----  1 dovecot wheel 0  7 Sep. 22:13 /var/run/dovecot/stats-writer
# id jdoe
uid=1001(jdoe) gid=1001(jdoe) groups=1001(jdoe),0(wheel),...

那么这里发生了什么?

当我在 Exim 传输配置中更改进程所有权时,警告消失,但交付失败。当我jdoe在 Dovecot 统计服务中将套接字用户更改为时,其他用户的问题仍然没有解决。

我还可以尝试什么?

Exim 传输配置为:

dovecot_lda:
  driver = pipe
  command = /usr/bin/truss -s 1024 -o /tmp/dovecot.truss -f /usr/local/libexec/dovecot/dovecot-lda -d "${lookup{$local_part}dsearch{/usr/local/misc/mail}}"
  user = $local_part
  group = $local_part
  ...
  temp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78
dovecot
  • 1 个回答
  • 41 Views
Martin Hope
not2savvy
Asked: 2023-12-15 00:07:07 +0800 CST

如何禁用 Dovecot 中的 IMAP 功能?

  • 5

出于测试目的,我想禁用 Dovecot IMAP 服务器中的特定功能。在文档中,我只找到

imap_capability
Default: <empty>
Values: String

覆盖 IMAP CAPABILITY 响应。

如果该值以 + 字符开头,则此处列出的功能将添加到默认字符串的末尾。

例子:

imap_capability = +XFOO XBAR

但是,它没有解释如何禁用单个功能?

dovecot
  • 1 个回答
  • 78 Views
Martin Hope
Nick Lockheart
Asked: 2023-10-22 14:19:20 +0800 CST

当 require_secure_transport 打开时,Dovecot 无法连接到 MariaDB

  • 5

我有一个 Dovecot 服务器,它使用 MariaDB 作为虚拟邮箱。MariaDB 服务器位于同一 LAN 中的另一台计算机上。

我们最近在 MariaDB 机器上启用了 TLS。

Dovecot 在关闭时工作正常,但当我们在 MariaDB 配置文件中打开require_secure_transport时无法连接。require_secure_transport

错误是:

Error: mysql(xxx.xxx.xxx.xxx): Connect failed to database (db_name): Access denied for user 'db_user'@'xxx.xxx.xxx.xxx' (using password: YES)

这看起来像是一个身份验证错误,但在关闭时使用相同的用户和密码连接可以正常工作require_secure_transport,因此 MariaDB 拒绝连接,因为 Dovecot 不使用 TLS。

连接字符串/etc/dovecot/dovecot-sql.conf.ext如下所示:

connect = host=db0.mydomain.com dbname=my_db user=the_user password=secret ssl_ca=/etc/ssl/authority/authority.crt

配置文件说:

ssl_ca、ssl_ca_path - 设置其中之一或两者以启用 SSL

我可以获得错误的更多详细信息吗?例如,如果 TLS 版本不匹配,我可以将其显示在某处吗?

Dovecot 中是否有需要更改的设置?

更新:添加ssl_verify_server_cert=no到连接字符串中/etc/dovecot/dovecot-sql.conf.ext允许连接正常工作。

所以这似乎是证书验证错误。但如果没有更详细的日志记录,我不确定它不喜欢证书的什么。

证书由 CA 在连接字符串中签名。最好知道它正在检查什么通用名称,以及 Dovecot 是否会使用任何 SAN 值作为证书。

dovecot
  • 1 个回答
  • 55 Views
Martin Hope
Andrei
Asked: 2023-08-19 01:28:51 +0800 CST

Dovecot提交服务:身份验证失败

  • 5

我在使用 Dovecot + Postfix 设置提交时遇到问题。

doveadm auth login user pass给出正确的输出。

当我尝试发送带有提交的邮件时,它给出身份验证失败错误。

doveconf -n输出:

auth_mechanisms = plain login
disable_plaintext_auth = no
mail_location = maildir:/home/vmail/%d/%n
mail_privileged_group = vmail
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 = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
protocols = " imap lmtp submission"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
ssl_cert = < some_crt
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
dovecot
  • 1 个回答
  • 69 Views
Martin Hope
lopass
Asked: 2023-07-28 15:11:45 +0800 CST

由于缓存大小问题,Dovecot 无法获取消息

  • 5

我将 maildir 用户从旧的 courier imap 安装迁移到 docker alpine:latest 上的 dovecot。最初一切看起来都很好,但是,问题似乎已经悄然出现。由于缓存大小差异,某些消息将无法获取,日志最终如下所示:

  1. 读取错误(/mailmessage1) 缓存的邮件大小小于预期
  2. 邮箱物理尺寸错误
  3. 删除损坏的缓存记录时出错
  4. 读取错误(/mailmessage1) 缓存的邮件大小小于预期

不是很有帮助。基于此处的此条目: https ://xpufx.com/posts/dovecot_doveadm_failed_cache_message_size_error/

我认为两个服务配置之间不匹配,但我没有看到任何明显的东西,我应该将 zlib 设置为全局配置吗?

邮件目录中的邮件均未压缩。除了一些关于 mbox 的抱怨之外,谷歌上没有太多关于此的信息。

dovecot
  • 1 个回答
  • 25 Views
Martin Hope
Alex
Asked: 2023-07-22 19:34:34 +0800 CST

升级 Ubuntu Dovecot 后无法启动并出现致命错误:参数列表太长

  • 5

将 Ubuntu 从 20.04 升级到 22.04 后,我在启动 dovecot 时遇到问题,并收到以下错误:

$ sudo dovecot -F
doveconf: Fatal: execvp(/usr/sbin/dovecot) failed: Argument list too long

经过一番搜索后,我发现你必须提高ARG_MAX 变量,但我不知道如何。

我尝试在ulimit、sysconf和中寻找解决方案exec。

$ sudo getconf ARG_MAX
2097152
$ getconf ARG_MAX
6291456

我已将以下内容添加到/etc/secutiry/limits.conf:

root    soft    nofile      65535
root    hard    nofile      65535

LimitNOFILE=65536但dovecot.service它仍然抛出同样的错误!

$ sudo doveconf -n

auth_debug = yes
auth_debug_passwords = yes
auth_mechanisms = PLAIN
auth_verbose = yes
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
mail_home = /home/vmail/%d/%u
mail_location = maildir:~
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocols = imap pop3
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0666
    user = postfix
  }
  user = root
}
ssl = required
ssl_ca = </etc/ssl/certs/ca-certificates.crt
ssl_cert = </etc/letsencrypt/live/*.nl/fullchain.pem
ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
local_name mail.*.nl {
  protocol imap {
    ssl_ca = </etc/ssl/certs/ca-certificates.crt
    ssl_cert = </etc/letsencrypt/live/*.nl/fullchain.pem
    ssl_key = # hidden, use -P to show it
  }
}
local_name mail.*.nl {
  protocol pop3 {
    ssl_ca = </etc/ssl/certs/ca-certificates.crt
    ssl_cert = </etc/letsencrypt/live/*.nl/fullchain.pem
    ssl_key = # hidden, use -P to show it
  }
}

退出代码:89

dovecot
  • 1 个回答
  • 35 Views
Martin Hope
Moses Moore
Asked: 2023-03-20 21:41:34 +0800 CST

筛选规则以匹配原始标头值

  • 7

这在 procmail 中有效,但似乎 procmail在 2001 年 9 月被放弃了。当在“收件人:”标头中使用 utf-8 来使用表情符号或非拉丁字符写我的名字时,我有一个规则可以感知。当我在 Dovecot 的 Sieve 实现“Pigeonhole”中尝试同样的操作时,我很沮丧,因为它似乎丢弃了一些数据。

参考。RFC5228 参考中的筛选规则
。Dovecot Pigeonhole 实施

我尝试了什么:

require ["fileinto"];
if header :contains ["to", "from"] "=?utf-8?B?" {   fileinto "Junk"; }
elsif address :contains :all ["to", "from"] "=?utf-8?B?" {   fileinto "Junk"; }

使用此示例数据:

From: "=?utf-8?B?TWluaSBXdQ==?=" <[email protected]>
To: "=?utf-8?B?Q1VTVA==?=" <[email protected]>
Subject: =?utf-8?B?UmU6TWljcm9jaGlwIFRleGFzIE9mZmVy?=
Date: Mon, 20 Mar 2023 16:12:50 +0900

Hello potential customer! Please stop whatever you're
doing and pay attention to me!

我得到什么:

sieve-test -Tlevel=matching -t - /tmp/badmail.sieve /tmp/badmail.txt

      ## Started executing script 'badmail'
   2: header test
   2:   starting `:contains' match with `i;ascii-casemap' comparator:
   2:   extracting `to' headers from message
   2:   matching value `"CUST" <[email protected]>'
   2:     with key `=?utf-8?B?' => 0
   2:   extracting `from' headers from message
   2:   matching value `"Mini Wu" <[email protected]>'
   2:     with key `=?utf-8?B?' => 0
   2:   finishing match with result: not matched
   2: jump if result is false
   2:   jumping to line 3
   3: address test
   3:   starting `:contains' match with `i;ascii-casemap' comparator:
   3:   extracting `to' headers from message
   3:   parsing address header value `"=?utf-8?B?Q1VTVA==?=" <[email protected]>'
   3:   address value `[email protected]'
   3:   extracting `all' part from address <[email protected]>
   3:   matching value `[email protected]'
   3:     with key `=?utf-8?B?' => 0
   3:   extracting `from' headers from message
   3:   parsing address header value `"=?utf-8?B?TWluaSBXdQ==?=" <[email protected]>'
   3:   address value `[email protected]'
   3:   extracting `all' part from address <[email protected]>
   3:   matching value `[email protected]'
   3:     with key `=?utf-8?B?' => 0
   3:   finishing match with result: not matched
   3: jump if result is false
   3:   jumping to line 3
      ## Finished executing script 'badmail'

Implicit keep:  store message in folder: INBOX

它在跟踪输出中记录了“=?utf-8?B?...”,所以我知道它知道。但是 'header' 测试和 'address' 测试都在执行之前丢弃了该数据。我还尝试了:comparator "i;octet"而不是默认的“i;ascii-casemap”,结果相同。

我如何测试原始标头而不是这些解释值?

dovecot
  • 1 个回答
  • 52 Views
Martin Hope
Eric Jonas
Asked: 2023-03-20 01:26:48 +0800 CST

无法使用 Dovecot/POP3 检查来自 Gmail 中其他帐户的邮件

  • 6

我有一个运行在 AlmaLinux 上的 VPS。对于 SMTP,我使用 sendmail,它成功地为我的两个域名发送和接收了电子邮件。我设置了 Dovecot 来处理 IMAP/POP3。我想允许 Gmail 帐户使用 Gmail 提供的“检查来自其他帐户的邮件”功能从我的一个域名(我们称之为 example.com)接收电子邮件。不幸的是,我无法让它发挥作用。

事情是这样的:

我很确定 Dovecot 已正确配置以处理 POP3 连接。在我的电脑上,我可以在命令行中输入以下内容:

openssl s_client -starttls pop3 -connect mail.example.com:110

如果我然后输入USER fake_usernameand PASS fake_password,我可以执行 POP 命令(例如LISTand STAT)并获得正确的响应。

此外,我在本地计算机上配置 Thunderbird 使用 POP3 从 mail.example.com 读取电子邮件。在 Thunderbird 中,我可以使用以下帐户设置阅读电子邮件:

Server Name: mail.example.com
Port: 110
User Name: fake_username
Connection Security: STARTTLS
Authentication Method: Normal Password

...虽然电子邮件来得很顺利。

但是,当我在 Gmail 中使用相同的信息(mail.example.com、端口 110、正确的用户名、正确的密码)时,我收到两条错误消息之一,具体取决于我是否选中了“始终使用安全连接 ( SSL) 在检索邮件时。”

如果我未选中该复选框,在 Web 表单上,我会看到以下错误消息:

“服务器拒绝对给定的用户名和密码进行 POP3 访问。”

在我的服务器日志 ( dovecot.log) 上,我看到以下内容:

Mar 19 12:27:36 pop3-login: Info: Disconnected: Disconnected: Too many bad commands (no auth attempts in 0 secs): user=<>, rip=209.85.128.137, lip=103.72.79.234, session=<cR/KSUP3MIvRVYCJ>

如果我选中“始终使用 SSL”复选框,在前端 Gmail 会显示此错误消息:

“连接到 mail.example.com 时出现问题”

在 中dovecot.log,我看到:

Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read client hello
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server hello
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write change cipher spec
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write encrypted extensions
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write certificate
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write server certificate verify
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write finished
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read finished
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x20, ret=1: SSLv3/TLS write session ticket
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket
Mar 19 12:27:01 pop3-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully
Mar 19 12:27:01 pop3-login: Info: Login: user=<fake_username>, method=PLAIN, rip=71.232.112.192, lip=[MY SERVER'S IP ADDRESS], mpid=949498, TLS, session=<waq2R0P3fM1H6HDA>
Mar 19 12:27:01 pop3(fake_username)<949498><waq2R0P3fM1H6HDA>: Info: Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Mar 19 12:27:01 pop3-login: Debug: SSL alert: close notify

在我的文件中/etc/dovecot/10-auth.conf,我唯一没有注释的行是:

auth_mechanisms = plain login
!include auth-system.conf.ext

并且没有任何与 auth 相关的内容dovecot.conf

我认为一方面我通过命令行授权会话和在 Thunderbird 中授权会话之间存在一些不匹配(Thunderbird 无法通过 POP3 连接到 mail.example.com,除非我使用 ),以及STARTTLSGmail 尝试连接的方式另一方面。不幸的是,错误日志对我来说都是希腊语,我无法充分理解 Dovecot 文档以弄清楚如何让 Dovecot 授予对 Gmail 的访问权限。

有没有好心人知道这里发生了什么/可能发生了什么以及我该如何解决?

dovecot
  • 1 个回答
  • 33 Views
Martin Hope
Andrew Newby
Asked: 2022-12-17 01:22:34 +0800 CST

Dovecot 的 fts_solr - 找不到插件文件?

  • 6

我正在尝试按照此操作通过我的 Dovecot 安装获取 Solr 搜索设置:

https://doc.dovecot.org/configuration_manual/fts/solr/#fts-backend-solr

一切似乎都很好——我可以在 Solr 管理中看到核心。我正在使用 Solr 8.9.0,但它似乎对配置文件很满意。

但是,它说运行以实际索引的命令之一:

doveadm fts rescan -u [email protected] 

我得到:

Fatal: Plugin 'fts_solr' not found from directory /usr/lib/dovecot/modules

果然,我在任何东西中都看不到那个名字的任何东西:

root@east:/usr/lib/dovecot/modules# ls -lh *fts*
-rw-r--r-- 1 root root 263K Jul  7 17:17 lib20_fts_plugin.so
-rw-r--r-- 1 root root  71K Jul  7 17:17 lib21_fts_squat_plugin.so

我错过了什么?我是否也需要手动安装插件?

dovecot --version
2.3.7.2 (3c910f64b)

更新:环顾四周,我可以看到 dovecot-fts-solr 插件(https://alpine.pkgs.org/3.15/alpine-main-aarch64/dovecot-fts-solr-2.3.17.1-r0.apk.html) . 我似乎无法安装它。不太确定如何进行?(我可以直接下载 .so 文件并将其放入 /usr/lib/dovecot/modules ,但我很确定那行不通:))

更新 2:所以我设法找到了:

apt-get 安装 dovecot-solr

这将创建 lib21_fts_solr_plugin.so 文件。但是,当我尝试重新索引消息时,我什么也没得到:

doveadm -D fts rescan -u [email protected]
Debug: Loading modules from directory: /usr/lib/dovecot/modules
Debug: Module loaded: /usr/lib/dovecot/modules/lib20_fts_plugin.so
Debug: Module loaded: /usr/lib/dovecot/modules/lib21_fts_solr_plugin.so
Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm
Debug: Skipping module doveadm_acl_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so: undefined symbol: acl_user_module (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_deinit (this is usually intentional, so just ignore this message)
Debug: Skipping module doveadm_quota_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so: undefined symbol: quota_user_module (this is usually intentional, so just ignore this message)
Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_lucene_plugin.so: undefined symbol: lucene_index_iter_deinit (this is usually intentional, so just ignore this message)
Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so
Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/libdoveadm_mail_crypt_plugin.so: undefined symbol: mail_crypt_box_get_pvt_digests (this is usually intentional, so just ignore this message)
doveadm([email protected])<35131><>: Debug: auth-master: userdb lookup([email protected]): Started userdb lookup
doveadm([email protected])<35131><>: Debug: auth-master: conn unix:/var/run/dovecot//auth-userdb: Connecting
doveadm([email protected])<35131><>: Debug: auth-master: conn unix:/var/run/dovecot//auth-userdb: Client connected (fd=10)
doveadm([email protected])<35131><>: Debug: auth-master: userdb lookup([email protected]): auth USER input: [email protected] uid=1011 gid=8 home=/home/hatlamp quota_rule=*:storage=0M
doveadm([email protected])<35131><>: Debug: auth-master: userdb lookup([email protected]): Finished userdb lookup ([email protected] uid=1011 gid=8 home=/home/hatlamp quota_rule=*:storage=0M)
doveadm([email protected])<35131><>: Debug: Added userdb setting: plugin/quota_rule=*:storage=0M
doveadm([email protected]): Debug: Effective uid=1011, gid=8, home=/home/hatlamp
doveadm([email protected]): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/hatlamp/mail/hatlamp.com/hello
doveadm([email protected]): Debug: maildir++: root=/home/hatlamp/mail/hatlamp.com/hello, index=, indexpvt=, control=, inbox=/home/hatlamp/mail/hatlamp.com/hello, alt=
doveadm([email protected]): Debug: auth-master: conn unix:/var/run/dovecot//auth-userdb: Disconnected: Connection closed (fd=10)

查看solr的界面,没有文章:

在此处输入图像描述

dovecot
  • 1 个回答
  • 22 Views
Martin Hope
TommyPeanuts
Asked: 2022-11-01 00:41:15 +0800 CST

如何将系统帐户中的 Dovecot 额外字段合并为 passwd 文件格式?

  • 5

我正在使用 Dovecot 2.2.33 运行 Ubuntu 邮件服务器,并且正在使用系统帐户:

passdb {
  driver = pam 

我有大约 100 个邮件用户。

我想强加每个用户的存储配额,但是 Dovecot docs on per-user quota configuration说:

Passwd userdb 不支持额外的字段。这就是为什么您不能直接将用户的配额限制设置为 passwd 文件。一种可能性是编写一个脚本,从另一个文件读取配额限制,将它们与 passwd 文件合并并生成另一个 passwd 文件,然后您可以将其与 Dovecot 的 Passwd 文件一起使用。

有没有人有这样一个脚本的例子?例如,我从文档中不清楚密码本身是如何处理的。或者是否有其他一些解决方法不需要迁移到虚拟用户设置来获得每个用户的配额?

email-server dovecot
  • 1 个回答
  • 38 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve