[bcn-pm] Enviar mails con Perl

Tom Bird tomamarmot.org.uk
Dij Gen 5 13:30:08 PST 2006


Alex Muntada wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> * Jordi Gil Llorca <rumano8 at hotmail.com>:
>   [2006-01-02 14:28:14 +0000]
> 
> 
>>Bien, tengo un problema a la hora de enviar mails, que no se
>>porque no recibo. He intentado mandar mails de dos maneras:
>>
>>1.- usando el comando sendmail, como indica esta web
>>[1]http://perlenespanol.baboonsoftware.com/archives-tut/000015.html
> 
> 
> Pràcticament, això és el mateix que si executes el sendmail a mà:
> 
>   $ (cat <<EOM
>   From: alexm at alexm.org
>   To: test at alexm.org
>   Subject: test subject
> 
>   test message body
>   EOM
>   ) | /usr/sbin/sendmail -t

First, I apologise for using English but my Spanish and Catalan are 
really not good enough at the moment.. (currently read only ;) as a bit 
of background I have been writing perl for money since 2001 (in the UK), 
but since September I have been working for HP in Sant Cugat although 
not doing much programming there unfortunately.

Anyway, when using sendmail -t you have to be very careful especially if 
accepting input externally as an attacker could potentially slip some 
\n's in there followed by their own data thereby you unintentionally 
become a spam relay.

Hope this is useful,
-- 
Tom


Més informació de la llista de correu Barcelona-pm