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

Luciano Schirmer Silveira <[email protected]> 31 May 2003 11:22:24 -0300
Newsgroups gmane.mail.serialmail
Message-ID <[email protected]>
Thanks, it was really helpfull.

I put the following in /usr/local/bin/enviar:

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

#!/bin/sh
for i in /var/qmail/alias/pppdir/new/*
do
	perl -pi -e 's/^Return-Path:.*/Return-Path: <mylogin\@superig.com.br>/' $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 :)

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

When I want to send my mail I call this script.
I made maildirserial suid root so that I can call the script as normal user=
.

Any improvement is welcome!!


On Sat, 2003-05-31 at 10:33, Frank Tegtmeyer wrote:
> Luciano Schirmer Silveira <[email protected]> writes:
>=20
> > my MUA before sending them to the ISP? Is there any script (perl, awk,
> > etc.) or procmail rule I can use to do that?
>=20
> man perlrun
>=20
> look for -e and -i (use -i without extension)
>=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]>