Hello,
As mentioned above this is more a perl problem than exim. We have a small
perl program which tells us where any given user (within the University) has
their mail delivered. We need this since the staff/students can have their
main mailbox location on a whole variety of systems - even externally.
We want to extend this program to let us know if any given site is (in
effect) 'banned' by us. Hence the exim '-bh' option. I've almost got
there (I think), but it seems that I need something along the lines of:
open (CMD, "| exim -d0 -bh $ipaddr 2>&1 >/dev/null |");
I can then write to CMD the SMTP commands exim expects, and receive any of
the 'LOG:' output produced by exim on the standard output.
Looks nice, but it doesn't work :-( I've tried various things - changing the
pipe(s) around; using 2 opens; etc, etc. Anyone got any ideas on this? Anyone
done it? It could be I'm missing something simple, or it could be that I need
to use something like the IPC chat2/comm.pl modules. I tried using chat2 and
got in bit of a mess - probably just bad programming :-) - I haven't tried
comm.pl yet.
I'm still working on the problem, but I thought I'd ask before I rip out any
more hair over this one! :-)
TIA for any help, (Exim 1.92/1.950, Solaris 2.5.1/2.6, perl 5.04_54)
John.
-----------------------------------------------------------------------------
John Horne E-mail: J.Horne@???
Academic and Information Services Phone : +44 (0) 1752 - 233911
University of Plymouth, UK Fax : +44 (0) 1752 - 233919
--
*** Exim information can be found at
http://www.exim.org/ ***