The question was:
>I use sendmail+IDA and I need to create a pseudo-host that traps
>mail and pipe the mail to a program.
>
>I think that this is easily done for a pseudo-user with an entry
>in the aliases file, but would like to have have a pseudo-host.
>
First of all, I would like to apologize, if the question did not
belong to the list. However, I did get few requests for summary.
Here is an answer from Robert Andersson that summarizes it:
|Quite easy to do with IDA sendmail. Basically you define a mailer in your
|.m4 file, and add entries to the mailertable using it. Belows is a copy
|of our setup. gar.no is our real domain, sx.gar.no is the pseudo-domain
|that gets routed into the serverx mailer.
|
|gars.m4:
|define(FORCE_NAMED)
|define(ALWAYSADDDOMAIN)
|define(POSTMASTERBOUNCE)
|define(PSEUDODOMAINS, BITNET UUCP)
|define(TRUSTEDUSERS, serverx news)
|define(MAILERTABLE, LIBDIR/mailertable)
|define(ALIASES, /etc/aliases)
|define(UUCPNAME, gars)
|define(MAILNAME, gar.no)
|define(PSEUDONYMS, gar.no)
|define(BANGIMPLIESUUCP)
|define(BANGONLYUUCP)
|
|include(Sendmail.mc)
|
|Mserverx, P=/local/bin/ginetr.sh, F=CDFMPhmnu, S=10, R=10, A=ginetr.sh ginet $u
|
|
|mailertable:
|serverx,gars.gar.no sx.gar.no
I would like to thank all of you that answered.
From: "Marc P. Rinfret" <Marc.Rinfret@eng.canadair.ca>
From: Robert Andersson <robert@gar.no>
From: shandelm@jpmorgan.com (Joel Shandelman)
From: Steve Lodin <swlodin@kocrsv01.delcoelect.com>
From: david@srv.pacbell.com (David St. Pierre)
From: fabrice@cisk.ATMOS.Ucla.EDU (Fabrice Cuq)
From: Jim Lick <jim@pi-chan.ucsb.edu>
From: pauline@uniq.com.au (Pauline van Winsen)
From: steve@avalon.Dartmouth.EDU (Steve Campbell)
From: stern@sunne.east.sun.com (Hal Stern - NE Area Systems Engineer)
-- Simon Shickman simon@horizon.huji.ac.il Computation Center voice: +972-2-584138 The Hebrew University of Jerusalem fax: +972-2-527349 Jerusalem 91904, ISRAEL bitnet: simon@hujivms
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:54 CDT