
Ich habe bereits die stabile Version von Elastix 3 (Postfix, Cyrus SASL2) installiert. Ich verwende es als E-Mail-Server in meinem lokalen Netzwerk. Hier funktioniert alles wie folgt:
- E-Mail von lokal an lokal senden =OK!
- E-Mail von lokal nach extern senden =OK!
- E-Mails empfangen (die lokal gesendet wurden) =OK!
- E-Mail erhalten (dasGesendetausDraußen) =NEIN! ***
Tatsächlich besteht das einzige Problem darin, dass ich keine E-Mails von außerhalb in meinem Posteingang empfangen kann, jedoch kann ich bereits E-Mails empfangen, die vom lokalen Netzwerk gesendet wurden. Ich fürchte, was das Problem ist. Aber ich wäre dankbar, wenn mir jemand bei diesem Problem helfen könnte. Die Dateien master.cf und main.cf sind auch wie unten, ich weiß nicht, ob ich eine andere Konfiguration vornehmen sollte. Beachten Sie auch, dasses scheint, dass mein ISP Port 25 blockiert, also verwende ich einen anderen Port als SMTP.
usw/postfix/Main.cf(fast ohne Kommentar)
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
usw/postfix/Master.cf(fast ohne Kommentar)
# 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
Vielen Dank.
Antwort1
Ich habe die Antwort gefunden. Das Problem liegt eigentlich nicht am Mailserver. Es scheint, dass Port 25 sollte offen seinfürEmpfangen von Mails von außerhalb.ohne das geht es nicht. Ich habe auch in anderen Foren schon etwas darüber gelesen, aber ich konnte nicht verstehen, wie wichtig es ist. Nachdem die Sperre aufgehoben war, wurden die externen E-Mails gut empfangen. Ich möchte nur meine Lösung und die Antwort, die ich bekommen habe, mit Ihnen teilen. :)