spoof mail id


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers spoof mail id
# 1  
Old 12-06-2002
Question spoof mail id

I am running Solaris 8 on a SUN 450 and need to have e-mails sent out each month for several systems to remind users to take certain actions. I can successufully add a job to the cron, but each time the mailx sends an e-mail it has my user ID along with telephone number as the sender. I would like to have each system be the sender, like system1@mailserv.com
system2@mailserv.com. is there a way to do this using my ID without seting up a UNIX id for each system?
# 2  
Old 12-06-2002
This is not ideal, but you could do something like:


( echo "From: someone@somewhere"; \
echo "To: someone@somwhereelse"; \
echo "Subject: some subject"; \
echo ""; \
echo "Body of email"; \
) | sendmail -t


A better solution would be to use perl and the Mail::Mailer module.
# 3  
Old 12-06-2002
also i think you could create a new user with whatever name you want, ie "system1" and then create the cronjob with that user
# 4  
Old 12-06-2002
As PxT replies, the sendmail -t option is very useful for these situations. From the sendmail manpage:

Code:
   
-t     Read message for recipients.  To:,  Cc:,  and  Bcc:
        lines will be scanned for recipient addresses.  The
        Bcc: line will be deleted before transmission.

My suggestion would be to create a file with the appropriate header fields and concatonate with the body (and send) via cron.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

3. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

6. Shell Programming and Scripting

Email spoof via java??

Hello all, I used to have a link to a good site that allowed me to spoof an email. It was clean and simple and worked. I lost the link and can't seem to find it via Google. Does anyone have a good source for such a request? I am looking to use it for testing ;) (0 Replies)
Discussion started by: komputersman
0 Replies

7. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

8. IP Networking

how can we spoof ethernet by ARP cache poisoning on unix through a program

how can we spoof ethernet by ARP cache poisoning on unix through a program... can anyone post the source code to achieve this... (1 Reply)
Discussion started by: ud4u
1 Replies

9. UNIX for Dummies Questions & Answers

mail problem (NOT Mail or Mail.app)

When I try to use the CLI mail, I get the following error. What's wrong? Welcome to Darwin! % mail root Subject: test test . EOT % /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
Login or Register to Ask a Question