LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-29-2009, 01:01 PM   #1
tdnnash25
Member
 
Registered: Apr 2009
Posts: 63

Rep: Reputation: 15
Question How to change exim4 From address


I have a couple debian servers using exim4 as their mta. When mail is sent, the from address is just 'root'. I want the from to say 'host1@domain.com', and 'host2@domain.com', where host is the hostname and domain is my domain.

Make sense? I can't seem to get this to behave the way I want it to.
 
Old 12-29-2009, 04:37 PM   #2
tdnnash25
Member
 
Registered: Apr 2009
Posts: 63

Original Poster
Rep: Reputation: 15
fixed

Quote:
Originally Posted by tdnnash25 View Post
I have a couple debian servers using exim4 as their mta. When mail is sent, the from address is just 'root'. I want the from to say 'host1@domain.com', and 'host2@domain.com', where host is the hostname and domain is my domain.

Make sense? I can't seem to get this to behave the way I want it to.
Actually what I was after was changing the header of the email, not the actual From address. So, I found out how. Edit /etc/email-addresses and add this line, save, and voila:
root: root@servername

No need to restart exim4

Just thought I'd post this in case anyone else was interested.
 
  


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
Change ip address rust8y Linux - Networking 1 10-04-2007 01:58 AM
change exim4 ident= in sent mail matix Linux - Software 0 07-07-2005 05:02 AM
How do i change the exim4 port? ultramancool Linux - Software 1 03-23-2005 10:19 PM
exim4 exim4, setup debian tongueroo Linux - Networking 1 11-09-2004 04:12 AM
Change IP address ust Linux - Networking 5 06-12-2003 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:44 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