Re: qmail-smtpd logging

2001-02-22 Thread Chris Davis

  Actually sendmail does record this as "relay=host.domain [1.2.3.4]" in
it's
  log file.

 I'm not familiar with sendmail.  Does it record this log line only for
messages
 with a non-local envelope recipient?  That would make it tricky to emulate
 with a wrapper around qmail-smtpd.

As far as I know this is put on every type of transfer,
remote-to-remote,remote-to-local, and local-to-remote. I only really need to
have it logged for remote-to-local x-fers, for say finding out the address
of an open spam relay that keeps sending me junk, that is my end-goal.
Perhaps I'm going about this the wrong way, but in the past with sendmail I
have always been able to get this information from my logs.

Thanks,
 --Chris




Re: qmail-smtpd logging

2001-02-21 Thread Chris Davis

 qmail-smtpd doesn't log it, but qmail records it in a Received: header,
like
 any other MTA does.  Is this not sufficient?  You could create a wrapper
 around qmail-smtpd which logs this information to stdout if you like.

Actually sendmail does record this as "relay=host.domain [1.2.3.4]" in it's
log file. (again I am simply referring to the last relay hit before the
message is delivered, not the originating mail server.)
So I assume qmail has no built-in way to record this? I'd rather not have to
write a wrapper
to get this information from each message header, unless of course that is
the only option. Any helpful info on how to go about writing such a program?

Thanks,
 --Chris


 Chris [EMAIL PROTECTED] wrote:
  Hi, I'm fairly new to q-mail so go easy on me. I've looked through all
sorts
  of documentation and I haven't been able to find a way to do this yet. I
  can't get qmail to log the address of a remote mail server thats sends
it
  mail to be delivered locally. example, spot.netnitco.net is running
qmail.
  the user joe gets his mail at spot.netnitco.net. someone else (using
  mail.netnitco.net as his smtp server) sends a message to
  [EMAIL PROTECTED], qmail logs this happening of course and the mail
is
  delivered to joe fine. But qmail does not log that the connection came
from
  mail.netnitco.net, I would like it to do this for several reasons. I'm
not
  sure exactly what information you'll all need from me to help me out,
I'm
  using multilog + vpopmail + daemontools if that helps.