Sort of. To send mail off your host, you need some program that speaks SMTP.
Any of the standard Mail Transport Agents (MTAs - sendmail, exim, qmail,
smail, others) will do this, when invoked by a Mail User Agent (MUA) like
mail, pine, or elm. You can set your MTA up (at least you can do this with
sendmail, probably others too) to use the MTA on another host as a relay for
all outgoing mail.

The only MUA I know of offhand that will send mail directly to an MTA on
another machine is Netscape. Newer versions of pine can do POP3 mail
downloads, though, so pine may also be able to access a remote MTA directly.
Or, if your only need is to send automated mail (trouble reports from a
router to the sysadmin, for example), you might think about writing a perl
script that uses the SMTP package available for perl.

One last question: what do you mean by "disable" sendmail? To send outgoing
mail, you don't need to run an SMTP daemon; that is just needed for
receiving mail. When a MUA sends a message, it invokes a new sendmail (or
whatever) process directly. For outgoing mail, the only role the MTA daemon
plays is processing the mail queue, and if you really want no deamon
running, you can set up a cron job to do this.

At 11:08 AM 4/17/00 -0700, Dan Browning wrote:
>>From a script I do
>       cat blahblah | mail [EMAIL PROTECTED]
>
>by using sendmail running on the local machine.  Is there a program that can
>use a remote smtp server (hey, maybe mail can do it) so I can disable
>sendmail?
>

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to