Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@tukiyo3

exim4 でメール送信

More than 5 years have passed since last update.

参考

サーバーからのメール通知を受け取りたいだけなので以下のみ設定。

設定

再設定
$ sudo dpkg-reconfigure exim4-config

もしくは以下変更

/etc/exim4/update-exim4.conf.conf
-dc_eximconfig_configtype='local'
+dc_eximconfig_configtype='internet'
smarthostの指定方法
-dc_smarthost=''
+dc_smarthost='11.22.33.44'
exim4再起動
$ sudo /etc/init.d/exim4 restart

動作確認

送信確認
$ date | sendmail -f 送信@者 宛@先
もしくは
$ date | mail 宛@先
ログ確認
$ tail -f /var/log/exim4/mainlog
mail_que削除
exim -Mrm 1ZQSYj-0002jL-M0
1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
tukiyo3

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?