LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2005, 05:16 PM   #1
greenpython
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
"from" in mail command


Hello,

i'm stuck trying to figure out how to specify "from" user, using mail command.

Example:

~> whoami
user1

So if I send mail from my unix machine (domain testt.com):

echo "test" | mail someone@gmail.com

- someone@gmail.com gets email from user1@testt.com.

How can I specify "from" alias, so Outlook recepient sees "from" as, for example, "Your Pal", NOT user1@testt.com.

Thank you!

GP
 
Old 10-25-2005, 06:02 PM   #2
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
I don't think you can forge the sender using mail. To do that, consider the -f option of sendmail. Keep in mind that ...
Quote:
Sendmail is not intended as a user interface routine; other programs
provide user-friendly front ends; sendmail is used only to deliver pre-
formatted messages.
From the man page, sendmail(8). (edit: fixed typo)
If you want to go really low-level, you can also talk directly SMTP (port 25) to the recipient's MX agent.

Last edited by Quigi; 10-26-2005 at 09:27 AM.
 
Old 10-25-2005, 06:12 PM   #3
greenpython
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
thank you! <eom>

thank you! <eom>
 
  


Reply



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
Postfix - "mail command not found" azmadar Linux - Networking 3 01-21-2013 03:52 AM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
slackware "mail" command reddazz Slackware 3 12-01-2004 08:35 PM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
Attach a Attachment with the " mail command" robinhood1995 Linux - General 2 05-16-2002 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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