Thanks for the note - I poked around some more and it looks like the
simplest way is to put a wrapper around qmail-queue.  We'll just have to
be more careful about upgrading our distribution.  Thanks,

  Tim

On Mon, Apr 12, 1999 at 11:44:49AM +0300, Anand Buddhdev wrote:
> On Mon, Apr 12, 1999 at 03:01:42AM -0500, Tim Tsai wrote:
> 
> Look at your qmail-start line. It goes something like:
> 
> qmail-start ./Mailbox splogger qmail
> 
> The part "./Mailbox" is a default instruction to follow for any user who
> does not have a .qmail file. You could replace it with a small script that
> inserts the header of your choice. However, that default instruction will
> be overridden by a user if they create their own .qmail files. Instead of
> using your own script to insert the header, you might want to investigate
> procmail or maildrop. These are mail delivery agents which come with tools
> to insert headers. An example using maildrop is:
> 
> qmail-start '|preline reformail -A"X-Header: my header" | \
> maildrop -f "$SENDER"' splogger qmail
> 
> This one uses the reformail program from the maildrop package to add a
> header, and then passes the message to maildrop to actually deliver it.
> 
> If you really want to add a header to *all* email regardless of user's own
> .qmail files, you'll have to use the the "fixup" method as described in FAQ
> 5.5
> 
> > This must be a simple thing to do but I can't seem to find a good solution
> > around it.
> > 
> > I'd like to be able to add a header to all incoming e-mail (only remotely
> > generated is necessary so it can be through qmail-smtpd).  What is the
> > simplest/cleanest way to do this?
> > 
> > I am aware of the .qmail approach, but it seems like I'd have to do this
> > for every domain.  Is there a *global* .qmail-default, or can you force
> > qmail-local to use a global qmail-command instead of the one in the
> > recipient's home directory?
> 
> -- 
> System Administrator
> See complete headers for address, homepage and phone numbers

Reply via email to