Joshua Haberman wrote:
> * Mr. Wade ([EMAIL PROTECTED]) wrote:
> > Rod Pike wrote:
> > > Can a send hook be used so that ultimately, a different mail server will
> > > be used to send the mail?
> >
> > Just off the top of my head... you could use a send-hook to
> > change the $sendmail variable to call a script that would copy an
> > alternate sendmail.cf into /etc/sendmail.cf before passing the
> > email to sendmail. Of course,... overwriting /etc/sendmail.cf
> > would require root access, necessitating the use of sudo. Hmm...
>
> Even easier, you could simply change the $sendmail variable to call
> sendmail with a -C parameter that would specify on the command line what
> configuration file to use -- hence, no sudo would be necessary.
Good point! Before replying, I did a quick skim though the
sendmail manpage looking for just such a command line switch, but
I guess I missed it. (Of course, none of this really addresses
the question of WHY one would want to do this. As long as one's
"regular" smtp host allows one to relay, what's the point of
switching servers?)
-- Mr. Wade
--
Linux: The Choice of the GNU Generation