Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-08-2009, 11:56 AM   #1
Registered: May 2006
Posts: 34

Rep: Reputation: 2
Outgoing Email Alias?

Hello everyone,

Does anyone know if there is a way to alias an outgoing email? I hope I'm saying it right, but here is what I want.

I'm using sendmail for now. I want all emails being sent to to go to instead. This is for outgoing email, not incomming.

If anyone can help it is greatly appreciated.

Michael Cunningham
Old 05-08-2009, 12:38 PM   #2
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
So you mean that, when you send an email to it actually sends to Is sendmail configured to handle both and Have you looked into using local or sendmail aliases?
Old 05-08-2009, 12:45 PM   #3
Registered: May 2006
Posts: 34

Original Poster
Rep: Reputation: 2
Actually and are both external mail servers. Let's assume my email server is When I send email from to I want my email server to rewrite the TO address as

echo hello | mail -s test
I'd like the previous command to send mail to

Michael Cunningham
Old 05-08-2009, 01:16 PM   #4
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Yes you can do that using generics for both sendmail and postfix, as well as address rewriting for exim


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
outgoing email blocked ? Grub3r Linux - Software 7 03-02-2009 07:50 AM
Configuring Postfix for outgoing email jay0316 Linux - Software 1 10-20-2008 02:01 PM
My outgoing email is getting flagged as spam timyaukey Linux - Server 1 09-17-2007 07:35 PM
view the logfile of outgoing email mairul Red Hat 2 03-23-2004 10:01 PM
Editing outgoing email content senthil Linux - Software 0 06-13-2003 08:46 PM

All times are GMT -5. The time now is 03:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration