[Exim] problem with transport_filter

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Holger Wöhle
Datum:  
To: exim-users
Betreff: [Exim] problem with transport_filter
Hello,
i have a problem writing a transport-filter:
To test it i inserted the /util/transport-filter.pl in the
/exim/configure :

remote_smtp:
    driver = smtp
    transport_filter = "/var/exim/bin/transport-filter.pl"


after running "exim -d9 -M mail" i catched following error:

SMTP>> HELO...

....
direct command:
argv[0] = /var/exim/bin/transport-filter.pl
direct command after expansion:
argv[0] = /var/exim/bin/transport-filter.pl
SMTP>> MAIL FROM:<myname@???>

SMTP<< 250 OK
SMTP>> RCPT TO:<someone@???>

SMTP<< 250 Recipient OK.
SMTP>>DATA
SMTP<<354 Enter Mail, end by a line with only '.'
SMTP>>writing message and terminating "."...
process 2834 running as transport filter
process 2835 writing to transport filter
writing data block size=542 timeout=300
copying from the filter
writing data block size=617 timeout=300
Waiting for filter process
waiting for writing process
end of filtering transport writing: yield=1
ok=0 send_quit=0 send_rset=1 continue_more=0 yield=2 first_address=0
....and other lines describing that the connection was reset.

It seems to me, that the perl-script does not proceed well...
So i tried following filter:

#!/usr/bin/perl
while (<>){
    print;
}
....same error :-(


without transport_filter everything runs fine.

any idea ?
cu
Holgi