LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 09-10-2007, 11:22 PM   #1
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Rep: Reputation: 45
exim4 sends with smtp.gmail.com


I was struggling for a while trying to send my mails using smtp.gmail.com. I have a few debian boxes where the mail agent is exim4. It turned out to be quite simple:

run 'dpkg-reconfigure exim4-config'
  1. dpkg-reconfigure exim4-config
  2. select the computer type 'sending with smarthost'
  3. select the smarthost to be 'smtp.gmail.com::587'
  4. Select the other options in a meaningful way
  5. Now edit the file /etc/exim4/passwd.client and add the lines:
    Code:
    smtp.gmail.com:yourName:yourPassword
    gmail-smtp.l.google.com:yourName:yourPassword
    gmail-smtp-msa.l.google.com:yourName:yourPassword
    You do not have to specify '@gmail.com' part for the name. Do not leave spaces around the name and password.
  6. edit the file /etc/exim4/email-addresses (debian etch) or /etc/email-addresse (debian lenny) and add the line:
    Code:
    yourUserNameAtThisComputer: your@email.address
    This writes a meaningful sender address instead of user@localhost.
  7. /etc/init.d/exim4 restart
The relevent SMTP server name may change. Send a test letter and consult /var/log/exim4/mainlog

That's it! Enjoy!

Note: the mails will be sent with your gmail address as sender. However, reply-to address is what you write to the file email-addresses.

Last edited by otoomet; 01-26-2009 at 10:25 AM. Reason: update/minor mistake
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
EXIM4 configuration - SMTP relay bence8810 Linux - Server 7 12-30-2008 11:04 PM
Exim4 SMTP Relay richinsc Debian 4 03-25-2008 07:36 PM
how to make thunderbird use exim4 as SMTP? Blyiss Linux - Server 2 04-22-2007 11:31 PM
Setting up smtp authentication for exim4 explorer1979 Debian 2 02-21-2006 08:29 AM
exim4 SMTP client authentication: help! Peff Debian 1 08-05-2005 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 08:04 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
Open Source Consulting | Domain Registration