On Nov 23, 2004, at 4:31 PM, [EMAIL PROTECTED] wrote:
Greg Earle writes:
      @domain: user
      This special entry results in any recipient address  of  the
      form  [EMAIL PROTECTED] to be rewritten as [EMAIL PROTECTED], where me is
      the hostname of the machine, which we expect to be  a  local
      domain.
The trouble is, I don't want virtual domains.  I'm trying to
send outgoing mail through a special external mailer if the
recipient address is of a special form ([EMAIL PROTECTED]).

And that's exactly how you go about doing it.

This is exactly how you take all mail going to one domain, and push it
somewhere else.  The "somewhere else" is defined as a local mailbox.
And, since local mailbox deliveries can be handled by a script, via the
.courier mechanism, that's how you get all mail for a domain to go to a
custom script, which can do whatever it wants with it.

Aha. I see, said the Blind Man.

I traced the output of the "couriertcpd" process that accepted
the outgoing mail, and curiously, I saw the ".courier-x500-default"
file accessed, but never read!

Correct. The job of the process kicked off by couriertcpd is to accept a
message and place it into the mail queue. Your strace shows that the
process verified that the E-mail address is valid, and is deliverable.
That's as far as it needs to go. The message is placed in the mail
queue, and the job of delivering the message falls with another process.


You need to strace the courierlocal process to see what happens during
the actual mail delivery.

Hmmn, OK. I truss'ed (this is Solaris 9) the entire transaction, forks
included. I never saw "courierlocal" called after the lstat() of
".courier-x500-default" - instead I saw the message fed to "submit".
(And a write() to ".../courier/var/tmp/trigger", right before "submit".)
I assumed that "submit" was being called to send the barf-back - maybe I'm
wrong. I'll try truss'ing "courierlocal" anyway ... thanks for the tip.


        - Greg



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to