Sponsored Content
Special Forums UNIX Desktop Questions & Answers How to use mail facility in unix?? Post 76398 by fermisoft on Tuesday 28th of June 2005 07:07:29 AM
Old 06-28-2005
How to use mail facility in unix??

I'm a beginner in Unix. Please explain in short, how to send and receive mail in unix. The mail is already configured in the OS.
Tell me the steps to send/receive mail in the command prompt.

The platform is AIX 5.1.


Thanks
Karthik
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using the LOG_AUTH facility

Hi, I am wanting to enable logging of all ftp sessions on my Solaris 8 host. I want to at least log all ftp logins and if possible any commands that the user executes. I have tried various settings in syslog.conf then rereading syslogd but logging still does not happen. I have... (1 Reply)
Discussion started by: blp001
1 Replies

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

3. OS X (Apple)

Unix email facility

Dear all, I am an inexperienced man with Macitosh and green in Apple OS X . I had tried very hard to use Unix, in fact the Terminal, with its Email function. I read some books and came to know that it has Mail, mailx or mail functions that we can use for simple mail. I have try every... (3 Replies)
Discussion started by: Larry LAM
3 Replies

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

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. UNIX for Dummies Questions & Answers

Unable to use the CDE Facility

Hello I have a SunBlade 1000 workstation and I cannot login via CDE. All I get is a console login prompt. I then have to login via root and I just get the command line interface. I have being doing some research on the UNIX forum and the problem may lie with the content in etc/hosts file.... (7 Replies)
Discussion started by: tjwops
7 Replies

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

8. AIX

OpenSSH built in chroot facility

Hi all, I'm trying to set up a chroot sftp using OpenSSH. But I'm still having problems. I'm using AIX 5.3 My system and OpenSSH version as follows host1:/>oslevel 5.3.0.0 host1:/>oslevel -r 5300-10 host1:/>ssh -V OpenSSH_5.0p1, OpenSSL 0.9.8h 28 May 2008 host1:/>lslpp -l | grep open... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

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

10. UNIX for Dummies Questions & Answers

How to send alerts to the sysmon facility?

We are moving from using the syslog facility to sysmon. My question is what API's are used to write alerts to sysmon (2 Replies)
Discussion started by: thenrett
2 Replies
binmail(1)						      General Commands Manual							binmail(1)

Name
       binmail - send or receive mail among users

Syntax
       /bin/mail [+] [-i] [person...]
       /bin/mail [+] [-i] -f file

Description
       This  is the old version 7 UNIX system mail program.  The default command is described in and its binary is in the directory The program is
       still used to actually deliver a mail message into the users system-wide mailbox ( ), however, the  reading  of	these  messages  has  been
       replaced with the program Do not remove from your system.

       The  command  with  no argument prints a user's mail, message-by-message, in last-in, first-out order; the optional argument + displays the
       mail messages in first-in, first-out order.  For each message, it reads a line from the standard input to direct  the  disposition  of  the
       message.

       Issue the following commands from the program prompt:

       <CR>		   Go on to next message

       d		   Delete message and go on to the next.

       p		   Print message again.

       -		   Go back to previous message.

       s [file...]	   Save the message in the named files (`mbox' default).

       w [file...]	   Save the message, without a header, in the named files (`mbox' default).

       m [person...]	   Mail the message to the named persons (yourself is default).

       EOT (control-D)	   Put unexamined mail back in the mailbox and stop.

       q		   Same as EOT.

       !command 	   Escape to the Shell to do command.

       *		   Print a command summary.

       An interrupt normally terminates the command; the mail file is unchanged.

       When  persons  are  named, takes the standard input up to an end-of-file (or a line with just `.')  and adds it to each person's mail file.
       The message is preceded by the sender's name and a postmark.  Lines that look like postmarks are prepended with `>'.  A person is usually a
       user  name  recognized  by  To  denote  a recipient on a remote system, prefix person by the system name and exclamation mark.  For further
       information, see

       The program sends a message to the screen that there is mail when the user logs in.

       When is used to deliver mail, (usually calls to do this), a mailbox is created for the user in the directory if it doesn't  already  exist.
       The mailbox is created with the mode 700 so that only its owner can access it.  In addition, the directory has the mode 777 with the sticky
       bit set.  The mode is 777 so that other mail programs, notably can create the appropriate lock files to prevent another process from  writ-
       ing to the mailbox at the same time.  The sticky bit set on the directory prevents one user from unlinking another user's mailbox.

Options
       -f		   Displays mail messages contained in the specified file (next argument) in place of your mailbox file.

       -i		   Notifies mail to continue after interrupts.

Restrictions
       Race conditions sometimes result in a failure to remove a lock file.

Files
       /etc/passwd	      to identify sender and locate persons
       /usr/spool/mail/*      incoming mail for user *
       mbox		      saved mail
       /tmp/ma* 	      temp file
       /usr/spool/mail/*.lock lock for mail directory
       dead.letter	      unmailable text

See Also
       mail(1), uucp(1c), uux(1c), write(1), sendmail(8)

																	binmail(1)
All times are GMT -4. The time now is 04:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy