On Sun, Dec 12, 1999 at 10:27:18AM +1100, Bernhard L�der wrote:
> I would prefer to do it with sendmail, because I have hardly any experience
> with Qmail.

The simple answer is : You cant.
The difficult answer is : You still cant.
The really difficult answer is : It's _really_ ugly.

Sendmail doesn't support anything like this. The only way to do it is
through a series of rules that do the following (using a message to 
[EMAIL PROTECTED] as an example)

* For all messages which do not end in .XXXX (see later) take the To
  address and change it from [EMAIL PROTECTED] to
  [EMAIL PROTECTED],[EMAIL PROTECTED]
* Talk sendmail into redirecting this message back to itself.
* Rewrite and send all addresses ending in XXXX to drop the .XXXX and then
  send them on their way. At this point it will be sending two copies
  of the message - one to an account which logs them, and the other to the
  real addressee.

So although you can do it, it's very, very ugly, plus it involves sendmail
being run 3 times for each messages.

If you do some search on altavista/deja.com/etc you should be able to find
a copy of the sendmail rules required to do this.

The other option is just to run sendmail with the -X option to dump
everything that passes through it to a file. The format of the output isnt
pretty, but it might be good enough for what you're after.

  Scott.
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to