Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get senmail to pipe every mesage?

11 views
Skip to first unread message

mz

unread,
Nov 6, 1998, 3:00:00 AM11/6/98
to

Hi I asked this question about a month ago and got no response. Since
then, I have gone and have studied sendmail a bit (as much as my time
allows which is not very much).

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

--
mz-...@aggroup.com

Andrzej Filip

unread,
Nov 7, 1998, 3:00:00 AM11/7/98
to mz-...@aggroup.com
mz wrote:
> My problem is that I can't seem to write a mailer that can get
> all the mail.

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.

0 new messages