fake email sender


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers fake email sender
# 1  
Old 08-08-2011
Question fake email sender

Hi,

I am using the below command to send the email.

Code:
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 achieve can i just have wlsuser and hide the @hostname that comes with it ?

Regards,

Last edited by shifahim; 08-08-2011 at 09:09 PM..
# 2  
Old 08-08-2011
Try the -r return-address option. It still seems to include the domain though.
Code:
mailx -s  "test from `hostname`" -r "testing" email@address.com  < attachment.txt

P.S. You may want to edit out your e-mail address in the post so you don't start getting spam.
# 3  
Old 08-08-2011
Question

Quote:
Originally Posted by gary_w
Try the -r return-address option. It still seems to include the domain though.
Code:
mailx -s  "test from `hostname`" -r "testing" email@address.com  < attachment.txt

That works !!!

So now i have an email from testing@mycomputer

Can I somehow change the domain name if not hide it?
# 4  
Old 08-08-2011
Quote:
Can I somehow change the domain name if not hide it?
Depends, if you use a smart host, will the smart host accept the(from)email address.
If you don't use a smart host, not having a valid reverse dns for the domain you choose may cause the recipient to reject the email as spam.
# 5  
Old 08-09-2011
Question

Quote:
Originally Posted by jgt
Depends, if you use a smart host, will the smart host accept the(from)email address.
If you don't use a smart host, not having a valid reverse dns for the domain you choose may cause the recipient to reject the email as spam.
Ok, however I am not sure what a smart host is and how it works.
Can you guide me on this ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cannot ftp from EXTERNAL sender

ood morning, i need your help please from EXTERNAL sender somedy is trying to ftp by a public ip address this way ftp 190.13.96.8 Connected to 190.13.96.8. 220 pricing01c FTP server ready. Name (190.13.96.8:g803162): synverse 331 Password required for synverse. Password: 530 Login... (3 Replies)
Discussion started by: alexcol
3 Replies

2. UNIX for Dummies Questions & Answers

Script to print email from defined sender.

Hello all! I'm looking to setup some sort of script so that when a an email comes in from a specific address the message and/or attachments are automatically printed. Any ideas on where to start? Thanks for the help. (9 Replies)
Discussion started by: Mr. Biggz
9 Replies

3. Red Hat

How to change sender email address in mail -s command

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

4. Shell Programming and Scripting

Changing the sender Email address to Alias

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

5. Shell Programming and Scripting

how do I change the email sender if I donot have the -r option?

Hey, after I check the man page for mail and mailx, I did not find the -r option. But, I have to change the email sender, how can I do it? Send Mode mailx address... Receive Mode mailx -e mailx mailx -f ... (0 Replies)
Discussion started by: freelong
0 Replies

6. UNIX for Advanced & Expert Users

HL7 MLLP Sender in C

Hi Everyone, This is a pretty big request, but I was wondering if anyone out there has a program written in C, Perl, Tcl or whatever that can be executed from the command line and will send HL7 messages from a NL delimited file and send them to the specifid host/port using the MLLP HL7 TCP... (1 Reply)
Discussion started by: troym72
1 Replies

7. Shell Programming and Scripting

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... (1 Reply)
Discussion started by: balajiora
1 Replies

8. UNIX for Dummies Questions & Answers

Different Sender Address

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

9. UNIX for Advanced & Expert Users

Mail Sender

Hello All, My unix (AIX 5.2) login is robk, my MS Exchange user name is rkapfer. What I want to do is send mail as rkapfer while logged in (to unix) as robk. I'm currently doing uuencode <pdf> <pdf>|mail -s"Subject" <recipient> works fine except the recipient sees me as robk@xyz.com.... (0 Replies)
Discussion started by: rkapfer
0 Replies
Login or Register to Ask a Question