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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: J.R.Haynes
Dátum:  
Címzett: Jim Cheetham
CC: exim users
Tárgy: Re: [exim] testing to/from IP/port combinations
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


This frequently catches me out as well!



--
------------------------------------------------------------------------------

                              J. R. Haynes
                         Senior Network Specialist


      IT Department,                  e-mail: J.Haynes@???
      Bld 63,
      Cranfield University,           Tel: Bedford (01234) 754205
      Wharley End,                         Bedford (01234) 750111 Extn 4205
      Cranfield,                      Fax: Bedford (01234) 751814
      Beds.,
      MK43 0AL.