Re: [exim] testing to/from IP/port combinations

Etusivu
Poista viesti
Vastaa
Lähettäjä: Jim Cheetham
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] testing to/from IP/port combinations
Quoting J.R.Haynes (from 26/05/10 22:12):
> On Wed, 26 May 2010 at 08:25 +0100, Jim Cheetham wrote
>> 'exim -bh 127.0.0.2' is good for that, as it triggers the dnslists
>> checks properly, but I also have an ACL looking for $received_ip_address
>> and $received_port (so that I can detect the submission port, for
>> example), and '-bh' doesn't seem to populate these variables.
>>
> You need to set these with -oMi as well when using -bh. See Section 11.9
> of the manual under $received_ip_address. 'When testing with -bh, the port
> value is -1 unless it has been set using the -oMi command line option. '
>
> exim -bh 127.0.0.2 -oMi 127.0.0.1.587


Thanks to both of you, that works just fine ;-)

-jim