Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send mail from command line

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
GB
Is it possible to change the default sender address when using the mail?

If I loginin as joe and send mail from the console using

mail -s "test" test@acme.com

the recipient receives a message from joe@sharedmailserver.com. How do I change this so the message seems to come from joe@joesserver.com ?

The server users qmail.
 
telnet yourSMTPserver 25
helo xxx
mail from:<xxx@xxx.com>
rcpt to:<recipt@xxxx.com>
data
your message
.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top