Using Exim4 to send Messages through GMail
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: e.g. company.com
-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): smtp.gmail.com::587
-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
# editor /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
Run # chown root:Debian-exim /etc/exim4/passwd.client
Finally for all versions of Debian, run
# update-exim4.conf
Źródło..
poniedziałek, 4 maja 2009
Subskrybuj:
Komentarze do posta (Atom)
Brak komentarzy:
Prześlij komentarz