openbsd 3.7-stable (i386)
i'm trying to config nms-formmail- part of a set of "secure" scripts to have the same functionality as some common "matt's script archive" ones (http://nms-cgi.sourceforge.net).

In any event, I've been troubleshooting this minor but itchy problem for some time now whenever I get a chance, and I keep running into the same thing.... i've tried also using their own nms_sendmail script which emulates sendmail w/perl, but no dice.

googling, some of the most relevant posts say"

The problem was to do with not being to run a sub shell command"

(http://sourceforge.net/mailarchive/forum.php?thread_id=5241999&forum_id=4965)

apache is chrooted, but it doesn;t work w/out the chroot either....

the error message i get, it seems, all have to do with "eval":
when using their nms_sendmail script as the mailprog:

in the apache err log:

Unknown option: i
expected -t  switch at /bin/nms_sendmail line 107.
[168.243.206.181] /cgi-bin/formmail.pl: close sendmail pipe failed, 
mailprog=[/usr/bin/perl -wT /bin/nms_sendmail -io -t] at (eval 8) line 108.

==== line 107 is the last "die" one below===
die "expected -oi switch" unless $opts{'o'} eq 'i';
/======================================

when using "SMTP:mylocalsmtpserver" as the mailprog:

  connect to [10.0.1.106:25]: Protocol not supported at (eval 8) line 70.


I've tried using single and double quotes for the vars w/no dice, as to me this is obviously a concatenation problem- but would somebody please shove my nose in the right direction so i can learn from this one...?! and i know it's tempting to throw me at the nms project, but based on their replies to other ppl's post about this ot's something wrong with your server bla bla or network..." which i doubt.


VIVA obsd.
Chon

Reply via email to