06-25-2010
It is a freak of luck and guesswork that your example line sent a mail. The "sendmail" command line syntax is nothing like "mailx" but "sendmail" does allow you to construct an email in any format. The post from "panyam" is very good and correctly illustrates how to send a basic email from "sendmail".
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies
2. Shell Programming and Scripting
Hi,
I have to use sendmail from command line, and we need to append a static string in subject to a new value from file.Is there any way to do it.
Thanks
Shrikrishna (1 Reply)
Discussion started by: shrikrishna
1 Replies
3. Red Hat
Hi All
• Regarding installing sendmail pkg in server, I tried to install the pkg but getting the below errors as shown below - any idea on this?
• But I have successfully installed sendmail-cf pkg in the server box
• But that is not sufficient we also need to install sendmail pkg
• Help is... (2 Replies)
Discussion started by: csaha
2 Replies
4. Shell Programming and Scripting
what is the syntax for sending a subject ?
sendmail -t a@b.com
The person receives the mail with an empty subject!
the man pages dont give anything related to subject...anybody?? (11 Replies)
Discussion started by: wannalearn
11 Replies
5. UNIX for Dummies Questions & Answers
What does the sendmail field "helo" denote in the logs? (1 Reply)
Discussion started by: mojoman
1 Replies
6. HP-UX
I have several HP/UX nodes running Sendmail 8.13 ...some work fine, some don't.
When an Email is coming in, the 'DATA' command never ends. The other side of the connection gets to the point where it enters the '.' on a line by itself, but sendmail doesn't accept it...if fact it keeps on holding... (8 Replies)
Discussion started by: john_exonets
8 Replies
7. UNIX for Dummies Questions & Answers
Hello All,
I am trying to send a file through email everyday from one of my Linux (x86_64) system. I've scheduled Sendmail in Crontab like this-
00 8 * * * /usr/sbin/sendmail name@xxx.co.uk < /home/file1.out
This entry in crontab is working very fine and I am receiving file file1.out... (10 Replies)
Discussion started by: NARESH1302
10 Replies
8. Shell Programming and Scripting
Hi All,
I need to create a script to process on 10 files. Mentioned below is one of those file and the requirement.
Input File
DCIA_GEOG_DATA_OCEAN.TXT
Sample Record
"Terr","TerrName","Dist","DistName","REGION","RgnName","BCName"
"A0010000","Abilene TX A 1","A0010957","Dallas... (5 Replies)
Discussion started by: Arun Mishra
5 Replies
9. Linux
I have a longstanding issue on my CentOS 5.6 VM where I am unable to send email from my PHP application.
This is the last bunch of lines from my /var/log/maillog file.
Feb 14 10:29:16 dev53 sendmail: s1EATEEo004637: Authentication-Warning: www.craig.dev-crmpicco.lan: apache set sender to... (2 Replies)
Discussion started by: crmpicco
2 Replies
10. Shell Programming and Scripting
Hi, Here is my script to send out emails.
#!/bin/ksh
{
print "From: Prod@`hostname`.mycomp.com"
print "To: me@mycomp.com"
print "MIME-Version: 1.0"
print "Content-Type: text/html"
print "Subject: Usage Report"
print ""
print... (2 Replies)
Discussion started by: mohtashims
2 Replies
SMRSH(8) System Manager's Manual SMRSH(8)
NAME
smrsh - restricted shell for sendmail
SYNOPSIS
smrsh -c command
DESCRIPTION
The smrsh program is intended as a replacement for sh for use in the ``prog'' mailer in sendmail(8) configuration files. It sharply limits
the commands that can be run using the ``|program'' syntax of sendmail in order to improve the over all security of your system. Briefly,
even if a ``bad guy'' can get sendmail to run a program without going through an alias or forward file, smrsh limits the set of programs
that he or she can execute.
Briefly, smrsh limits programs to be in a single directory, by default /usr/lib/sendmail.d/bin/ allowing the system administrator to choose
the set of acceptable commands, and to the shell builtin commands ``exec'', ``exit'', and ``echo''. It also rejects any commands with the
characters ``', `<', `>', `;', `$', `(', `)', `
' (carriage return), or `
' (newline) on the command line to prevent ``end run'' attacks.
It allows ``||'' and ``&&'' to enable commands like: ``"|exec /usr/local/bin/filter || exit 75"''
Initial pathnames on programs are stripped, so forwarding to ``/usr/bin/vacation'', ``/usr/bin/vacation'', ``/home/server/mydir/bin/vaca-
tion'', and ``vacation'' all actually forward to `/usr/lib/sendmail.d/bin/vacation''.
System administrators should be conservative about populating the /usr/lib/sendmail.d/bin/ directory. For example, a reasonable additions
is vacation(1), and the like. No matter how brow-beaten you may be, never include any shell or shell-like program (such as perl(1)) in the
/usr/lib/sendmail.d/bin/ directory. Note that this does not restrict the use of shell or perl scripts in the /usr/lib/sendmail.d/bin/
directory (using the ``#!'' syntax); it simply disallows execution of arbitrary programs. Also, including mail filtering programs such as
procmail(1) is a very bad idea. procmail(1) allows users to run arbitrary programs in their procmailrc(5).
COMPILATION
Compilation should be trivial on most systems. You may need to use -DSMRSH_PATH="path" to adjust the default search path (defaults to
``/bin:/usr/bin'') and/or -DSMRSH_CMDDIR="dir" to change the default program directory (defaults to ``/usr/lib/sendmail.d/bin/'').
FILES
/usr/lib/sendmail.d/bin/ - default directory for restricted programs on SuSE Linux
SEE ALSO
sendmail(8)
$Date: 2004/08/06 03:55:35 $ SMRSH(8)