Elastix 中从外部接收电子邮件的问题

Elastix 中从外部接收电子邮件的问题

我已经安装了 elastix 3 稳定版 (postfix, cyrus sasl2)。我将其用作本地网络中的电子邮件服务器。这里一切运行如下:

  • 从本地向本地发送电子邮件 =好的!
  • 从本地向外部发送电子邮件 =好的!
  • 接收电子邮件(从本地发送)=好的!
  • 接收电子邮件(发送外部) =不! ***

事实上,唯一的问题是我无法在收件箱中收到从外部发送的电子邮件,但是我已经可以在收件箱中收到从本地网络发送的邮件。我担心这个问题出了什么问题。但如果有人能帮助我解决这个问题,我将不胜感激。master.cf 和 main.cf 文件也如下所示,我不知道我是否应该进行任何其他配置。还请注意看来我的 ISP 阻止了端口 25,所以我使用另一个端口作为 smtp。

等/后缀/主配置文件(几乎没有评论)

    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    data_directory = /var/lib/postfix
    mail_owner = postfix
    myhostname = mail.cqnordica.com
    mydomain = cqnordica.com
    myorigin = $mydomain
    inet_interfaces = all
    mydestination = $myhostname, localhost.$mydomain, localhost
    unknown_local_recipient_reject_code = 550
    mynetworks_style = class
    mynetworks = 192.168.0.0/24, 127.0.0.0/8
    debug_peer_level = 2
    debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     ddd $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix-2.5.6/samples
    readme_directory = /usr/share/doc/postfix-2.5.6/README_FILES
    virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp
    virtual_mailbox_domains = cqnordica.com
    # added by myself 
    smtpd_sasl_path = smtpd
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $myhostname
    broken_sasl_auth_clients = yes
    #smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
    smtpd_recipient_restrictions =
            permit_mynetworks,
            permit_sasl_authenticated,
            reject_unauth_destination

等/后缀/主控文件(几乎没有评论)

    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    # ==========================================================================
    2599      inet  n       -       n       -       -       smtpd
    submission inet n       -       n       -       -       smtpd
      -o smtpd_tls_security_level=encrypt
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    smtps     inet  n       -       n       -       -       smtpd
    #  -o smtpd_tls_wrappermode=yes
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    #628      inet  n       -       n       -       -       qmqpd
    pickup    fifo  n       -       n       60      1       pickup
    cleanup   unix  n       -       n       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    #qmgr     fifo  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       n       1000?   1       tlsmgr
    rewrite   unix  -       -       n       -       -       trivial-rewrite
    bounce    unix  -       -       n       -       0       bounce
    defer     unix  -       -       n       -       0       bounce
    trace     unix  -       -       n       -       0       bounce
    verify    unix  -       -       n       -       1       verify
    flush     unix  n       -       n       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       n       -       -       smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       n       -       -       showq
    error     unix  -       -       n       -       -       error
    retry     unix  -       -       n       -       -       error
    discard   unix  -       -       n       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       n       -       -       lmtp
    anvil     unix  -       -       n       -       1       anvil
    scache    unix  -       -       n       -       1       scache

非常感谢。

答案1

我找到了答案。问题实际上与邮件服务器无关。似乎是端口 25 应该开放为了接收外部邮件没有这个,它就不起作用。我已经在其他论坛上看到过一些关于它的内容,但我无法想象它有多重要。一旦它被解封,外部电子邮件就会收到。我只想分享我的解决方案和我得到的答案。:)

相关内容