Debianのeximのメールをgmailを使って転送する方法のメモ

# exim4 (with gmail http://wiki.debian.org/GmailAndExim4)
dpkg-reconfigure exim4-config
  General type of mail configuration:
    mail sent by smarthost; received via SMTP or fetchmail
  System mail name:
    localhost
  IP-addresses to listen on for incoming SMTP connections:
    127.0.0.1
  Other destinations for which mail is accepted:
    (blank)
  Machines to relay mail for:
    (blank)
  IP address or host name of the outgoing smarthost:
    smtp.gmail.com::587
  Hide local mail name in outgoing mail?
    No
  Keep number of DNS-queries minimal (Dial-on-Demand)?
    No
  Delivery method for local mail:
    mbox format in /var/mail/
  Split configuration into small files?
    No
vi /etc/exim4/passwd.client
chown root:Debian-exim /etc/exim4/passwd.client
vi /etc/aliases # 自分宛やroot宛のメールをgoogleに転送する場合
  root: user1234
  user1234: user1234@gmail.com
update-exim4.conf