Re: [Exim] Faking authenticated senders while testing ACLs

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Sandip Bhattacharya
Fecha:  
A: Exim Users List
Asunto: Re: [Exim] Faking authenticated senders while testing ACLs
On Sun, 27 Jun 2004 12:40:36 -0400, Stephen Gran <steve@???> wrote:
> > I want to run a relay test for my acls. I am selectively blocking
> > certain authenticated senders from sending mail to some fixed
> > destinations.
> >
> > How would I be using "exim -bhc" by faking a $authenticated_id?
>
> After EHLO <hostname> use AUTH <AUTH Method>.
> Use this perl snippet from the exim docs to get a Base-64 encoded string
> to send:
> #!/usr/bin/perl
> use MIME::Base64;
> printf ("%s", encode_base64(eval "\"$ARGV[0]\""));
>


Thanks for the pointer. It prompted me to check the correct section of
the spec. This worked for me:

#!/usr/bin/perl
use MIME::Base64;
printf ("%s", encode_base64("\0$ARGV[0]\0$ARGV[1]"));

Thanks!

- Sandip

--
Sandip Bhattacharya
sandip (at) puroga.com
Puroga Technologies Pvt. Ltd.
Work: http://www.puroga.com        Home: http://www.sandipb.net


GPG: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3