[ale] sendmail inquiry
Lightner, Jeff
jlightner at water.com
Mon Feb 21 14:07:33 EST 2011
Haven't done that in a while - notes I wrote myself when I was
experimenting once:
Command to get mailx (on Linux) to send mail without using aliases and
specified email address:
mailx -s "subject" <email addresses> -n -- -F<from as it should appear>
Therefore:
echo "Test Message body" | mailx -s "Test Message Subject" -n -- -F
newdude at newcompany.com
Sends the test message body piped into mailx and passes the -n to
sendmail to not use aliases and then the -- -F sends to sendmail the
format the email address should take.
Of course you can pipe whatever is sending mail into mailx rather than
the echo I'm doing. You should also be able to setup aliases if this
is a permanent requirement that all mail go out as newdude.
-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Geoffrey Myers
Sent: Monday, February 21, 2011 1:49 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] sendmail inquiry
So, here's the problem. User application uses login id for users to
send email: dude at company.com
company is purchased and now dude at company.com email address is
newdude at newcompany.com
Problem is, we are sending email from the command line and it's going
out as dude. How do we make it go out as newdude at newcompany.com?
--
Until later, Geoffrey
"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson
_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Proud partner. Susan G. Komen for the Cure.
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------
More information about the Ale
mailing list