postfix smarthost 出站邮件服务器

postfix smarthost 出站邮件服务器

各位善良的人们,大家好,

我真的很累,试图通过查看其配置文件来了解某个 postfix 设置。我知道这个问题对你们来说听起来有点奇怪,因为我试图盲目地找出答案,但我想尽快了解这个设置,所以我提前道歉。首先,我将列出一些关于 postfix 的一般问题,然后向你们介绍配置文件。

  1. 中继主机是否也处理入站电子邮件(从公共系统发往内部系统的邮件)?据我所知,中继主机最常用于将电子邮件从内部主机发送到有效的电子邮件地址,而不会被拒绝为垃圾邮件?

  2. 如果后缀只是为了充当智能主机而实现的,我们还需要传输图吗?

  3. 我需要在哪里获得有效的 mx 记录?我曾经设置过一个主机来使用 gmail 发送电子邮件,没有问题,但这里的中继主机只是一个内部 IP 地址?

    我发现以下配置及其对应的条目如下 a) /etc/postfix/relay_domains

    abc.com  OK
    xyz.com OK
    

    b)

    /etc/postfix/transport abc.com smtp:[mail1.someinternalhost.internal]:7575 xyz.com smtp:[mail1.someinternalhost.internal]:7575
    

    C)/etc/postfix/spf_domains

    hhh.com   #domain
    kkk.com   #domain
    

    注意:在此文件中找到传输中列出的域。

    d)/etc/postfix/spf_transport

    hhh.com smtp:[mail1.someinternalhost]:7575
    kkk.com smtp:[mail1.someinternalhost]:7575
    

main.cf是:

relayhost = [172.16.25.90]:25  #just an internal ip????
relay_domains = hash:$config_directory/relay_domains, hash:/etc/postfix   /spf_domains
relay_transport = hash:$config_directory/transport, hash:/etc/postfix/spf_transport
smtpd_tls_security_level = may
smtp_tls_security_level = may
smtpd_tls_key_file = /etc/postfix/cert/wildcard.xxx.com.key
smtpd_tls_cert_file = /etc/postfix/cert/wildcard.xxx.com.cert
smtpd_tls_CAfile = /etc/postfix/cert/alphassl-intermediate.crt
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtpd_tls_received_header = yes
smtpd_tls_loglevel = 1

有人能解释一下这里发生了什么吗?我想我知道 SPF 的作用,所以不需要解释它是什么。:)

提前向好心人表示衷心的感谢。

/B

答案1

Relayhost 值覆盖所有 mx 转换,任何非本地或传输图中的内容都将转到那里。

传输图看起来就像是专门路由了这些域,很可能是为了阻止内部电子邮件从出站系统发出。

中继主机将适用于发往此 Postfix 信箱的所有电子邮件。

相关内容