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 / 问题

问题[mailman](server)

Martin Hope
stf
Asked: 2022-02-26 14:49:44 +0800 CST

GNU Mailman3 + Postfix:550 5.1.1 <root@localhost>:收件人地址被拒绝:本地收件人表中的用户未知

  • 0

我只是想用 Postfix+Nginx+Postgres 运行 GNU Mailman3。这是最新的 GNU/Linux Debian 稳定版,所以我刚刚apt-get安装mailman3-full并对配置文件进行了一些标准更改。Nginx 部分很好,SSL 工作正常,我可以从我的网络浏览器访问 Postorius 和 Hyperkitty。但是当尝试以管理员身份登录时,我收到以下错误:

ERROR 2022-02-25 21:39:55,302 118475 django.request Internal Server Error: /accounts/login/
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/utils/decorators.py", line 45, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/allauth/account/views.py", line 146, in dispatch
    return super(LoginView, self).dispatch(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/allauth/account/views.py", line 74, in dispatch
    response = super(RedirectAuthenticatedUserMixin, self).dispatch(
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/allauth/account/views.py", line 102, in post
    response = self.form_valid(form)
  File "/usr/lib/python3/dist-packages/allauth/account/views.py", line 159, in form_valid
    return form.login(self.request, redirect_url=success_url)
  File "/usr/lib/python3/dist-packages/allauth/account/forms.py", line 195, in login
    ret = perform_login(
  File "/usr/lib/python3/dist-packages/allauth/account/utils.py", line 175, in perform_login
    send_email_confirmation(request, user, signup=signup, email=email)
  File "/usr/lib/python3/dist-packages/allauth/account/utils.py", line 346, in send_email_confirmation
    email_address.send_confirmation(request, signup=signup)
  File "/usr/lib/python3/dist-packages/allauth/account/models.py", line 62, in send_confirmation
    confirmation.send(request, signup=signup)
  File "/usr/lib/python3/dist-packages/allauth/account/models.py", line 169, in send
    get_adapter(request).send_confirmation_mail(request, self, signup)
  File "/usr/lib/python3/dist-packages/allauth/account/adapter.py", line 464, in send_confirmation_mail
    self.send_mail(email_template, emailconfirmation.email_address.email, ctx)
  File "/usr/lib/python3/dist-packages/allauth/account/adapter.py", line 136, in send_mail
    msg.send()
  File "/usr/lib/python3/dist-packages/django/core/mail/message.py", line 306, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/usr/lib/python3/dist-packages/django/core/mail/backends/smtp.py", line 110, in send_messages
    sent = self._send(message)
  File "/usr/lib/python3/dist-packages/django/core/mail/backends/smtp.py", line 126, in _send
    self.connection.sendmail(from_email, recipients, message.as_bytes(linesep='\r\n'))
  File "/usr/lib/python3.9/smtplib.py", line 885, in sendmail
    raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'root@localhost': (550, b'5.1.1 <root@localhost>: Recipient address rejected: User unknown in local recipient table')}
[pid: 118475|app: 0|req: 35/35] 2001:xxxx:xxxx:xxxx:xxxx:xxxx () {62 vars in 1133 bytes} [Fri Feb 25 21:39:55 2022] POST /accounts/login/ => generated 1156 bytes in 173 msecs (HTTP/1.1 500) 5 headers in 182 bytes (1 switches on core 1)

在 Postfix 日志文件中:

Feb 25 21:39:55 vps-xxx postfix/smtpd[122820]: connect from localhost[::1]
Feb 25 21:39:55 vps-xxx postfix/smtpd[122820]: NOQUEUE: reject: RCPT from localhost[::1]: 550 5.1.1 <root@localhost>: Recipient address rejected: User unknown in local recipient table; from=<root@MYDOMAIN> to=<root@localhost> proto=ESMTP helo=<vps-xxx>
Feb 25 21:39:55 vps-xxx postfix/smtpd[122820]: disconnect from localhost[::1] ehlo=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=4/5

我想:也许我的本地收件人表不知何故坏了?但我可以使用以下方式发送邮件mail:

$ mail -r 'root@localhost' -s 'just a test' 'root@localhost'

它工作得很好:

Feb 25 21:44:12 vps-xxx postfix/pickup[124104]: 9ABB540516: uid=1000 from=<root@localhost>
Feb 25 21:44:12 vps-xxx postfix/cleanup[124763]: 9ABB540516: message-id=<20220225214412.9ABB540516@MYDOMAIN>
Feb 25 21:44:12 vps-xxx opendkim[14611]: 9ABB540516: no signing table match for 'root@localhost'
Feb 25 21:44:12 vps-xxx opendkim[14611]: 9ABB540516: no signature data
Feb 25 21:44:12 vps-xxx postfix/qmgr[118558]: 9ABB540516: from=<root@localhost>, size=412, nrcpt=1 (queue active)
Feb 25 21:44:12 vps-xxx postfix/local[124765]: 9ABB540516: to=<root@localhost>, relay=local, delay=0.04, delays=0.03/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Feb 25 21:44:12 vps-xxx postfix/qmgr[118558]: 9ABB540516: removed

我root确实可以在 's Maildir 中看到它。

有任何想法吗?

如果我没记错root@localhost的话,是我admin在dpkg-reconfigure. 我以前从未使用过 GNU Mailman3,但我猜这封电子邮件一定是登录通知或类似的东西(您也可以通过send_email_confirmation函数名称猜测它)。如果我输入了错误的密码,一切都很好(我只是在 Web UI 中得到一个很好的错误),所以只有当密码正确时才会发生这种情况。

谢谢!

email postfix python mailman
  • 1 个回答
  • 143 Views
Martin Hope
roynalnaruto
Asked: 2017-02-11 00:02:41 +0800 CST

后缀:由于 ESMTP 拒绝中继访问

  • 0

我已经设置了 mailman 和 postfix,但是邮件没有通过邮件列表发送到。Postfix 拒绝它,因为收件人域没有添加到postfix_domains.

这是我的main.cf:

recipient_delimiter = +
unknown_local_recipient_reject_code = 500
owner_request_special = no
myhostname = develop.product.company.com
mynetworks = 10.92.5.5/16

# Increase deferred mail delivery frequency
queue_run_delay = 60s
minimal_backoff_time = 30s
maximal_backoff_time = 120s
# BEGIN ANSIBLE MANAGED BLOCK
recipient_delimiter = +
unknown_local_recipient_reject_code = 500
owner_request_special = no
transport_maps =  hash://opt/mailman/var/data/postfix_lmtp
local_recipient_maps =  hash://opt/mailman/var/data/postfix_lmtp
relay_domains = hash://opt/mailman/var/data/postfix_domains
# END ANSIBLE MANAGED BLOCK

Mailman 中的邮件列表已在domain1.com和中创建domain2.com,文件postfix_domains如下所示:

# AUTOMATICALLY GENERATED BY MAILMAN ON 2017-02-09 02:43:51
#
# This file is generated by Mailman, and is kept in sync with the binary hash
# file.  YOU SHOULD NOT MANUALLY EDIT THIS FILE unless you know what you're
# doing, and can keep the two files properly in sync.  If you screw it up,
# you're on your own.

domain1.com domain1.com
domain2.com domain2.com

当我尝试向该邮件列表(其中[email protected]是订阅者)发送邮件时,我收到以下错误:

postfix/smtpd[8110]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ip-10-92-34-5.ap-northeast-1.compute.internal>

我运行以下命令postconf -d | grep "smtpd_r"以获得以下结果:

postscreen_reject_footer = $smtpd_reject_footer
smtpd_recipient_limit = 1000
smtpd_recipient_overshoot_limit = 1000
smtpd_recipient_restrictions =
smtpd_reject_footer =
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = no
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination
smtpd_restriction_classes =

我已经阅读了在这个论坛上提出的类似问题,但我没有找到这样一个确切的问题。有人可以帮我解决这个问题吗?

谢谢!

smtp postfix mailman
  • 1 个回答
  • 3926 Views
Martin Hope
user2643864
Asked: 2015-01-23 00:48:10 +0800 CST

有没有办法使用 Mailman 从命令行更改列表上的 Require Explicit Destination 标志?

  • 2

我在邮递员中有一个邮件列表,其中“需要显式目的地”标志设置为 True。我想关闭它,但只能通过命令行访问。如何使用命令行将其关闭/设置为 false?

mailman
  • 2 个回答
  • 198 Views
Martin Hope
Joril
Asked: 2014-10-31 05:16:58 +0800 CST

Mailman:是否可以重新发送退回的电子邮件?

  • 1

我刚刚安装了一个 Mailman 服务器来发送时事通讯,但我(愚蠢地)在发送第一个之前没有等待足够长的时间让新的专用子域通过 DNS 网络传播,所以现在我有很多退回的电子邮件: ((由于Sender address rejected: Domain not found (in reply to RCPT TO command))

由于大约有一半的电子邮件无论如何都通过了,既然 DNS 问题已经解决,是否可以告诉 Mailman 重新发送退回的电子邮件?

这是其中一封退回电子邮件的 Postfix 日志:

Oct 30 10:07:02 localhost postfix/smtpd[28548]: 47C5EC4134: client=localhost[127.0.0.1]
Oct 30 10:07:02 localhost postfix/cleanup[28580]: 47C5EC4134: message-id=<[email protected]>
Oct 30 10:07:02 localhost postfix/qmgr[14515]: 47C5EC4134: from=<[email protected]>, size=431670, nrcpt=1 (queue active)
Oct 30 10:07:02 localhost postfix/smtp[28562]: 47C5EC4134: to=<[email protected]>, relay=smtp.XXX.com[XX.XXX.X.XXX]:25, delay=0.42, delays=0.05/0/0.21/0.16, dsn=4.1.8, status=deferred (host smtp.XXX.com[XX.XXX.X.XXX] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Oct 30 10:16:20 localhost postfix/qmgr[14515]: 47C5EC4134: from=<[email protected]>, size=431670, nrcpt=1 (queue active)
Oct 30 10:16:20 localhost postfix/smtp[29719]: 47C5EC4134: to=<[email protected]>, relay=smtp.XXX.com[XX.XXX.X.XXX]:25, delay=558, delays=558/0.06/0.1/0.04, dsn=4.1.8, status=deferred (host smtp.XXX.com[XX.XXX.X.XXX] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Oct 30 10:26:20 localhost postfix/qmgr[14515]: 47C5EC4134: from=<[email protected]>, size=431670, nrcpt=1 (queue active)
Oct 30 10:26:20 localhost postfix/smtp[30860]: 47C5EC4134: to=<[email protected]>, relay=smtp.XXX.com[XX.XXX.X.XXX]:25, delay=1159, delays=1158/0.03/0.34/0.05, dsn=4.1.8, status=deferred (host smtp.XXX.com[XX.XXX.X.XXX] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Oct 30 10:46:20 localhost postfix/qmgr[14515]: 47C5EC4134: from=<[email protected]>, size=431670, nrcpt=1 (queue active)
Oct 30 10:46:21 localhost postfix/smtp[320]: 47C5EC4134: to=<[email protected]>, relay=smtp.XXX.com[XX.XXX.X.XXX]:25, delay=2359, delays=2359/0.03/0.1/0.04, dsn=4.1.8, status=deferred (host smtp.XXX.com[XX.XXX.X.XXX] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Oct 30 11:16:20 localhost postfix/qmgr[14515]: 47C5EC4134: from=<[email protected]>, size=431670, nrcpt=1 (queue active)
Oct 30 11:16:20 localhost postfix/smtp[3133]: 47C5EC4134: to=<[email protected]>, relay=smtp.XXX.com[XX.XXX.X.XXX]:25, delay=4158, delays=4158/0.03/0.1/0.06, dsn=4.1.8, status=deferred (host smtp.XXX.com[XX.XXX.X.XXX] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Oct 30 11:16:20 localhost postfix/qmgr[14515]: 47C5EC4134: from=<[email protected]>, status=expired, returned to sender
Oct 30 11:16:20 localhost postfix/bounce[3136]: 47C5EC4134: sender non-delivery notification: 9CFC2C0560
Oct 30 11:16:20 localhost postfix/qmgr[14515]: 47C5EC4134: removed
mailman
  • 1 个回答
  • 1369 Views
Martin Hope
S.L. Barth
Asked: 2014-01-21 08:58:08 +0800 CST

邮递员的站点列表丢失,尽管它已创建和配置

  • 3

我正在将邮递员安装从 Ubuntu 8.0.4 服务器迁移到 Ubuntu 12.04 服务器。

我已经成功地在目标服务器上安装了 mailman 并按照本文data复制了那里的,archives和lists目录。

然后我尝试sudo service mailman start并受到了欢迎

KeyError: 'ee'
 * Site list for mailman missing (looking for list named 'mailman').
 * Please create it; until then, mailman will refuse to start.

当我尝试使用bin\newlist mailman(根据官方文档)创建邮递员列表时,它告诉我该列表mailman已经存在。尝试启动或重新启动失败。

所以我再次按照文档更改了 mm_cfg.py 文件,并设置

real_name = 'Mailman2'

发出命令

/var/lib/mailman$ sudo bin/config_list -i data/sitelist.cfg mailman2

产量:

非标属性恢复:个性化

听起来事情奏效了。但是,当我尝试时sudo service mailman start,我会收到列表 mailman2 的相同警告:

KeyError: 'ee'
 * Site list for mailman missing (looking for list named 'mailman2').
 * Please create it; until then, mailman will refuse to start.

如何为邮递员创建“站点列表”并启动邮递员服务?

mailman
  • 1 个回答
  • 5407 Views
Martin Hope
mhost
Asked: 2013-12-18 18:00:18 +0800 CST

即使未设置 mod 位,邮递员也会强制审核成员发布的消息

  • 0

即使我已经确认他们没有设置 mod 位,我的邮递员服务器仍保留所有用户发布的消息。

我已确认发件人电子邮件与订阅会员匹配(审核列表中的邮件显示来自会员)。

服务器刚刚建立,成员刚刚加入。在最初的 24 小时内,他们是否仍处于审核状态?

或者是否有其他设置,例如强制所有帖子进行审核的列表甚至全局服务器设置?

谢谢。

mailman
  • 1 个回答
  • 97 Views
Martin Hope
Nic
Asked: 2013-08-24 16:47:15 +0800 CST

使用 Mailman,如何将消息分流回保持队列以进行审核?

  • 2

如何让 Mailman 重新处理队列目录中的邮件?或者,如何将队列目录中的所有消息传输到相关列表的审核保留队列中?


我的问题是我的in队列目录中充满了以前通过审核但由于我qrunner没有工作而从未送达的消息。我知道我可以启动 qrunner 并且这些消息会被传递,但我希望列表管理员再看一下,因为有些消息相当旧,现在发送它们没有意义。

我读到了一个名为 Mailman 的命令,unshunt但我认为它并不能完全满足我的需要。

mailman
  • 1 个回答
  • 442 Views
Martin Hope
krissi
Asked: 2013-04-25 08:06:19 +0800 CST

使用 augeas 管理邮递员配置

  • 0

我想创建一个 augeas 镜头来修改邮递员列表。这些列表存储在一个二进制文件中,该文件可以使用导出到纯文本文件config_list -o /tmp/config my_list并通过替换-o为-i.

目标是像这样构建一棵 augeas 树:

/mailman/my_list/real_name = "my mailman list"
/mailman/my_list/description = "This is my first list"
...
/mailman/another_list/real_name = "my other list"
/mailman/another_list/description = "This is just another list"
...

list_lists是否可以通过使用邮递员命令和来构建一个生成给定树的镜头config_list?

谢谢,克里斯

mailman
  • 1 个回答
  • 70 Views
Martin Hope
freiheit
Asked: 2012-06-08 15:33:44 +0800 CST

如何限制邮递员列表订阅到某些域?

  • 12

有什么方法可以限制邮递员邮件列表只允许来自一个特定域的订阅吗?

我知道如何禁止订阅特定的电子邮件地址或域,但是有没有办法禁止所有不是 example.com 的域?或者可能是几个特定的​​域?

我们开始受到对我们某些列表的订阅尝试的打击,我确信这些人是僵尸网络1上的垃圾邮件发送者,这让列表所有者很恼火。一些列表配置了“需要批准”或“确认并批准”的 subscribe_policy,因为这些列表仅供我们的本地用户使用,最好通过自动拒绝来自外部电子邮件的订阅来最大程度地减少列表所有者的烦恼列表所有者无论如何都不允许订阅的地址。

我们不能简单地限制对本地网络的访问,因为我们有面向全球受众的列表,而且我们的一些“本地”用户可以在任何地方。


1一个电子邮件地址在几个小时内从不同的 IP 订阅了几十个不相关的列表;然后第二天又一轮使用新的电子邮件地址和不同的 IP。在少数情况下,列表所有者通过电子邮件向他们发送了一个问题,询问他们为什么要注册该列表,但没有收到回复。

mailman mailing-list
  • 4 个回答
  • 3444 Views
Martin Hope
Bryan Hunt
Asked: 2012-06-06 14:45:53 +0800 CST

防止满足 apt 依赖(永久)

  • -1

我想安装 mailman(只是为了使用它的邮件归档功能),但 Ubuntu 想要卸载大量额外的依赖项。

sudo apt-get install mailman 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2 apache2-mpm-worker apache2.2-common
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom spamassassin lynx listadmin

有什么方法可以将这些软件包( apache2 apache2-mpm-worker apache2.2-common )标记为永远不会安装?这不是 2002 年 ;)

ubuntu debian apache-2.2 apt mailman
  • 1 个回答
  • 77 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