
저는 이미 elastix 3 안정 버전(postfix, cyrus sasl2)을 설치했습니다. 로컬 네트워크에서 이메일 서버로 사용하고 있습니다. 여기에서는 모든 것이 다음과 같이 작동합니다.
- 로컬에서 로컬로 이메일 보내기 =좋아요!
- 로컬에서 외부로 이메일 보내기 =좋아요!
- 이메일 수신(로컬에서 보낸 것) =좋아요!
- 이메일 수신(그전송된~에서밖의) =아니요! ***
사실 문제는 외부에서 보낸 이메일을 내 받은 편지함에서 받을 수 없었지만 로컬 네트워크에서 보낸 메일은 이미 내 받은 편지함에서 받을 수 있다는 것입니다. 문제가 무엇인지 걱정됩니다. 하지만 이 문제가 발생하는 동안 누구든지 나를 도와주시면 감사하겠습니다. master.cf 및 main.cf 파일도 다음과 같습니다. 다른 구성이 필요한지 모르겠습니다. 또한내 ISP가 포트 25를 차단하는 것 같아요, 그래서 다른 포트를 smtp로 사용하고 있습니다.
기타/접미사/Main.cf(거의 코멘트 없음)
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
기타/접미사/마스터.cf(거의 코멘트 없음)
# 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인 것 같습니다 열려 있어야 한다~을 위한외부에서 메일을 받다.이것이 없으면 작동하지 않습니다. 나는 이미 다른 포럼에서도 이에 관한 내용을 보았지만 그것이 얼마나 중요한지 실감할 수 없었습니다. 차단이 해제되면 외부 이메일이 잘 수신되었습니다. 나는 내 솔루션을 공유하고 내가 얻은 답변을 원합니다. :)