Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 11, 2011 12:09 am 
Offline
Senior Newbie

Joined: Wed Mar 17, 2010 3:31 pm
Posts: 16
I followed the linode library article of setting up Exim4 on Ubuntu 10.04. I am able to send e-mail out fine.

My question is how do I specify a different "From" address for the e-mail on the command line?

I am doing this for simple testing purposes and the fact that I have multiple domains pointing to the same server.


Top
   
 Post subject:
PostPosted: Tue Oct 11, 2011 12:19 am 
Offline
Senior Newbie

Joined: Fri Sep 16, 2011 2:26 am
Posts: 5
Location: Minnesota, USA
Twitter: TonyYarusso
mail -a "From: Fake Person <fakey@gmail.com>"


Top
   
 Post subject:
PostPosted: Tue Oct 11, 2011 1:01 am 
Offline
Senior Newbie

Joined: Wed Mar 17, 2010 3:31 pm
Posts: 16
Thank you! That worked. After testing this it brought up another question. When viewing the raw text of the e-mail message sent using this it will show it came from my original domain name (what is displayed by hostname -f):
Received: from mydomain.com ([72.14.xxx.xxx])

Is it possible for it to show the domain that I am actually sending from? I have two virtual hosts/domains served by Apache and the "Received: from" would always indicate the hostname -f even when I send an e-mail that is supposed to appear from the other domain. The From field displayed in the e-mail client does display correctly.


Top
   
 Post subject:
PostPosted: Tue Oct 11, 2011 8:46 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Not generally; your system has one hostname, which is used to identify itself whenever it needs to know its name. The best workaround might be to use a hostname under another, neutral domain (like a domain for your company/department, if other companies or departments are your "customers"). If worse comes to worse, the default lixxx-yyy.members.linode.com hostname works too.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group