【问题标题】:Configure postfix with inbound authentication使用入站身份验证配置 postfix
【发布时间】:2020-12-29 23:28:44
【问题描述】:

我想为 postfix 配置入站身份验证。 例如,如果这是我的客户列表:

user             |    password

alice@alice.com          1234
bob@bob.com              5678

我只想为他们服务并只接受来自他们的连接。

用例是:Alice 想向某人@gmail.com 发送邮件并通过我的 MTA。 Alice 打开到我的后缀的连接(MAIL FROM:alice@alice.com,RCPT TO:someone@gmail.com), 在中间的某个地方,我希望 Alice 用她的密码 1234 来识别。

如何使用后缀配置强制它?

【问题讨论】:

    标签: email authentication postfix-mta


    【解决方案1】:

    你需要定义smtpd_recipient_restrictions

    master.cf:

    smtpd     pass  -       -       -       -       -       smtpd
      -o smtpd_recipient_restrictions=auth
    

    main.cf

    smtpd_restriction_classes = auth
    auth = permit_sasl_authenticated,reject
    

    这些 sn-ps 只是非常基本的示例。请阅读Postfix Documentation 了解身份验证的工作原理。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-26
      • 1970-01-01
      • 2015-05-03
      • 2016-09-12
      • 2021-07-12
      • 1970-01-01
      • 1970-01-01
      • 2023-02-22
      相关资源
      最近更新 更多