-   Linux - General (
-   -   Outgoing Email Alias? (

instrumentpilot 05-08-2009 10:56 AM

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

Poetics 05-08-2009 11:38 AM

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?

instrumentpilot 05-08-2009 11:45 AM

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

datopdog 05-08-2009 12:16 PM

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

All times are GMT -5. The time now is 07:53 AM.