Re: [exim] Command Line

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Eli Sand
Data:  
Para: 'Exim Users List'
Asunto: Re: [exim] Command Line
Grant wrote:

> I can get a regular SMTP session to work, but when I try to use AUTH
> LOGIN I get a Not Adviertised error.


I couldn't remember how to do this off the top of my head (forgot the exact
syntax... been a while), but you have to encode the user and/or pass.
Here's a page describing how to do it, with perl scripts to encode the stuff
you need to encode:

http://qmail.jms1.net/test-auth.shtml

A simple perl script to base64 encode:

################
#!/usr/bin/perl -w --

use strict;
use MIME::Base64;

if (@ARGV < 1) {
        die "no text specified\n";
}


printf ("%s\n", encode_base64(eval "\"$ARGV[0]\""));
################

A simple perl script to decode base 64:

################
#!/usr/bin/perl -w --

use strict;
use MIME::Base64;

if (@ARGV < 1) {
        die "no text specified\n";
}


printf ("%s\n", decode_base64(eval "\"$ARGV[0]\""));
################

That should be enough to get you going.

Eli.