On Sun, 19 Oct 2003, Paul J Stevens wrote:
>Butch Evans wrote:
>> So, is this thread gonna die without an answer, too?
>
>Do I sense a certain level of frustration here ?
Perhaps a little. I don't mean to offend. It is just that there
are 5 different threads on this same subject, and all of them ended
with no real answer.
>> Has anyone
>> gotten Postfix+DBmail (using 1.2 now) working with auto_replies?
>
>
>Do you read any C?
Not really. I tried, but it is a little (really a LOT) over my
head. :-(
> From what I understand when reading pipe.c it looks like your
>trapmail.pl is exiting with something other than 0 as result, even
>though the pipe itself is opened and closed successfully.
I used trapmail.pl as a test. Here is the full program.
#!/usr/bin/perl
$logfile = '>>/var/log/trapmail.log';
open(THELOG,$logfile);
while (<>) {
print THELOG "$_";
}
close(THELOG);
I wanted to see exactly what was being piped to sendmail to see what
was causing it to fail. Nothing ends up in the logfile that I can
see. I added an entry to the log file in the above program at the
beginning and end to see if it was really being called executed, and
still nothing. I set the trapmail.pl to "chmod 777 trapmail.pl"
once just to see if it was permissions. The /var/log/trapmail.log
is set with world read/write permissions.
>So: are you using a homebuild dbmail ? If you're using the debian
>version dbmail-smtp is running suid dbmail. Is your trapmail script
>accessible for that user ? And the logfile ?
dbmail (v1.2 now) was compiled with build.sh. I am running FreeBSD
4.5-STABLE. Everything else seems to run fine. I am just not sure
where to start. The documentation seems pretty much non-existant,
or I am looking in the wrong places.
>If you're using debian it may be that dbmail-smtp is having trouble
>accessing /usr/sbin/sendmail since it's running suid dbmail.
I thought of that. That is why I set my "test" trapmail.pl to world
read/write/execute just to test it. Perhaps I am missing something
else. Is there more information I can provide that would be
helpful?
--
Butch Evans
BPS Networks
Bernie, MO
573.293.2638