メールの設定

LS-XHL

ちょっと Web サーバが必要になって、 死蔵している LS-XHL を Web サーバに仕立てることにした。

設定を進める。次は メールの設定

インストールの確認

root@brick:~# dpkg -l exim
dpkg-query: no packages found matching exim
root@brick:~# dpkg -l | grep exim
root@brick:~#
インストールされていないのでインストールする。
root@brick:~# apt-get install exim4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  exim4-base exim4-config exim4-daemon-light heirloom-mailx libpcre3
Suggested packages:
  mail-reader eximon4 exim4-doc-html exim4-doc-info gnutls-bin openssl file
  spf-tools-perl swaks
Recommended packages:
  mailx
The following NEW packages will be installed:
  exim4 exim4-base exim4-config exim4-daemon-light heirloom-mailx libpcre3
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 2646 kB of archives.
After this operation, 4720 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org/debian/ wheezy/main libpcre3 armel 1:8.30-5 [241 kB]
Get:2 http://ftp.jp.debian.org/debian/ wheezy/main exim4-config all 4.80-7+deb7u1 [478 kB]
Get:3 http://ftp.jp.debian.org/debian/ wheezy/main exim4-base armel 4.80-7+deb7u1 [1028 kB]
Get:4 http://ftp.jp.debian.org/debian/ wheezy/main exim4-daemon-light armel 4.80-7+deb7u1 [633 kB]
Get:5 http://ftp.jp.debian.org/debian/ wheezy/main exim4 all 4.80-7+deb7u1 [7808 B]
Get:6 http://ftp.jp.debian.org/debian/ wheezy/main heirloom-mailx armel 12.5-2 [257 kB]
Fetched 2646 kB in 1s (1803 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libpcre3:armel.
(Reading database ... 14718 files and directories currently installed.)
Unpacking libpcre3:armel (from .../libpcre3_1%3a8.30-5_armel.deb) ...
Selecting previously unselected package exim4-config.
Unpacking exim4-config (from .../exim4-config_4.80-7+deb7u1_all.deb) ...
Selecting previously unselected package exim4-base.
Unpacking exim4-base (from .../exim4-base_4.80-7+deb7u1_armel.deb) ...
Selecting previously unselected package exim4-daemon-light.
Unpacking exim4-daemon-light (from .../exim4-daemon-light_4.80-7+deb7u1_armel.deb) ...
Selecting previously unselected package exim4.
Unpacking exim4 (from .../exim4_4.80-7+deb7u1_all.deb) ...
Selecting previously unselected package heirloom-mailx.
Unpacking heirloom-mailx (from .../heirloom-mailx_12.5-2_armel.deb) ...
Processing triggers for man-db ...
Setting up libpcre3:armel (1:8.30-5) ...
Setting up exim4-config (4.80-7+deb7u1) ...
Adding system-user for exim (v4)
Setting up exim4-base (4.80-7+deb7u1) ...
exim: DB upgrade, deleting hints-db
Setting up exim4-daemon-light (4.80-7+deb7u1) ...
[ ok ] Starting MTA: exim4.
ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken
Setting up exim4 (4.80-7+deb7u1) ...
Setting up heirloom-mailx (12.5-2) ...
update-alternatives: using /usr/bin/heirloom-mailx to provide /usr/bin/mailx (mailx) in auto mode
!root@brick:~#
何故に初期インストールなのに panic ログが残る??
root@brick:~# cat /var/log/exim4/paniclog
2014-10-26 00:03:52 IPv6 socket creation failed: No such file or directory
root@brick:~#
謎。
root@brick:~# rm !$
rm /var/log/exim4/paniclog
root@brick:~#

セットアップ

root@brick:~# dpkg-reconfigure exim4-config

必要事項を入力して
[ ok ] Stopping MTA for restart:.
[ ok ] Restarting MTA: exim4.
root@brick:~#

確認

root@brick:~# Mail yasunari @ yamasita.jp
Subject: test to yasunari
test to yasunari
EOT
root@brick:~#
(一部改変) OK

LS-XHL
バッファローダイレクト
楽天市場
amazon
ValuMore


ハックキットの設定
ハックの記録
LinkStation/玄箱 をハックしよう

ファン制御の確認

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

Copyright (C) 2003-2014 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市