On Thu, Nov 22, 2001 at 08:28:38PM +0530, [EMAIL PROTECTED] wrote:
> Hi,
>
> I wanted a simple, small and fast MTA which would take
> command line parameters and send them over to the destina-
> tion.
>
> I think the Unix 'mail' prog works like that, but I am un-
> able to find the source for that (in tar.gz format).
>
> Could anybody suggest something better or tell me where I
> can find the source?
>
---end quoted text---
No MTA is simple. Things like mail (mailx), mpack etc do the
one line interface bit for the sendmail command. If you want
to have a look at the source for these, look for "mailx" and
"mpack" on google. The current mpack ver is 1.5. Just compi-
led from source a few days ago. Forget the URL.
If you have have sendmail/ exim or some other MTA installed,
which provides the sendmail command, the simplest is a shell
script like this:
------------<snip>------------
#!/bin/sh
sendmail -vt <<- -EndOfMail-
From: "Someone" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc:
Subject: Sending test mail
This is a one line letter
Tester
-EndOfMail-
------------</snip>-----------
Writing a script wrapper based on the above principle can
be made for a command line mail despatcher using sendmail
itself with no MUA requirements.
HTH
Bish.
--
:
##############################################################
Sub : Linux Commands (#3) LOST #048
No consolidated command list, each package installed would be
adding some command to the list ..
Detailed documentation on most packages are kept in /usr/doc
or /usr/share/doc ... just read them.
####<[EMAIL PROTECTED]>####################################
:
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help