>>>>> "mayuresh" == mayuresh  <[EMAIL PROTECTED]> writes:

    mayuresh> Hi, I wanted a simple, small and fast MTA which would
    mayuresh> take command line parameters and send them over to the
    mayuresh> destination.

    mayuresh> I think the Unix 'mail' prog works like that, but I am
    mayuresh> unable to find the source for that (in tar.gz format).

Unix mail program doesn't do it that way. It invokes sendmail to do
the dirty work. Here is strace output on /bin/mail:

execve("/usr/sbin/sendmail", ["send-mail", "-i",
"[EMAIL PROTECTED]"], [/* 49 vars */]) = 0

This might not be what you want.

Of course, it would be easy to hack up a script in bash (using netcat)
or perl (many modules that implement SMTP). You might want to have a
routine that would determine the MXes for a domain, maybe use host(1)?

    mayuresh> Could anybody suggest something better or tell me where
    mayuresh> I can find the source?

On redhat (and other RPM based) systems, you can find out the source
RPM name by:

rpm -q --qf '%{SOURCERPM}\n' -f /bin/mail

Binand

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to