03-18-2008
Depends a lot on your set-up. Can you telnet localhost 25? Can you see the status of the mail spool (something like mailq)? Can you read mail server logs?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can somebody explain it to me that why wc gives more chars suppose
Ab.txt have two lines
qwer
qasd
then wc -c ab.txt will give 10.why not 8.okay may be it is taking count one for each line just in case but why echo "qwer"|wc -C gives 5.
Ok with \c it is returning 4. :) (6 Replies)
Discussion started by: Dhruva
6 Replies
2. Solaris
Hi ,
I am new to unix , i am using the mail and mailx command to send the mail .How come i will know the my mail command using which server as mail box..
Please help me ..
Thanks in advance (1 Reply)
Discussion started by: julirani
1 Replies
3. Shell Programming and Scripting
Hi all,
I have written a script which supposed send a mail.
For testing I am just sending mails to my ID.
script I have written to send mail is-
#!/usr/bin/ksh
MAIL_FILE="$HOME/MAIL_FILE"
MAILOUT_LIST="milindb@example.com"
mail -s "Subject" $MAILOUT_LIST < $MAIL_FILE
if
then
echo... (6 Replies)
Discussion started by: milindb
6 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I have just installed my first Linux server ( Ubuntu 11.10 ).
I am sure I didn't allocate /swap , and double check by 'df -h', yes really no /swap
but when I use 'free -m' , returned a "Swap" line as below.
total used free shared buffers cached
Mem: ... (3 Replies)
Discussion started by: joaming
3 Replies
5. Fedora
Hi Guys,
Am tried with the mail & mailx command to send mail to other localhost machine, Which are all connected in a LAN. I can not able to send, Either it wont display any error message at that time and later am receiving a failure mail.. But i can send and receive (from-to) in my machine..... (28 Replies)
Discussion started by: Adhi
28 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to send a mail from linux server but could'nt able to send the mail.
I tried the below syntax's so far but no luck.
mail -s “Hello world” abc@xyz.com < /usr/g/txt.log
cat "txt.log" | mailx -s "Hello world" abc@xyz.com
mailx -s “Hello world” abc@xyz.com <... (2 Replies)
Discussion started by: scriptscript
2 Replies
7. UNIX for Dummies Questions & Answers
HI, guys, I am having some problem with the echo command, so I want to echo some text to a file name loginFile, the result inside the loginFile should looks like:
expect ">"
so what I did is:
echo "expect "">""" >> $loginFile
but it just gave out:
expect >
The thing is I still need... (2 Replies)
Discussion started by: warmboy610
2 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The function will be called m and it will allow you to send an email to someone using the mail command. The... (1 Reply)
Discussion started by: Drucian
1 Replies
9. UNIX for Advanced & Expert Users
I am unable to cause the 'mail' command to send mail from my linux ubuntu 15.10 computer. File 'mail.log' typically reports Connection timed out.
I issue the command:
mail -s "my subject" recipient@domain.com < filenamewhere filename is a file containing my message.
Specifically, the... (3 Replies)
Discussion started by: tcnm
3 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
LEARN ABOUT PLAN9
rewrite
REWRITE(6) Games Manual REWRITE(6)
NAME
rewrite - mail rewrite rules
SYNOPSIS
/mail/lib/rewrite
DESCRIPTION
Mail(1) uses rewrite rules to convert mail destinations into commands used to dispose of the mail. Each line of the file is a rule. Blank
lines and lines beginning with # are ignored.
Each rewriting rule consists of (up to) 4 strings:
pattern
A regular expression in the style of regexp(6). The pattern is applied to mail destination addresses. The pattern match is case-
insensitive and must match the entire address.
type The type of rule; see below.
arg1 An ed(1) style replacement string, with
standing for the text matched by the nth parenthesized subpattern.
arg2 Another ed(1) style replacement string.
In each of these fields the substring s is replaced by the login id of the sender and the substring l is replaced by the name of the
local machine.
When delivering a message, mail starts with the first rule and continues down the list until a pattern matches the destination address. It
then performs one of the following actions depending on the type of the rule:
>> Append the mail to the file indicated by expanding arg1, provided that file appears to be a valid mailbox.
| Pipe the mail through the command formed from concatenating the expanded arg1 and arg2.
alias Replace the address by the address(es) specified by expanding arg1 and recur.
translate
Replace the address by the address(es) output by the command formed by expanding arg1 and recur.
Mail expands the addresses recursively until each address has matched a >> or | rule or until the recursion depth indicates a rewriting
loop (currently 32).
If mail(1) is called with more than one address and several addresses match | rules and result in the same expanded arg1, the message is
delivered to all those addresses by a single command, composed by concatenating the common expanded arg1 and each expanded arg2. This mail
bundling is performed to reduce the number of times the same message is transmitted across a network. For example, with the following re-
write rule
([^!]*.att.com)!(.*) | "/mail/lib/qmail 's' 'net!1'" "'2'"
if user presotto runs the command
% mail research.att.com!ken research.att.com!rob
there will follow only one execution of the command
/mail/lib/qmail presotto net!research.att.com ken rob
Here /mail/lib/qmail is an rc(1) script used for locally queuing remote mail.
In the event of an error, the disposition of the mail depends on the name of the command executing the rewrite. If the command is called
mail and is run by $user, the command will print an error and deposit the message in /mail/box/$user/dead.letter. If the command is called
rmail, usually because it was invoked to deliver mail arriving over the network, the message will be returned to the sender. The returned
message will appear to have been sent by user postmaster.
SEE ALSO
mail(1)
REWRITE(6)