Dear "David Harris" <[EMAIL PROTECTED]>
Sorry for the rather late reply to your help on my mail footer.
I run Redhat 6.0 and am using Dave's LWQ for my setup.
I did the patch to qmail as per your email but I get no footer on the
mail. Your advice on where to look for errors is much appriciated.
I put the perl script in this file:
/var/qmail/bin/qmail-smtpd-wrapper
----------------------------------
#!/bin/bash
ulimit -d 1024
/var/qmail/bin/footer-add.pl
exec /var/qmail/bin/qmail-smtpd ${1+"$@"}
-----------------------------------
Is that the right place for it
or should it be in the Dave's startup script.
----------------------------------
echo -n " qmail-smtpd"
supervise /var/supervise/qmail/smtpd tcpserver -v -x/etc/tcp.smtp.cdb \
-u$QMAILDUID -g$NOFILESGID 0 smtp \
/var/qmail/bin/qmail-smtpd-wrapper 2>&1 | setuser qmaill accustamp | \
setuser qmaill cyclog /var/log/qmail/smtpd &
echo "."
------------------------------------
below is the footer-add.pl
--------------------------
-rwxr-xr-x 1 root root 164 Jan 3 22:02 footer-add.pl
-----------------------------
#!/usr/bin/perl
use strict;
if ( $ENV{'TCPLOCALIP'} eq "172.16.1.1" ) {
$ENV{'FOOTER'} = "\n--------------\n col7.metta.lk \n";
}
exec @ARGV;
die "exec failed"
----------------------------
When I execute the perl script by hand I get this error
[root@narada bin]# ./footer-add.pl
exec failed at ./footer-add.pl line 7.
and this is what comes in my qmail messages
-------------------------------------------
946921518.144139 tcpserver: status: 1/40
946921518.144721 tcpserver: pid 1245 from 10.0.0.3
946921519.073927 tcpserver: ok 1245 narada.col7.metta.lk:172.16.1.1:25:10.0.0.3::1030
946921519.131552 exec failed at /var/qmail/bin/footer-add.pl line 7.
946921522.264221 tcpserver: end 1245 status 0
946921522.264426 tcpserver: status: 0/40
Best regards
Jacob