10 More Discussions You Might Find Interesting
1. 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
2. UNIX for Dummies Questions & Answers
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
3. Red Hat
While sending mail from linux server we observed below logs,
stat=Deferred: Name server: xxxxxxxxxx.: host name lookup failure
Kindly suggest what we need to change?
Thanks in Advance (2 Replies)
Discussion started by: hydoss1
2 Replies
4. UNIX for Advanced & Expert Users
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
5. HP-UX
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
6. Solaris
hi all
i got two server, mercury and procyon
mercury can send email but procyon cannot
below is their syslog
mercury:
Jul 6 13:17:17 mercury sendmail: n665HGXg006886: to
=<leecw@domain.com>, ctladdr=<ora10g@mercury.domain.com> (4001/101), d
elay=00:00:01, xdelay=00:00:01,... (7 Replies)
Discussion started by: SmartAntz
7 Replies
7. Shell Programming and Scripting
Hi,
I have been trying to send a mail from a remote site using this script
To send the mail:
#!/bin/ksh
MAILTO="abc@xyz.com"
BACKUPDIR="/wls_domains/wli81_1/RHTEAM/OUTPUTBACKUP/"
#BACKUPDIR="../OUTPUTBACKUP/"
while ; do
print $1
uuencode $1 $1 | mail $MAILTO
... (3 Replies)
Discussion started by: monicaminj2000
3 Replies
8. AIX
hi,
I have tried this code to send mail.Its not giving me error but I am not receiving mail also.
#!/bin/ksh
echo "The first mail" >msg
cnt=`cat /dir1/msg | wc -l`
if
then
mail -s "Hello" abc.xyz@domain.com < msg
fi
I have also tried with the command
mailx -s "hello"... (0 Replies)
Discussion started by: monika
0 Replies
9. Solaris
i am trying to execute the below script for sending mails from unix
MAIL1="xyz@yahoo.com"
mailx -s "hi" $MAIL1<message.txt
if
then
echo "failure"
else
echo "success"
fi
but iam unable to send this eventhough iam getting success in the output
if i logout and login i have a "you... (1 Reply)
Discussion started by: shahnazurs
1 Replies
10. AIX
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
EXTSMAIL.EXTERNALS(1) BSD General Commands Manual EXTSMAIL.EXTERNALS(1)
NAME
extsmail.externals -- configure which external commands to robustly send e-mail via
DESCRIPTION
extsmail.externals is used to configure extsmaild(1). It consists of one or more group declarations. Each group consists of zero or more
match / reject clauses followed by one or more external declarations. An external consists of one or more assignments of key = value pairs.
When sending messages extsmaild(1) first searches through the externals file, in order, for a group whose match / reject clauses match the
message in question. If a group does not contain any such clauses it automatically matches all messages. Match / reject clauses currently
match only against headers, and use standard POSiX extended regular expressions (see re_format(7) for more details). extsmaild(1) then tries
each external in the group, in order, to send the message successfully.
The grammar for this file is as follows:
group ::= { matches* external+ }
matches ::= match
| reject
match ::= MATCH HEADER string
reject ::= REJECT HEADER string
external ::= EXTERNAL ID { defn+ }
defn ::= ID = STRING
| ID = TIME
TIME ::= [0-9]+[dhms]
Valid assignments within an external are:
sendmail
Defines the external shell command used to send e-mail.
timeout
If extsmaild(1) is executed in daemon mode, this value defines the length of time that extsmaild(1) will retry this external before
giving up and trying the next external in the group. Times are specified as a number followed by d (days), h (hours) m (minutes), or
s (seconds). If extsmaild(1) is executed in batch mode, the timeout value is ignored.
FILES
The extsmail configuration file is searched for, in order, in the following locations:
~/.extsmail/externals
Per-user configuration.
/etc/extsmail/externals
System-wide configuration.
EXAMPLES
The simplest externals file sending e-mail via ssh(1) looks as follows:
group {
external mymachine {
sendmail = "/usr/bin/ssh -q -C -l user mymachine.net /usr/sbin/sendmail"
}
}
where mymachine is a human-friendly name given to an external (it does not effect processing), and user is the username on the remote machine
mymachine.net.
A more complex example using multiple groups, message matching, and multiple external commands looks as follows:
group {
match header "^To:.*@foo.com"
external foo {
sendmail = "/usr/bin/ssh -q -C -l user shell.foo.com /usr/sbin/sendmail"
}
}
group {
external mymachine {
sendmail = "/usr/bin/ssh -q -C -l user mymachine.net /usr/sbin/sendmail"
}
external bk {
sendmail = "/usr/bin/ssh -q -C -l user bk.mymachine.net /usr/sbin/sendmail"
}
}
SEE ALSO
extsmail(1), extsmail.conf(5), extsmaild(1)
AUTHORS
Laurence Tratt <http://tratt.net/laurie/>
BSD
November 2, 2008 BSD