Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!ucsd!sdd.hp.com!usc!trwind!venice!waldorf From: waldorf@venice.SEDD.TRW.COM (Jerry Waldorf) Newsgroups: comp.mail.sendmail Subject: sendmail.cf Message-ID: <806@venice.SEDD.TRW.COM> Date: 7 Sep 90 20:03:33 GMT Reply-To: waldorf@venice.sedd.trw.com (Jerry Waldorf) Organization: TRW Systems Engineering & Development Division, Redondo Beach, CA Lines: 40 I have added a few lines to my sendmail.cf and its not doing what I want The lines I added were as follows: #Ruleset 0 R$*.error $#ddnerror$:$1 #local mailers Mddnerror, P=/users/waldorf/error, F=DFMPlms, S=10, R=20, A=error My error program is this: #include int main(argc, argv) int argc; char *argv[]; { char c; while((c = getc(stdin)) != EOF) { fprintf(stdout, "%c", c); } } All my error program does is this: /usr/lib/sendmail -v users.error < testfile users.error... Connecting to (ddnerror)... users.error... Executing "/users/waldorf/error" And it just sits there. So I think that sendmail is not piping the message into stdin of my process because if I just put a printf in the error program it works fine. So I guess that my program is not getting any input. So It must be in the config file. So what am I doing wrong? How do I get sendmail to pipe stdout to stdin of the Mailer program? Any help would be greatly appreciated. J. Waldorf