02-08-2009
Quote:
Originally Posted by
funksen
to answer both of your posts
you don't need the -v flag, it's for more detailed output of linux mail command, and mailx in solaris
if you want it, use
echo bla | mailx -v emailaddress
>>It says... svcs: not found. What does this mean?<<
that means your shell could not find the svcs command in your path, set in PATH variable
your solaris is too old for svcs, or it's simply not in your path
check for sendmail in /etc/init.d
/etc/init.d/sendmail start
Hi
,
What should be done next. I could find this /etc/init.d/sendmail start in my server. What should I check and modify so that my server will be able to send mails...
10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. 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
5. 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
6. 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
7. 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
8. 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
9. 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
10. 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
aliases(5) File Formats Manual aliases(5)
NAME
aliases - aliases file for sendmail
SYNOPSIS
DESCRIPTION
The command (which is the same as see sendmail(1M)) builds the sendmail alias database from a text file. The default text file is Local
addresses (local user names) are looked up in the alias database and expanded as necessary, unless the user name is preceded by a backslash
When the aliases file contains multiple entries for a given alias, only the last entry is used. Except when the processing option (the
send to me option) is set in the command or in the configuration file, the sender is not included in any alias expansions. For example, if
sends a message to and the expansion of includes the message is not delivered to
Each line of the alias text file must be of the form:
Mailing lists can be continued onto multiple lines. Each continuation line must begin with white space. Lines beginning with # are com-
ments.
A mailing-list is a comma-separated list of one or more of the following:
user-name Local user names occurring in alias expansions will themselves be looked up in the alias database unless
they are preceded by backslash
remote-address The remote address syntax understood by is configured in the configuration file, and typically includes the
RFC-822-style and the UUCP-style
filename This must be an absolute path name. appends a message to the file only if the directory in which it
resides is readable and searchable by all, and only if the file already exists, is not executable, and is
writable by all.
pipes the message as standard input to the specified command.
If command-line contains blanks, it must be enclosed in quotation marks (). For example,
reads filename for a list of recipient addresses and forwards the message to each. For example, an alias such
as:
would read for the list of addresses making up the group.
If a file named exists in a user's home directory and is owned by the user, redirects mail for that user to the list of addresses in the
file.
An address in a or file can be anything that can appear as a mailing-list in the alias text file.
can run programs or write to files using file. This is controlled by the file. If the owner of the file lacks a valid shell as listed in
file, the execution of such programs will be disallowed. The user can still execute such programs by placing the special string in the
file.
The alias database is examined before a recipient's file is examined. After aliasing has been done, local and valid recipients who have a
file in their home directory will have messages forwarded to the list of users defined in that file.
Aliasing occurs only on local names. Loops can not occur, since no message will be sent to any person more than once.
Aliases defined in will NOT be expanded in headers from (see mailx(1)), but WILL be visible over networks and in headers from (see
mail(1)).
is only the raw data file. The actual aliasing information is placed into a binary format in the file using (see newaliases(1M)).
A command should be executed each time the file is changed in order for the change to take effect. Note that the NIS alias maps are gener-
ated by using which leaves and in the directory.
AUTHOR
was developed by the University of California, Berkeley, and originally appeared in 4.0BSD.
FILES
User's mail forwarding file
raw data file for alias names
database of alias names
SEE ALSO
mail(1), mailx(1), makemap(1M), newaliases(1M), sendmail(1M).
aliases(5)