This is what I need:
I want to be able to send every single e-mail whether meant for local
delivery or external or relay, to go through a pipe, or get written to a
file.
This is what I have found:
Looking at sendmail, one not-so-easy way is to make a mailer that gets
called, that then passes the mail to my filter, and then my filter calls
sendmail for final delivery. Of course, I will have two sendmail.cf
files, one that is the default for getting the e-mail to my mailer and one
that I use as a command line argument when I call sendmail to send out the
processsed e-mail.
My problem is that I can't seem to write a mailer that can get all the
mail. I have replaced the tcp and the local mailer declarations with my
own, but for some reason I get errors (something to do with BuildAddr).
Anyone have any experience with this? Do you have example CF files that I
can look at?
What about the FILE mailer? Can I use that to just write all incoming
e-mail into a file an then process them later?
Lastly, a friend said he thinks that I am doing everything the hard way
and that there are plug-ins I can use in the latest sendmail. Where is
this documented or is he mistaken??
Thank you in advance!
-mahboud
Use sendmail.cf generated by
include(`../m4./cf.m4')
OSTYPE(`linux')
undefine(`ALIAS_FILE')
FEATURE(`nullclient',`server')
as your starting point
Replace "linux" and "server" as appropriate.