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-465552

VaNa's questions

Martin Hope
VaNa
Asked: 2022-01-22 07:24:49 +0800 CST

后缀:如何通过 SMTP 强制 IPv4?

  • 0

问题

我已经成功地设置了一个带有 SMTP 接口的 Postfix 邮件服务器,设置了 DKIM、DMARC、SPF 等等。

但是在测试向 Gmail 发送电子邮件时遇到了问题。

即,如果我通过sendmail服务器的命令发送 SPF(ARC-Authentication-ResultsGmail 中已传递邮件的某些标头内容),则 SPF 将通过:

spf=pass (google.com: domain of redacted@example.com designates xxx.xxx.xxx.xxx as permitted sender) smtp.mailfrom=redacted@example.com;

xxx.xxx.xxx.xxx服务器的 IPv4 地址在哪里

但是如果我使用 SMTP 连接到服务器并以这种方式发送它会失败:

spf=fail (google.com: domain of redacted@example.com does not designate yyyy:yyyy:yyyy:yyyy:yyyy:yyyy:yyyy:yyyy as permitted sender) smtp.mailfrom=redacted@example.com;

yyyy:yyyy:yyyy:yyyy:yyyy:yyyy:yyyy:yyyy服务器的 IPv6 地址在哪里。

使固定

我意识到 SPF DNS 记录只是为 IPv4 地址设置的,所以我将它设置为它也适用于 IPv6,它开始传递为

spf=pass (google.com: domain of redacted@example.com designates xxx.xxx.xxx.xxx as permitted sender) smtp.mailfrom=redacted@example.com;

xxx.xxx.xxx.xxx服务器的IPv4地址在哪里(奇怪)

问题

  1. 通过 SMTP 发送时有没有办法强制 IPv4?现在大多数机器都应该处理 IPv6,但如果它在我不想的时候不接触 IPv6,我会更高兴。
  2. 由于 SPF DNS 记录中不存在 IPv6 而导致它失败之前怎么可能,但现在在我添加 IPv6 后它通过 IPv4 传递?

如果需要知道任何设置,请告诉我。配置文件有很多行,因此将它们全部发布是不切实际的。

postfix
  • 0 个回答
  • 409 Views
Martin Hope
VaNa
Asked: 2020-11-25 07:19:27 +0800 CST

Nginx 使用 # 重定向到 URL

  • 0

我希望例如https://example.com/to/redirect被 nginx 重定向到https://example.com/some/url/with/#my-beautiful-id. 但是,在 nginx 配置文件#中用于注释

可能吗?我应该向 nginx 配置写入什么内容才能正常工作?

不工作

server {
    ...
    location /to/redirect {
        ...
        return https://example.com/some/url/with/%23my-beautiful-id;
    }
}
url nginx
  • 1 个回答
  • 509 Views
Martin Hope
VaNa
Asked: 2018-04-17 11:49:52 +0800 CST

哪些特殊字符在筛正则表达式中起作用?

  • 2

我有带有 managesieve v. 8.7 扩展的 Roundcube Webmail v. 1.3.1 邮件客户端,并且想为我的邮件添加一些正则表达式驱动的操作,而我在正则表达式风格上找到的唯一文档就是这个文档。但是我找不到它支持的特殊字符(或者\n是\\n?)等等,以及如何编写它们。提到了定义的字符组,但我宁愿使用(这似乎不起作用)而不是更广泛的或类似的。\r\d[: :]\n[:cntrl:][:space:]

在文档中写到它必须支持 POSIX ERE 标准,但是我熟悉不同风格的正则表达式(PERL 类型),所以我觉得这相当困难。

您能帮忙找出其中支持哪些特殊字符和字符序列吗?哪些字符不特殊等?

我想出了一个简单的正则表达式来匹配 YYYY/MM/DD 中​​的日期,然后是空格,然后是 HH:MM:SS 格式的时间,然后是换行符,然后是邮件正文开头的任何内容,但它似乎不是在职的。这是筛子代码:

require ["body","fileinto","regex","vacation"];
# rule:[date and time]
if anyof (body :text :regex "[[:digit:]]{2}/[[:digit:]]{2}/[[:digit:]]{4} [[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}[[:space:]](.*[[:space:]]*)*")
{
vacation text:
YOU DID IT!
.
;
}
email-server
  • 1 个回答
  • 772 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