나는 팔로우한다이것튜토리얼 및 이메일 클라이언트에서 구성할 수 있는 메일 계정 생성 가능.
문제는받은 편지함에 메시지가 전혀 수신되지 않지만 완벽하게 보낼 수 있습니다.. 지메일에서 새로 만든 계정으로 이메일을 보내려고 했는데, 아래 이미지와 같이 자동으로 지메일로 전송되는 오류 메시지를 받았습니다.
이것은 내 구성입니다 /etc/postfix/main.cf
.
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = localhost
mydestination = $myhostname, dougb3ney.com, localhost
unknown_local_recipient_reject_code = 550
alias_database = hash:/etc/aliases
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.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
myhostname = mail.dougb3ney.com
mydomain = dougb3ney.com
myorigin = $mydomain
home_mailbox = mail/
mynetworks = 127.0.0.0/8
inet_interfaces = all
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reje$
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_key_file = /etc/postfix/ssl/server.key
smtpd_tls_cert_file = /etc/postfix/ssl/server.crt
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
milter_protocol = 2
반품,실행 중인 CentOS 서버에는 mail.dougb3ney.com에 대한 A 레코드가 있습니다.
고쳐 쓰다: 메시지가 받은편지함에 여전히 표시되지 않지만 보낸 사람은 더 이상 실패 메시지를 받지 않습니다.
아직도 이상한 오류가 발생합니다/var/log/maillog
Nov 10 17:07:27 mail dovecot: pop3-login: Login: user=<email>, method=PLAIN, rip=33.23.4.250, lip=162.243.7.7, mpid=10638, TLS, session=<p1By7zYkXgBgJwT6>
Nov 10 17:07:27 mail dovecot: pop3(email): Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=1235
Nov 10 17:08:12 mail postfix/submission/smtpd[10653]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Nov 10 17:08:12 mail postfix/submission/smtpd[10653]: warning: cannot get RSA certificate from file /etc/ssl/certs/ssl-mail.pem: disabling TLS support
Nov 10 17:08:12 mail postfix/submission/smtpd[10653]: warning: TLS library problem: 10653:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/etc/ssl/certs/ssl-mail.pem','r'):
Nov 10 17:08:12 mail postfix/submission/smtpd[10653]: warning: TLS library problem: 10653:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
Nov 10 17:08:12 mail postfix/submission/smtpd[10653]: warning: TLS library problem: 10653:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:722:
Nov 10 17:08:12 mail postfix/submission/smtpd[10653]: connect from mail-qk0-f173.google.com[209.85.220.173]
Nov 10 17:08:12 mail postfix/submission/smtpd[10653]: lost connection after STARTTLS from mail-qk0-f173.google.com[209.85.220.173]
Nov 10 17:08:12 mail postfix/cleanup[10656]: E3BF73FD10: message-id=<[email protected]>
Nov 10 17:08:12 mail postfix/qmgr[10564]: E3BF73FD10: from=<[email protected]>, size=904, nrcpt=1 (queue active)
Nov 10 17:08:12 mail postfix/submission/smtpd[10653]: disconnect from mail-qk0-f173.google.com[209.85.220.173]
Nov 10 17:08:12 mail postfix/local[10658]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Nov 10 17:08:12 mail postfix/local[10658]: E3BF73FD10: to=<[email protected]>, orig_to=<postmaster>, relay=local, delay=0.04, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Nov 10 17:08:12 mail postfix/qmgr[10564]: E3BF73FD10: removed
Nov 10 17:08:26 mail dovecot: pop3-login: Login: user=<email>, method=PLAIN, rip=33.23.4.250, lip=162.243.7.7, mpid=10664, TLS, session=<f4P68jYkaABgJwT6>
Nov 10 17:08:27 mail dovecot: pop3(email): Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=1235
답변1
permit_auth_destination
( smtpd_recipient_restrictions
와 사이에 permit_mynetworks
) 를 넣어보세요 reject
.
이것이 없으면 로컬 네트워크에서 메일을 보낼 수 있지만 postfix가 특정 메일(예를 들어 도메인의 경우)을 수락할 수 있다는 것을 알려주는 것은 없습니다.
또는 다음 reject
으로 변경하세요.reject_unauth_destination, permit
즉, 다음이 필요합니다.
...,permit_auth_destination,reject
또는
...,reject_unauth_destination,permit