Re: [Exim] exim & intetd

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Kai Henningsen
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] exim & intetd
dsh8290@??? (dman) wrote on 09.01.02 in <20020109160211.GA9918@localhost>:

> On Wed, Jan 09, 2002 at 02:16:00AM +0200, Kai Henningsen wrote:
>
> | Seems to me Exim should react the same to "I'm being fed mail via a pre-
> | connected socket" regardless who did it.
>
> host_reject
> host_reject_recipient
>
> Those are lists of hosts from which you want to reject SMTP transfers.
> How can exim reject them if it can't see who opened the socket?


But it can. That's what getpeername() is for.

> If
> (x)inetd is the one accepting the connection and forwarding the data
> through to exim,


You mean, not simply handing Exim the socket? Why on earth would it do
something silly (and very hard to get right) like that? (Incidentally,
that would break tcpd as well.)

> exim will have no way of knowing where the data
> really came from to properly accept or reject it.


It will know the data came from the local host in that case.


MfG Kai