How do I configure exim4 to send mail through a password protected ssl smtp mail server?

Stephen Ostermiller

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.

Stephen Ostermiller

私はついに、実際に機能するTonyScelfoによる詳細な一連の指示を見つけましたポート587でトランスポート層セキュリティ(TLS)を使用する必要があるようです。SSLSMTPが機能していません。

最初に実行してsudo dpkg-reconfigure exim4-config次の構成オプションを使用します。

  • メール構成の一般的なタイプ:スマートホストによって送信されるメール。SMTPまたはfetchmail経由で受信
  • システムメール名: <ホスト名>
  • 着信SMTP接続をリッスンするIPアドレス: 127.0.0.1
  • メールが受け入れられる他の宛先: <あなたのホスト名>
  • メールを中継するマシン: <これを空白のままにする>
  • 発信スマートホストのIPアドレスまたはホスト名: mail.example.com :: 587
  • 送信メールでローカルメール名を非表示にしますか?
    • はい-すべての送信メールはGmailアカウントから送信されたように見えます
    • いいえ-有効な送信者名ヘッダーを付けて送信されたメールは、送信者の名前を保持します
  • DNSクエリの数を最小限に抑えますか(ダイヤルオンデマンド)?番号
  • ローカルメールの配信方法: <お好みのものを選択>
  • 構成ファイルを小さなファイルに分割しますか?はい(次にファイルの1つを編集する必要があります)

次に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]

編集
0

コメントを追加

0

関連記事

分類Dev

How do I tell Prometheus' Alertmanager to send email through Gmail's SMTP server

分類Dev

How do I add script to the mail send using phpmailer?

分類Dev

How to send mail from Ubuntu server using dockerized mail server

分類Dev

Why mail clients do not use directly the SMTP server of recipient

分類Dev

Drupal how to send a mail

分類Dev

How do I set up Emacs on Linux to read/send mail from Gmail?

分類Dev

How to send e-mail from Ubuntu server?

分類Dev

How do I access a password protected share from nautilus?

分類Dev

How do I decrypt a password-protected PDF on OSX?

分類Dev

How to send mail depending on stdout?

分類Dev

How do I configure rsyslog to send logs from a specific program to a remote syslog server?

分類Dev

How to send text within password element in https://e.mail.ru/login using Selenium and Python

分類Dev

How to generate one time password when creating user and send the same to users mail id in Django?

分類Dev

how do i send an email through joomla

分類Dev

phpmailer working on localhost but when i upload it on my ubuntu server it gives me error and mail is not sending(I am using gmail smtp)

分類Dev

I need to send mail for multiple recipients

分類Dev

How to configure mail on Azure SQL Database

分類Dev

How do I view an ics file from a Calender invite mail?

分類Dev

How do I manage multiple e-mail addresses with GnuPG?

分類Dev

How do I print blank fields in mail merge in Word 2016

分類Dev

How do I know the last time an e-mail was used

分類Dev

how to send mail with javamail and postfix/dovecot

分類Dev

How to send php mail with international recipient

分類Dev

MVC Application cannot send mail through local HMailServer

分類Dev

How to safely remove Exim4 on CentOS?

分類Dev

Send mail at startup

分類Dev

Send Mail with Outlook 365

分類Dev

Debian:exim、Maildir、mail

分類Dev

Why I can't send mail to remote mailbox?

Related 関連記事

  1. 1

    How do I tell Prometheus' Alertmanager to send email through Gmail's SMTP server

  2. 2

    How do I add script to the mail send using phpmailer?

  3. 3

    How to send mail from Ubuntu server using dockerized mail server

  4. 4

    Why mail clients do not use directly the SMTP server of recipient

  5. 5

    Drupal how to send a mail

  6. 6

    How do I set up Emacs on Linux to read/send mail from Gmail?

  7. 7

    How to send e-mail from Ubuntu server?

  8. 8

    How do I access a password protected share from nautilus?

  9. 9

    How do I decrypt a password-protected PDF on OSX?

  10. 10

    How to send mail depending on stdout?

  11. 11

    How do I configure rsyslog to send logs from a specific program to a remote syslog server?

  12. 12

    How to send text within password element in https://e.mail.ru/login using Selenium and Python

  13. 13

    How to generate one time password when creating user and send the same to users mail id in Django?

  14. 14

    how do i send an email through joomla

  15. 15

    phpmailer working on localhost but when i upload it on my ubuntu server it gives me error and mail is not sending(I am using gmail smtp)

  16. 16

    I need to send mail for multiple recipients

  17. 17

    How to configure mail on Azure SQL Database

  18. 18

    How do I view an ics file from a Calender invite mail?

  19. 19

    How do I manage multiple e-mail addresses with GnuPG?

  20. 20

    How do I print blank fields in mail merge in Word 2016

  21. 21

    How do I know the last time an e-mail was used

  22. 22

    how to send mail with javamail and postfix/dovecot

  23. 23

    How to send php mail with international recipient

  24. 24

    MVC Application cannot send mail through local HMailServer

  25. 25

    How to safely remove Exim4 on CentOS?

  26. 26

    Send mail at startup

  27. 27

    Send Mail with Outlook 365

  28. 28

    Debian:exim、Maildir、mail

  29. 29

    Why I can't send mail to remote mailbox?

ホットタグ

アーカイブ