Re: My ISP doesn't relay my e-mail's

Luciano Schirmer Silveira <[email protected]> 05 Jun 2003 00:30:38 -0300
Newsgroups gmane.mail.serialmail
Message-ID <[email protected]>
I'm working on it, but to say the truth, that script doesn't work!!
I don't know what happens. The script is:

--------------------------

#!/bin/sh
for i in /var/qmail/alias/pppdir/new/*
do
        perl -pi -e 's/^Return-Path:.*/Return-Path: <mylogin\@superig.com.b=
r>/' $i
done

/usr/local/bin/maildirsmtp ~alias/pppdir alias-ppp- smtp.superig.com.br sup=
erig.com.br

cowsay "Your mail was sent!!!"    # a cute cow say that the mail is sent :)

--------------------------

The problem is that it runs the perl part for every file in
~alias/pppdir/new/, then it does not send the e-mail using the
maildirsmtp line, but it runs the cowsay line.

If I change the perl part by another thing like an 'echo' command, the
e-mails are sent correctly. Seems like perl is fu**ing it all!!

I'd appreciate more details about a way of triggering. Any information
is welcome.

Thanks for now!!

On Sat, 2003-05-31 at 12:16, Frank Tegtmeyer wrote:
> Luciano Schirmer Silveira <[email protected]> writes:
>=20
> > I made maildirserial suid root so that I can call the script as normal =
user.
>=20
> Better to use some kind of trigger to let this script start.
>=20
> Easy to use: presence of a file, available data in a named pipe,
> incoming mail for a special alias, ...
>=20
> Regards, Frank
>=20
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Scan engine: VirusScan / Atualizado em 28/05/2003 / Vers=E3o: 1.3.13
> Proteja o seu e-mail Terra: http://www.emailprotegido.terra.com.br/
--=20
Luciano Schirmer Silveira <[email protected]>