Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Kobus Bensch on September 20, 2002, 02:23:30 AM

Title: Perl script variable
Post by: Kobus Bensch on September 20, 2002, 02:23:30 AM
Hi everyone.

I want to setup a perl script for an email form on my website and need to set a variable to the sendmail program. 2 q's.

1) Does esmith use sendmail?

2) If so what is the path?

Thanks for the help in advance.
Title: Re: Perl script variable
Post by: Meert on September 20, 2002, 11:34:00 AM
# which sendmail
/usr/sbin/sendmail
Title: Re: Perl script variable
Post by: Rich Lafferty on September 20, 2002, 06:17:06 PM
Kobus Bensch wrote:
>
> 1) Does esmith use sendmail?

No, it uses qmail.

> 2) If so what is the path?

/usr/sbin/sendmail :-)

(That's a sendmail-compatible wrapper for qmail-inject; as far as something
calling the program to hand it mail is concerned, it acts like sendmail.)

Cheers,

--Rich
Title: Re: Perl script variable
Post by: Greg Zartman on September 20, 2002, 08:42:45 PM
> (That's a sendmail-compatible wrapper for qmail-inject; as
> far as something
> calling the program to hand it mail is concerned, it acts
> like sendmail.)

The qmail's sendmail emulator doesn't provide 100% compatibility, so be sure test any scripts that use sendmail prior to deploying.   For example:  The very popular formmail.pl script (from Matt's script archive) uses the -t sendmail flag, which is not supported under qmail.

Regards,
Greg Zartman
Title: Re: Perl script variable
Post by: Arkman on September 20, 2002, 11:25:34 PM
Somwhere around here (it might be Darrell May's) is a handy little php based form mailer that works great on SME. I think that there's a how-to around as well.
Title: Re: Perl script variable
Post by: Greg Zartman on September 20, 2002, 11:43:37 PM
> Somwhere around here (it might be Darrell May's) is a handy
> little php based form mailer that works great on SME. I think
> that there's a how-to around as well.

Naaa.   Perl is MUCH better at doing this sort of thing than PHP.   Making a change to a script like formmail.pl doesn't require any serious surgery, only a minor tweak.  

Greg