Template for Help Pages

Debian ships default with Exim4 as a mail server. To use this to send messages through Google's smtp servers for GMail accounts, you need to do the following.

# dpkg-reconfigure exim4-config

-Choose YES, split configuration into small files

-Choose mail sent by SMARTHOST; received via SMTP or fetchmail

-Type System Mail Name: localhost

-Type IP Adresses to listen on for incoming SMTP connections: 127.0.0.1

-Leave Other destinations for which mail is accepted blank

-Leave Machines to relay mail for: blank

-Type Machine handling outgoing mail for this host (smarthost): smpt.gmail.com

-Choose NO, don't hide local mail name in outgoing mail.

-Chose NO, don't keep number of DNS-queries minimal (Dial-on-Demand).

Run

# vi /etc/exim4/passwd.client

and add the following lines:

{{{gmail-smtp.l.google.com:yourAccountName@gmail.com:y0uRpaSsw0RD

*.google.com:yourAccountName@gmail.com:y0uRpaSsw0RD

smtp.gmail.com:yourAccountName@gmail.com:y0uRpaSsw0RD}}}

Next, tell it what port to try. Run

# vi /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_smarthost

and add the following line after the line containing "hosts_try_auth..."

port=587

Finally, run

# update-exim4.conf

Good luck.

Example

xxx

Display

xxx