I'd like my cronjobs to be able to send mail from my home computer. My servers configure exim4 like this:
dc_eximconfig_configtype='internet'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
However, at home, my ISP blocks mail sent directly via a firewall. I have a password proteced ssl smtp server that I could route the mail through, but I have been unsuccessful in figuring out how to configure exim4 to make this work. I'm hoping somebody can give me a configuration example where I can plug in the host name, user name, password, and "use ssl" to get it to send mail through a single smtp server.
私はついに、実際に機能するTonyScelfoによる詳細な一連の指示を見つけました。ポート587でトランスポート層セキュリティ(TLS)を使用する必要があるようです。SSLSMTPが機能していません。
最初に実行してsudo dpkg-reconfigure exim4-config
、次の構成オプションを使用します。
次にsudo vi /etc/exim4/passwd.client
、メールホストとそのエイリアス(を介して検出nslookup
)に対して次の行を実行して追加します。<メールアドレス>と<パスワード>を、メールをルーティングするアカウントに置き換えます):
mail.example.com:<email address>:<password>
mail.yourhosting.provider:<email address>:<password>
passwd.client
ファイルを編集したら、実行しsudo update-exim4.conf
て、変更をExim4構成に統合します。
実行sudo /etc/init.d/exim4 restart
し、サービスが正しく停止および開始することを確認します。サービスを再起動できない場合は、passwd.client
ファイルを編集したときに問題が発生した可能性があります。
Exim4が再起動した場合は、先に進んで実行sudo tail -f /var/log/exim4/mainlog
し、メールログを監視します。別のウィンドウで、システムから電子メールを送信し、レコードが通過するのを確認しますR=smarthost T=remote_smtp_smarthost H=gmail-smtp-msa.l.google.com ... X=TLS-1.0:RSA_ARCFOUR_MD5:16
。これX=TLS
は、メールが必要なトランスポート層セキュリティで送信されていることを意味します。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加