Configure system for mail(x)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Configure system for mail(x)
# 1  
Old 07-19-2010
Configure system for mail(x)

Hi,

I would like to make a BASH shell script email me regarding its status (ie. it has errored while processing a file, it has finished etc.).

- This script will be distributed to users using Macs and a variety of Linux flavors. Is there a standard mail utility that most OS's should have? I have seen reference to mail and mailx. However I had to install them on my PC running Ubuntu 10.04. Installing isn't that big of a deal, but I would like to use a function that is compatible with the most systems.

- Are there any system configurations I must perform in order to use mail or mailx? The reason I ask is that I executed the following command:

Code:
echo "this is the body of the email" | mail -s "test email" my_email

at 1)My PC running Ubuntu 10.04 - I didn't receive any emails, and 2) My Macbook Pro running OSX 10.6 - I only received emails when using my university's network (ie it didn't work at home).

- Finally, will mail or mailx be able to receive email? I would like to be able to email my script back, have it parse the email, and perform specific actions depending on my response. Is that possible?

Thanks for any help.

Mike
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Configure sendmail to Only send mail to one domain

On both Solaris 10 and RHEL, we would like to configure sendmail in such a way that the email sent from the server should only go to a particular domain. For eg. We want our server to ONLY send the mail to <user_name>@abc.com. All other domains should be blocked/restricted. The server should not... (0 Replies)
Discussion started by: sk2code
0 Replies

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

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. HP-UX

configure the mail

hi , i am using details are HP-UX B.11.11 U 9000/800 . My scenerio as follows, i am using mailx and send mail command to send a mail . it's working fine for my client email id say abc@xyz.com. but i cannot send mail to any othere domains. i think that someone already cofigured xyz... (0 Replies)
Discussion started by: rdhaprakasam
0 Replies

5. Solaris

How to configure mail function on Solaris

Can some one please help to configure mails on Solaris. mail -s or mailx function don't work on the system. Commands do nothing. (2 Replies)
Discussion started by: raman1605
2 Replies

6. SCO

How to configure SCO OpenServer 5.0.7 mail system MMDF

Hello unix experts, Here I have couple of questions regarding MMDF mail system on SCO unix: 1. How can I configure SCO OpenServer 5.0.7 mail system MMDF to send emails using "mail" command to other machines in the same LAN? 2. How can I configure SCO OpenServer 5.0.7 mail system MMDF to ... (1 Reply)
Discussion started by: forumuser7
1 Replies

7. AIX

Configure AIX v5.1 for send mail

Hi, I wish to send a mail via ksh using this command: cat mailfile | mail -s "My Project." gio123bg@hel.com Is it necessary to configure some file? If yes, in which way? May you explain me all steps necessary to implement the above command? Many thanks in advance for your kind... (0 Replies)
Discussion started by: gio123bg
0 Replies

8. Filesystems, Disks and Memory

Configure e-mail

Hi, I don't know if this is appropriate for this forum but here goes anyway. I'm setting up a red hat server and want to be able to send and receive e-mail from it, perhaps even regardless of user accounts. Trouble is I know nothing. I'm welcome to pointers, links, books, tips, tricks, full... (7 Replies)
Discussion started by: Phineus
7 Replies

9. UNIX for Dummies Questions & Answers

Hi plz How to configure my sendmail or mail commands???

Hi my freinds , I have RH7.2 I want to send E-mails from the prompt terminal where should I configure POP3 or SMTP also I want to access My hotmail .....I can't access it from MSN site when I write mail command in the prompt I can't send the mail hoow to send it to the root for example also... (7 Replies)
Discussion started by: atiato
7 Replies
Login or Register to Ask a Question
script(1)							   User Commands							 script(1)

NAME
script - make record of a terminal session SYNOPSIS
script [-a] [filename] DESCRIPTION
The script utility makes a record of everything printed on your screen. The record is written to filename. If no file name is given, the record is saved in the file typescript. See WARNINGS. The script command forks and creates a sub-shell, according to the value of $SHELL, and records the text from this session. The script ends when the forked shell exits or when Control-d is typed. OPTIONS
The following option is supported: -a Appends the session record to filename, rather than overwriting it. NOTES
script places everything that appears on the screen in filename, including prompts. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) WARNINGS
script can pose a security risk when used in directories that are writable by other users (for example, /tmp), especially when run by a privileged user, that is, root. Be sure that typescript is not a link before running script. SunOS 5.11 30 Jan 2004 script(1)