2013-03-05 65 views
1

問題是我能夠將[email protected]發送到外部域,但是所有來自外部的郵件([email protected])都沒有到達我的域名郵件IDS。我不確定我犯了什麼錯誤。Postfix無法接收來自外部域的郵件

這是我的postfix main.cf:

inet_protocols = all 
    myhostname = mail.changed.com 
    mynetworks = 127.0.0.0/8 
    message_size_limit = 30720000 
    virtual_alias_domains = 
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf 
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf 
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf 
    virtual_mailbox_base = /home/vmail 
    virtual_uid_maps = static:5000 
    virtual_gid_maps = static:5000 
    smtpd_sasl_type = dovecot 
    smtpd_sasl_path = private/auth 
    smtpd_sasl_auth_enable = yes 
    broken_sasl_auth_clients = yes 
    smtpd_sasl_authenticated_header = yes 
    smtpd_recipient_restrictions = permit_mynetworks , permit_sasl_authenticated,  reject_unauth_destination, reject_unknown_sender_domain,       
       reject_unknown_recipient_domain,        
       reject_non_fqdn_sender,        
       reject_non_fqdn_recipient,       
       permit_mynetworks, permit_sasl_authenticated,       
       reject_unauth_destination,        
       reject_non_fqdn_helo_hostname,       
       reject_invalid_helo_hostname, 
      check_policy_service inet:127.0.0.1:60000 

    smtpd_use_tls = yes 
    smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem 
    smtpd_tls_key_file = /etc/ssl/private/postfix.pem 
    virtual_create_maildirsize = yes 
    virtual_maildir_extended = yes 
    virtual_transport = dovecot 
    dovecot_destination_recipient_limit = 1 
    smtpd_tls_auth_only = no 

我有強烈的感覺,什麼是錯的smtpd_recipient_restrictions

451 4.3.5服務器配置錯誤對所有的Gmail IDS

回答

4

已修復:

我評論了下面的內容,問題已解決。我現在能夠從外部域接收郵件。 #check_policy_service inet:127.0.0.1:60000 in smtpd_recipient_restrictions