2017-04-07 10 views
-2

私はpostfixを初めて使用しています。私のubuntuサーバーのMTAとしてpostfixをインストールしようとしました。ただし、メール-sと私の個人的なメールに電子メールを送信するには、私は メールは外部のメールアカウントに転送されません

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 

の下を参照してください

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 

しかし、メールが私の個人的に配信されることはありません:main.cfには以下のようになります。メールボックス。入力を気に入ってください。

答えて

0

問題は、サーバーにFQDNがありませんでした。私はhostsファイルでそれを設定し、 "hostname ubuntu.local"を使って設定しました。メールの転送は正常に動作します。

関連する問題