05-10-2006
mail question here
how can I use a file as a contact list for the mail command?
10 More Discussions You Might Find Interesting
1. How do I send email?
Has anyone written a script to attached a text file when sending an email using the MAIL command?
I wrote a Unix Script to email an end-user a text file. I want the file to be an attachment. I've tried the unix command uuencode but this seems to be for a binary file. My text file is garbage... (3 Replies)
Discussion started by: dsthompson
3 Replies
2. UNIX for Dummies Questions & Answers
Hi, all,
I use mail to send a file to my email account as follow:
mail -v user@address.com < /user/text
however, I received is a blank email without any content in it. How can I set up config correctly in the Solaris box? Any suggests so can send the whole text? Thank you in advance!
Yun (2 Replies)
Discussion started by: yxiao
2 Replies
3. UNIX for Dummies Questions & Answers
Hi
In the company I work for one guy ask me this question:
Can you have several mail servers managing the same domain, in the same lan?
My first answer was that it's not possible cause each mail server must not share a domain, but .... I'm not sure.
Can anyone more enlightened than me,... (1 Reply)
Discussion started by: piltrafa
1 Replies
4. UNIX for Dummies Questions & Answers
OK, here's the situation. Our regular computer guy left the company without warning. We are in the process of replacing him with someone much more knowlegeable than I, but as of right now, I have been handed the duties. Our mail server is running OpenBSD and I need to set up a new employee with an... (3 Replies)
Discussion started by: Rotting
3 Replies
5. UNIX for Dummies Questions & Answers
Hey Guys,
I created a script where i am trying to do scp from one machine to another and then from another to another remote machine. I am having a log file also with the current date and time stamp in which i have been successful. I would like to delete the log files older than 30 days in which... (9 Replies)
Discussion started by: chris1234
9 Replies
6. UNIX for Dummies Questions & Answers
Hi,
We have all the user account in a home direcory where their mail is stored and retrieved by email clients. We do however have /var/spool/mail with all the user accounts in it as well Our sendmail.cf is configured to use /var/spool/mqueue as the queue so .what is /var/spool/mail being used... (3 Replies)
Discussion started by: mojoman
3 Replies
7. UNIX for Dummies Questions & Answers
how do I save a email I just read to a new file?
Thanks. (3 Replies)
Discussion started by: drew211
3 Replies
8. UNIX for Dummies Questions & Answers
Hello im new user for linux and i have a question.
In file address.txt i have 2 email addressees they are separated with , and i need to send email on those addresses with template can you guys give me some advice pls. And i´m writing this script in Bash (4 Replies)
Discussion started by: Whiskas
4 Replies
9. Linux
Simple question: i read mail n°4,how to return to list of messages? (2 Replies)
Discussion started by: Linusolaradm1
2 Replies
10. UNIX for Advanced & Expert Users
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
BINMAIL(1) General Commands Manual BINMAIL(1)
NAME
binmail - send or receive mail among users
SYNOPSIS
/bin/mail [ + ] [ -i ] [ person ] ...
/bin/mail [ + ] [ -i ] -f file
DESCRIPTION
Note: This is the old version 7 UNIX system mail program. The default mail command is described in Mail(1), and its binary is in the
directory /usr/ucb.
mail with no argument prints a user's mail, message-by-message, in last-in, first-out order; the optional argument + displays the mail mes-
sages in first-in, first-out order. For each message, it reads a line from the standard input to direct disposition of the message.
newline
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 mail command; the mail file is unchanged. The optional argument -i tells mail to continue after
interrupts.
When persons are named, mail 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 login(1). To denote a recipient on a remote system, prefix person by the system name and exclamation
mark (see uucp(1C)).
The -f option causes the named file, for example, `mbox', to be printed as if it were the mail file.
When a user logs in he is informed of the presence of mail.
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), write(1), uucp(1C), uux(1C), xsend(1), sendmail(8)
BUGS
Race conditions sometimes result in a failure to remove a lock file.
Normally anybody can read your mail, unless it is sent by xsend(1). An installation can overcome this by making mail a set-user-id command
that owns the mail directory.
7th Edition April 29, 1985 BINMAIL(1)