06-12-2009
Sender email address has to changes
I am sending email with attachment using mail and uuencode command.
Ex:
(echo "$EMAIL_BODY"; uuencode $FILE ATTACH.TXT) || mail "$EMAIL_ID" -s "$EMAIL_SUB"
I am getting email from "applmgr@rigelapp01.us.dell.com". I want to change this email address into
ADMIN_NO_REPLY@rigelapp01.us.dell.com
Can anyone throw some light on this issue.
Regards
BS
-----Post Update-----
I found the solution
(echo "$EMAIL_BODY"; uuencode $FILE ATTACH.TXT) || mail -s "$EMAIL_SUB" "$EMAIL_ID" -- -fme@myaddress.com
Regards
BS
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I'm on UNIX -Solaris...
I'm trying to send mail usin Mailx..... The script is working fine and attachments are also being sent....
BUT, when I receive the mail,, the sender address shown is the unix login id name.... Any way by which I could manipulate this in my script command or any... (1 Reply)
Discussion started by: vasan_srini
1 Replies
2. AIX
When sending emails to the outside world, aix present itself as d_prod@production1.pdc.itercom.org.
This is causing some issue with our e-mail server.
So we need to change the name to d_prod@itercom.org...
Does any one know how this can be accomplished?
Thank you (3 Replies)
Discussion started by: cchiang12
3 Replies
3. UNIX for Dummies Questions & Answers
Hello
Following command send link to division managers.
echo http://severname:8081/account-reports/2008Jun19-2008Jun25.2/index.html | mail -s "Weekly Division Sales Report" johndoe@companmail.com
QUESTION.
Above command send a body which is link of division report in email
with... (1 Reply)
Discussion started by: paulds
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
I have a postfix server that relays to an exchange server. All of my unix/linux systems send to this server, the problem is the form the mail is sent with,
the sender address is
username@hostname.domain.local
I need to rewrite every sender address to
unix@maildomain.com
for... (0 Replies)
Discussion started by: funksen
0 Replies
5. Shell Programming and Scripting
Hi All,
I want to change the email address of the sender to some alias
for eg:
FROM:noreplyecommerce@test.com needs to be changes to TEST
Please help me. (3 Replies)
Discussion started by: sithara
3 Replies
6. Red Hat
Just having trouble trying to figure out what the option is.
When I do
mail -s "Subject" someuser@example.com
I can't seem to specify "from" or "sender" option as I need it for my task. I tried using --f or -f though it didn't work.
Can someone please tell me what other option... (0 Replies)
Discussion started by: rockf1bull
0 Replies
7. Solaris
Need to change sender email id from applmgr@<hostname>.<domain-name> to applmgr@domain-name.
Understand we can change in the sendmail.cf where $j is the hostname.domain-name.. can anyone show the exact value to change?
Thank you. (8 Replies)
Discussion started by: KhawHL
8 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am using the below command to send the email.
mailx -s "test from `hostname`" email@gmail.com < attachment.txt
id
uid=870(wlsuser) gid=641(wlsgrp)
I recieve the email as "From: wlsuser@hostname
Can I somehow have any string instead of wlsuser, if that grows too complex to... (4 Replies)
Discussion started by: shifahim
4 Replies
9. Shell Programming and Scripting
Can any one help me in this ???
How to change sender's name or email address in Mutt command??? (4 Replies)
Discussion started by: sarathi
4 Replies
10. Shell Programming and Scripting
Hi,
I m using mailx to send email. I am using
sender=server name(display name)
echo "body" | mailx -s "subject" -b "bcc address" "to address" -- -f "$sender".
I should get email with sender as only display name. In stead i am getting displayname@server address.
Please suggest
Use code... (1 Reply)
Discussion started by: usrrenny
1 Replies
HMINE(1) HMINE(1)
NAME
hmine - a mail message header analyzer.
SYNOPSIS
hmine [-vDa] [FILE]
hmine -V
DESCRIPTION
hmine reads a mail message from FILE or STDIN and outputs a variety of information found in the message headers. The message is expected in
Internet mail format (RFC 821,822,2821,2822 or variations thereof). The body is not inspected.
EXIT STATUS
On success, hmine returns 1. In case of a problem, hmine returns zero.
OPTIONS
-a Print mailboxes and groups found in various header fields, one per line, preceded by the field name. Actual email addresses are
always enclosed in '<' and '>' for easy parsing, ie anything not within these delimiters is not part of an email address. Beware
that not every line need contain an email address.
-D Debug output.
-V Print the program version number and exit.
USAGE
An invocation looks like this:
% hmine email.txt
SOURCE
The source code for the latest version of this program is available at the following locations:
http://www.lbreyer.com/gpl.html
http://dbacl.sourceforge.net
BUGS
At present, hmine parses messages but doesn't output anything useful.
AUTHOR
Laird A. Breyer <laird@lbreyer.com>
SEE ALSO
dbacl(1), mailcross(1), mailfoot(1), mailinspect(1), mailtoe(1), regex(7)
Version 1.12 Bayesian Classification Tools HMINE(1)