Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password 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.


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

Rep: Reputation: 45
exim4 sends with

I was struggling for a while trying to send my mails using 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 ''
  4. Select the other options in a meaningful way
  5. Now edit the file /etc/exim4/passwd.client and add the lines:
    You do not have to specify '' 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:
    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


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 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 > Forums > Linux Forums > Linux - General > Member Success Stories

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

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