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
    • 最新
    • 标签
主页 / user-329496

ki9's questions

Martin Hope
ki9
Asked: 2018-09-02 13:48:51 +0800 CST

Postfix 通过 virtual_alias_maps 将外发电子邮件发回给我

  • 0

我有一个 postfix 邮件服务器设置为将所有电子邮件转发到我的域,*@example.com,到单个虚拟邮箱:[email protected].

我用这个配置做到了:

/etc/postfix/main.cf

virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf regexp:/etc/postfix/aliases-regexp

/etc/postfix/aliases-regexp (应该转发任何还没有去的东西[email protected])

!/me@example\.com/ [email protected]

接收邮件工作正常:

postfix/smtpd[5852]: connect from unknown[108.60.212.145]
postfix/trivial-rewrite[5856]: warning: do not list domain example.com in BOTH virtual_mailbox_domains and relay_domains
postfix/smtpd[5852]: E7D49E27: client=unknown[108.60.212.145]
postfix/cleanup[5857]: E7D49E27: message-id=<a197d7118eaedfb5@be0fdfd65ca8aeb2>
postfix/qmgr[5787]: E7D49E27: from=<[email protected]>, size=1700, nrcpt=1 (queue active)
postfix/smtpd[5852]: disconnect from unknown[108.60.212.145] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
postfix/pickup[5785]: 64CB91090: uid=1002 from=<[email protected]>
postfix/cleanup[5857]: 64CB91090: message-id=<a197d7118eaedfb5@be0fdfd65ca8aeb2>
postfix/qmgr[5787]: 64CB91090: from=<[email protected]>, size=2068, nrcpt=1 (queue active)
postfix/trivial-rewrite[5856]: warning: do not list domain example.com in BOTH virtual_mailbox_domains and relay_domains
postfix/pipe[5858]: E7D49E27: to=<[email protected]>, orig_to=<[email protected]>, relay=spamassassin, delay=0.54, delays=0.13/0.01/0/0.4, dsn=2.0.0, status=sent (delivered via spamassassin service)
postfix/qmgr[5787]: E7D49E27: removed
postfix/lmtp[5862]: 64CB91090: to=<[email protected]>, relay=fqdn.example.com[private/dovecot-lmtp], delay=0.08, delays=0.02/0.03/0.02/0.02, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> 22w5HOfOilvnFgAASQqZ1w Saved)
postfix/qmgr[5787]: 64CB91090: removed

注意这一行:

postfix/pipe[5858]: E7D49E27: to=<[email protected]>, orig_to=<[email protected]>, relay=spamassassin, delay=0.54, delays=0.13/0.01/0/0.4, dsn=2.0.0, status=sent (delivered via spamassassin service)

表明该消息的目的[email protected]是发送给[email protected]. 这很好。不幸的是,它也发生在出路时。这会导致传出消息被发回给我。

postfix/lmtp[5862]: BA93CE27: to=<[email protected]>, orig_to=<[email protected]>, relay=fqdn.example.com[private/dovecot-lmtp], delay=0.22, delays=0.19/0/0.02/0.02, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> QzBoOSXPiluGGAAASQqZ1w Saved)

这是发送邮件时的完整日志:

postfix/trivial-rewrite[5856]: warning: do not list domain example.com in BOTH virtual_mailbox_domains and relay_domains
postfix/submission/smtpd[6260]: BA93CE27: client=mail-pl1-f178.google.com[209.85.214.178], sasl_method=PLAIN, [email protected]
postfix/cleanup[5857]: BA93CE27: message-id=<CAHgoK_pUF=7qQ+fCRYcqKBPGqxK1fin-AjjoY5xr0GuUeDScow@mail.gmail.com>
postfix/qmgr[5787]: BA93CE27: from=<[email protected]>, size=4192, nrcpt=1 (queue active)
postfix/trivial-rewrite[5856]: warning: do not list domain example.com in BOTH virtual_mailbox_domains and relay_domains
postfix/lmtp[5862]: BA93CE27: to=<[email protected]>, orig_to=<[email protected]>, relay=fqdn.example.com[private/dovecot-lmtp], delay=0.22, delays=0.19/0/0.02/0.02, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> QzBoOSXPiluGGAAASQqZ1w Saved)
postfix/qmgr[5787]: BA93CE27: removed

结果是我的消息似乎没有发送,我什至没有收到错误消息。

postfix
  • 2 个回答
  • 322 Views
Martin Hope
ki9
Asked: 2016-10-09 08:36:58 +0800 CST

球童“听 tcp:443:绑定:权限被拒绝”

  • 16

升级到 v0.9.3 后,Caddy 服务器无法启动并显示此错误:

listen tcp :443: bind: permission denied

我以 systemd 身份运行 caddy caddy。我检查了二进制文件实际上是由caddy.

permissions
  • 2 个回答
  • 33086 Views
Martin Hope
ki9
Asked: 2016-10-01 15:15:44 +0800 CST

systemd 实例名称 (%i) 在 ExecStart 中不起作用

  • 4

出于某种原因,systemd 没有替换%i或%I使用 ExecStart 中的实例名称


/systemd/system/service/[email protected]

[Unit]
Description=Foo service for %I

[Service]
User=keith
ExecStart=/path/to/foo/%i/food
...

/path/to/foo/bar/food

#/bin/bash

node /path/to/foo/bar/bard.js

然后我运行:

$ sudo systemctl daemon-reload
$ sudo systemctl start foo@bar
$ sudo systemctl status foo@bar
● [email protected] - Foo service for bar
   Loaded: loaded (/etc/systemd/system/[email protected]; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2016-09-30 19:07:02 EDT; 6s ago
  Process: 18705 ExecStart=/path/to/foo/%i/food (code=exited, status=203/EXEC)
 Main PID: 18705 (code=exited, status=203/EXEC)

Sep 30 19:07:02 kptow systemd[1]: Started Foo service for bar.
Sep 30 19:07:02 kptow systemd[1]: [email protected]: Main process exited, code=exited, status=203/EXEC
Sep 30 19:07:02 kptow systemd[1]: [email protected]: Unit entered failed state.
Sep 30 19:07:02 kptow systemd[1]: [email protected]: Failed with result 'exit-code'.

描述%I中的 被替换,但%iExecStart 中的 没有。我试过使用%i/ %I,但都不管用。

systemd
  • 2 个回答
  • 5157 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