LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > jere21
User Name
Password

Notices

Rate this Entry

exim4 with smtp googlemail on Debian Squeeze

Posted 08-17-2010 at 12:43 PM by jere21
Updated 10-03-2010 at 05:07 PM by jere21

Send a test mail
Code:
$ mail test@example.com
[...]
.
Mail will be From: [username on localhost] <googleusername@googlemail.com>
Mail will often be dumped, if recipient is not googleusername@googlemail.com

Code:
$ dpkg -l "exim4*"|grep ^ii
ii  exim4               4.72-1  metapackage to ease Exim MTA (v4) installation
ii  exim4-base          4.72-1  support files for all Exim MTA (v4) packages
ii  exim4-config        4.72-1  configuration for the Exim MTA (v4)
ii  exim4-daemon-light  4.72-1  lightweight Exim MTA (v4) daemon
Configuration
Code:
sudo dpkg-reconfigure exim4-config
Code:
General type of configuration: mail sent by smarthost; received by SMTP or fetchmail
System mail name: bastard.fritz.box
IP-addresses to listen on for incoming SMTP connections: 127.0.0.1 ; ::1
Other destinations for which mail is accepted: [leave blank]
Machines to relay mail for:  [leave blank]
IP address or hostname of the outgoing smarthost: smtp.gmail.com::587 (not 465!)
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
Code:
sudo editor /etc/exim4/passwd.client
Code:
*.google.com:googleusername@googlemail.com:PASSWORD
Code:
sudo update-exim4.conf
Posted in Uncategorized
Views 1802 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:07 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration