LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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: 588

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
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


All times are GMT -5. The time now is 01:13 AM.

Main Menu
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