2017-04-07 8 views
-2

postfix를 처음 사용합니다. 내 우분투 서버에 대한 MTA로 접미사 설치를 시도했습니다. main.cf은 다음과 같습니다 : 메일 -s 내 개인 메일로 이메일을 보내에외부 전자 메일 계정으로 메일이 전달되지 않습니다.

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) 
biff = no 
append_dot_mydomain = no 
readme_directory = no 

smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt 
smtpd_tls_key_file = /etc/ssl/private/smtpd.key 
smtpd_use_tls=yes 
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache 
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache 

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination 
myhostname = ubuntu 
alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases 
mydestination = $myhostname, ubuntu, localhost.localdomain, , localhost 
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 
mailbox_size_limit = 0 
recipient_delimiter = + 
inet_interfaces = all 
inet_protocols = all 
myorigin = 
home_mailbox = Maildir/ 
mailbox_command = 
smtpd_sasl_local_domain = 
smtpd_sasl_auth_enable = yes 
smtpd_sasl_security_options = noanonymous 
broken_sasl_auth_clients = yes 
smtp_tls_security_level = may 
smtpd_tls_security_level = may 
smtpd_tls_auth_only = no 
smtp_tls_note_starttls_offer = yes 
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem 
smtpd_tls_loglevel = 1 
smtpd_tls_received_header = yes 
smtpd_tls_session_cache_timeout = 3600s 
tls_random_source = dev:/dev/urandom 

하지만, 내가 볼

Apr 07 00:56:52 ubuntu postfix/pickup[3901]: 4C0E8BA0029: uid=1000 from=<[email protected]> 
Apr 07 00:56:52 ubuntu postfix/cleanup[7717]: 4C0E8BA0029: message-id=<[email protected]> 
Apr 07 00:56:52 ubuntu postfix/qmgr[4899]: 4C0E8BA0029: from=<[email protected]>, size=322, nrcpt=1 (queue active) 
Apr 07 00:56:52 ubuntu postfix/smtp[7719]: 4C0E8BA0029: to=<[email protected]>, relay=xx.xxxxxxxx.xxxx.com[xx.xxx.xxx.xxx]:25, delay=0.35, delays=0.07/0/0.19/0.08, dsn=2.0.0, status=sent (250 ok: Message 84730726 accepted) 
Apr 07 00:56:52 ubuntu postfix/qmgr[4899]: 4C0E8BA0029: removed 

하지만 메일이 개인에게 전달되지 않습니다 아래 메일 상자. 입력을 감사하십시오.

답변

0

문제는 서버에 FQDN이 누락되었습니다. 호스트 파일에서 설정하고 "hostname ubuntu.local"을 사용하여 설정했습니다. 메일 전달은 이제 정상적으로 작동합니다.