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
exit(1) 							   User Commands							   exit(1)

NAME
exit, return, goto - shell built-in functions to enable the execution of the shell to advance beyond its sequence of steps SYNOPSIS
sh exit [n] return [n] csh exit [ ( expr )] goto label ksh *exit [n] *return [n] DESCRIPTION
sh exit will cause the calling shell or shell script to exit with the exit status specified by n. If n is omitted the exit status is that of the last command executed (an EOF will also cause the shell to exit.) return causes a function to exit with the return value specified by n. If n is omitted, the return status is that of the last command exe- cuted. csh exit will cause the calling shell or shell script to exit, either with the value of the status variable or with the value specified by the expression expr. The goto built-in uses a specified label as a search string amongst commands. The shell rewinds its input as much as possible and searches for a line of the form label: possibly preceded by space or tab characters. Execution continues after the indicated line. It is an error to jump to a label that occurs between a while or for built-in command and its corresponding end. ksh exit will cause the calling shell or shell script to exit with the exit status specified by n. The value will be the least significant 8 bits of the specified status. If n is omitted then the exit status is that of the last command executed. When exit occurs when executing a trap, the last command refers to the command that executed before the trap was invoked. An end-of-file will also cause the shell to exit except for a shell which has the ignoreeof option (See set below) turned on. return causes a shell function or '.' script to return to the invoking script with the return status specified by n. The value will be the least significant 8 bits of the specified status. If n is omitted then the return status is that of the last command executed. If return is invoked while not in a function or a '.' script, then it is the same as an exit. On this man page, ksh(1) commands that are preceded by one or two * (asterisks) are treated specially in the following ways: 1. Variable assignment lists preceding the command remain in effect when the command completes. 2. I/O redirections are processed after variable assignments. 3. Errors cause a script that contains them to abort. 4. Words, following a command preceded by ** that are in the format of a variable assignment, are expanded with the same rules as a vari- able assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not performed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
break(1), csh(1), ksh(1), sh(1), attributes(5) SunOS 5.10 15 Apr 1994 exit(1)