Unix mail to hotmail.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unix mail to hotmail.
# 1  
Old 02-02-2010
Bug Unix mail to hotmail.

Hi

we have around 50 Production machines .
I intend to set up a unix mail server program which will ping all the machines and store the results in a text file and the same will be mailed to system and network admins ( ids might be hotmail / gmail/yahoo/ etc )

Just wanted your thoughts How should i proceed

I am using HP UX 11i v3

Any suggestions appreciated .
# 2  
Old 02-02-2010
Quote:
Originally Posted by ultimatix
Hi

we have around 50 Production machines .
I intend to set up a unix mail server program which will ping all the machines and store the results in a text file and the same will be mailed to system and network admins ( ids might be hotmail / gmail/yahoo/ etc )

Just wanted your thoughts How should i proceed

I am using HP UX 11i v3

Any suggestions appreciated .
Does your company already have Microsoft Exchange? If so, see if your exchange has a mail relay server setup. You can then use sendmail or postfix to use the exchange server as a relay.

Lookup sendmail relay in google.

As far as setting up sendmail or postfix as a mail server itself, I haven't ever had to dabble in that. I would think you would want to do the same type of setup though.

Where 1 server is your mail server/relay and the others all use that server to send the mail.
# 3  
Old 02-03-2010
Hi ,

I have written a ping script which pings each of the 50 machines and the o/p is stored in a file . My main objective is to send this file to users email adresses.
Smilie
# 4  
Old 02-03-2010
If it was me......

I would use PHP for the script.

In one include file I would have an array with the IP addresses of the boxes to ping. In another, an array of the email addresses to notify.

I would use the built in mail functionality of PHP to send the mail.
# 5  
Old 02-03-2010
Bug

can we use php in hp -ux
# 6  
Old 02-03-2010
Tools

Uhm, why not simply set up a cron job? Let your ping script write to stdout, and cron will take care of sending the results to whatever mail address you specify. Ideally, you'd set up a mailing list for the receipients (admin or so), that would make it easier to manage who receives the mail, and would simplify the next bunch of mails you are likely to send out (disk status information of the hosts, or whatever) ;-)

See cron and crontab manpages for details.
# 7  
Old 02-03-2010
Quote:
Originally Posted by Neo
If it was me......

I would use PHP for the script.

In one include file I would have an array with the IP addresses of the boxes to ping. In another, an array of the email addresses to notify.

I would use the built in mail functionality of PHP to send the mail.

Neo, wouldn't you need a mail relay server or an actual mail server configured to actually send the mail?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Can I access gmail or hotmail from Unix script?

Hi, I wonder how can I access gmail or hotmail from Unix script? ksh? Thank you in advance for any advices. (2 Replies)
Discussion started by: tanit
2 Replies

3. HP-UX

[Solved] How do I configure Unix Mail Server to use another Mail Exchange Server

We have configured our mail unix server and can send out emails automatically from applications running on unix to different people in our company as well as outside our company. However there is an outside client who is not receiving these emails because the settings on their mail server cannot... (4 Replies)
Discussion started by: Tenyhwa
4 Replies

4. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

5. UNIX for Dummies Questions & Answers

Unix mail to personal mail, Strange behavour

Hi. I am running a script on solaris 10 and mailing it to my personal email. the script is ran as user xxx, And i have edited the crontab for user xxx to run the script and mail it to my email account. /network_check.sh | /usr/bin/mailx -s "Network Test" k454@hotmail.com the sript... (2 Replies)
Discussion started by: k00061804
2 Replies

6. Shell Programming and Scripting

Mail attachment with unix mail

Hi Could someone help me with the details on how to send an attachment through mail in unix. I have an html file in my unix machine and I want this to be send to some mail id, plese help with the steps. Regards Ajay (2 Replies)
Discussion started by: ajaykumarboyana
2 Replies

7. Red Hat

Hotmail Problems With Squid

Dear All I am running Squid on RHEL-4 in my office. I have two Linux Proxy servers e.g Proxy-1 and Proxy-2. The users on LAN access internet via these proxy machines but some users whom use Proxy-1 are unable to delete hotmail emails, whereas they can delete hotmail emails on Proxy-2. When... (0 Replies)
Discussion started by: surfer24
0 Replies

8. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

9. UNIX for Dummies Questions & Answers

Send mail to any user (@hotmail,@yahoo etc) from Solaris

Hi All, I am new to unix. I want to know what are the steps to do in order to configure a unix server (Solaris 8) to send mails to the outside world. I also want to send attachments in the mail. Thanks in advance Zing (2 Replies)
Discussion started by: zing
2 Replies

10. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies
Login or Register to Ask a Question