サーラリマンは働き過ぎ、社畜化に注意しよう!!

debian exim4 gmail install

debian
スポンサーリンク

# dpkg-reconfigure exim4-config

Choose “mail sent by smarthost; received via SMTP or fetchmail”
Set to “localhost” for “System mail name:”.
Set to “127.0.0.1” for “IP-addresses to listen on for incoming SMTP connections” to refuse external connections.
Leave as empty for “Other destinations for which mail is accepted:”.
Leave as empty for “Machines to relay mail for:”.
Set to “smtp.gmail.com::587” for “IP address or host name of the outgoing smarthost:”.
Choose “NO” for “Hide local mail name in outgoing mail?”.
Choose “NO” for “Keep number of DNS-queries minimal (Dial-on-Demand)?”.
Choose “mbox format in /var/mail/” for “Delivery method for local mail”.
Choose “YES” for “Split configuration into small files?”.

# vi /etc/exim4/passwd.client

smtp.gmail.com:<gmailメールアドレス>:<gmailのパスワード>

# chown root:Debian-exim /etc/exim4/passwd.client
# chmod 640 /etc/exim4/passwd.client

# vi /etc/email-addresses

ckenko25: ckenko25@gmail.com
ckenko25@localhost: ckenko25@gmail.com
ckenko25@<hostname>: ckenko25@gmail.com

# update-exim4.conf
# invoke-rc.d exim4 restart
# exim4 -qff

debug

# tail /var/log/exim4/mainlog

テスト

# echo "Test message" | mail <ユーザー名>@gmail.com
debian
スポンサーリンク
シェアする
ふじやんをフォローする
なんでもDIY

コメント