At 09:04 2010-11-22, Raffaele wrote:
different host, but I do not want procmail to use the sendmail
configuration of the system where is my account (*).
I just need to say procmail to use a different smtp server. Do you
know any way to do that?
You'd need to have a helper app that speaks SMTP, then change the
$SENDMAIL and $SENDMAILFLAGS definitions to point to that. If you
use certain external tools which themselves might generate an email,
all bets are off.
There are a number of tools which can relay messages to a remote
server - some (such as ssmtp) presume to be a daemon running on the
local host, which may not work very well for you, though you could
probably recompile with new config-file paths, etc - but it'd likely
require a bit of work. There's the Perl Net::SMTP module, which
would allow you to draft something up to act as a submission
relay. smtpsend <http://freshmeat.net/projects/smtpsend/> is based
on Net::SMTP, and is probably the most consise tool for what you want
to accomplish.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail