At 06:28 2010-12-11, Richard Reina wrote:
I am trying to find a recipe that would allow me to return a message
to the sender using ssmtp or msmtp -- I do not want to use
sendmail. Does anyone know where I might find such a recipe?
Just pipe the message you're sending into ssmtp with the appropriate
commandline. If you want to supplant sendmail entirely (versus for
"a message"), then:
$SENDMAIL="smmtp"
$SENDMAILOPTS="whatever options are necessary"
Normally, you'd use this just for FORWARDING:
:0
! address
But you can invoke it directly:
:0
| $SENDMAIL $SENDMAILOPTS address
(in which case you can change or amend options on that invocation).
When you say "return a message", are you trying to produce a bounce,
or send some other message text back to the sender?
There are examples of sending autoreplies in 'man procmailex'.
---
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