所有传入电子邮件的后缀“中继访问被拒绝”

所有传入电子邮件的后缀“中继访问被拒绝”

请帮忙找出我在 postfix 配置中做错了什么。当我尝试从 gmail 发送测试电子邮件时,我在 /var/syslog 中收到此错误

Oct 24 16:20:57 DBHOST postfix/smtpd[31511]: connect from mail-vc0-f180.google.com[209.85.220.180]
Oct 24 16:20:58 DBHOST postfix/smtpd[31511]: NOQUEUE: reject: RCPT from mail-vc0-f180.google.com[209.85.220.180]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-vc0-f180.google.com>
Oct 24 16:20:58 DBHOST postfix/smtpd[31511]: disconnect from mail-vc0-f180.google.com[209.85.220.180]


**@ postconf -n**
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    bounce_queue_lifetime = 2h
    config_directory = /etc/postfix
    *inet_interfaces = IP:1 IP:2 localhost*
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    milter_default_action = accept
    milter_protocol = 2
    mydestination = $mydomain, localhost, localhost.localdomain
    myhostname = server.com
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 85.254.49.128 85.254.49.129
    myorigin = /etc/mailname
    non_smtpd_milters = inet:localhost:8891
    readme_directory = no
    recipient_delimiter = +
    relayhost =
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname ESMTP
    smtpd_helo_required = yes
    smtpd_milters = inet:localhost:8891
    smtpd_recipient_restrictions = reject_non_fqdn_recipient        reject_non_fqdn_sender  reject_unknown_sender_domain    reject_unknown_recipient_domain permit_mynetworks       reject_unauth_destination  check_recipient_access hash:/etc/postfix/roleaccount_exceptions  reject_non_fqdn_hostname        reject_invalid_hostname check_sender_mx_access cidr:/etc/postfix/bogus_mx       permit
    smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
    transport_maps = hash:/etc/postfix/transport
    virtual_alias_maps = hash:/etc/postfix/virtual_aliases

**cat/etc/postfix/transport**
[email protected]   bouncepipe
[email protected]   bouncepipe
[email protected]   bouncepipe

**cat /etc/postfix/virtual_aliases**
@g01.server.com         [email protected]

答案1

mydomain=g01.server.com

您可以在该服务器上发布域名命令的输出吗?

相关内容