Re: [Exim] feeding exim

Top Page
Delete this message
Reply to this message
Author: Kevin Reed
Date:  
To: exim-users
CC: Leonardo Boselli
Subject: Re: [Exim] feeding exim
If sendmail I would assume....

if (open(MAIL,"|/usr/sbin/sendmail -f $p2 $Bounce[$neStatus]")) {

You could just make your script use the above instead of exim since
sendmail normally would be a symbolic link to exim. On other
machines, the location of sendmail may be elsewhere like
/usr/lib/sendmail.


Told to us by Leonardo Boselli (leo@???)
on Sun, Jun 10, 2001 at 12:28:20PM +0200

> Not a strictly exim related question:
> i have a cgi script that invoke at a certain point
>    if (open(MAIL,"|/usr/sbin/exim -f $p2 $Bounce[$neStatus]")) {
> It works nice, however i am required to move this script on a server 
> that does not have exim, and have to rely on a SMTP server on 
> another machine.
> Does someone has a quick and dirt script (in perl) that would feed 
> a message into another machine with an SMTP server running ?
> (note: it must be a perl script to be embedded inside the cgi script, 
> i cannot call any external program from there).

>
> Leonardo Boselli
> nucleo informatico e telematico
> Dipartimento Ingegneria Civile
> Universita` di Firenze
> V. S. Marta 3 - I-50139 Firenze
> tel +39()0554796431 fax +39()055495333
> http://www.dicea.unifi.it/~leo