Sending mails & authentification
[1/10] from: robert:muench:robertmuench at: 7-Mar-2004 16:43
Hi, I'm running a SMTP server, that requires authentification. So I try to
use esend and esmtp to get my mails out. Here is the error I get:
Net-log: "250-ENHANCEDSTATUSCODES"
Net-log: "250-8BITMIME"
Net-log: "250-SIZE"
Net-log: "250-DSN"
Net-log: "250-ONEX"
Net-log: "250-ETRN"
Net-log: "250-XUSR"
Net-log: "250-AUTH LOGIN PLAIN"
Net-log: "250 HELP"
Net-log: ["AUTH LOGIN"
"334"]
Net-log: "334 VXNlcm5hbWU6"
Net-log: [(enbase/base port/user 64) "334"]
** User Error: Server error: tcp 501 5.5.4 cannot decode AUTH parameter
enbase/base port/user 64
** Near: smtp-port: open [scheme: 'esmtp]
if email?
Does anyone has an idea what the problem is? Thanks. Robert
[2/10] from: robert:muench:robertmuench at: 9-Mar-2004 18:49
Hi, I'm running a SMTP server, that requires authentification. So I try to
use esend and esmtp to get my mails out. Here is the error I get:
Net-log: "250-ENHANCEDSTATUSCODES"
Net-log: "250-8BITMIME"
Net-log: "250-SIZE"
Net-log: "250-DSN"
Net-log: "250-ONEX"
Net-log: "250-ETRN"
Net-log: "250-XUSR"
Net-log: "250-AUTH LOGIN PLAIN"
Net-log: "250 HELP"
Net-log: ["AUTH LOGIN"
"334"]
Net-log: "334 VXNlcm5hbWU6"
Net-log: [(enbase/base port/user 64) "334"]
** User Error: Server error: tcp 501 5.5.4 cannot decode AUTH parameter
enbase/base port/user 64
** Near: smtp-port: open [scheme: 'esmtp]
if email?
Does anyone has an idea what the problem is? Thanks. Robert
[3/10] from: gchiu:compkarori at: 9-Mar-2004 20:52
=?utf-8?Q?Robert_M._M=C3=BCnch?= wrote.. apparently on 9-Mar-2004/18:49:22+1:00
>Hi, I'm running a SMTP server, that requires authentification. So I try to
>use esend and esmtp to get my mails out. Here is the error I get:
>
>Does anyone has an idea what the problem is? Thanks. Robert
RebolML message 38636 might have a work round for you.
--
Graham Chiu
http://www.compkarori.com/cerebrus
http://www.compkarori.com/rebolml
[4/10] from: atruter:labyrinth:au at: 10-Mar-2004 10:16
> RebolML message 38636 might have a work round for you.
Hi Graham,
I've been using REBOLml for the last couple of days and have found it to
be very useful. The install process was particularly well-designed, and
the "UpDate!" facility is a god-send for those of us stuck with slow
dial-up lines! ;) Thanks for sharing this great tool and providing
up-to-date data.
Regards,
Ashley
[5/10] from: gchiu:compkarori at: 10-Mar-2004 8:01
Ashley Tr=FCter wrote.. apparently on 10-Mar-2004/10:16:07+11:00
>> RebolML message 38636 might have a work round for you.
>Hi Graham,
<<quoted lines omitted: 3>>
>dial-up lines! ;) Thanks for sharing this great tool and providing
>up-to-date data.
Thanks Ashley for the comments. Good to know I'm not the only one using it :)
RebolML owes it's life to the work of others including Konstantin for the DyBase libraries,
Romano for the license for ana-list, Ammon for the icon set, Andreas for xml-rpc, Dockimbel
for the async-call, Gabriele for helping me with crontab, and others whose code I have
used to make it all come together.
Geez, sounds like another New Zealand oscar acceptance speech :)
--
Graham Chiu
http://www.compkarori.com/cerebrus
http://www.compkarori.com/rebolml
[6/10] from: robert:muench:robertmuench at: 10-Mar-2004 19:40
On Wed, 10 Mar 2004 09:26:19 +1300, Graham Chiu <[gchiu--compkarori--co--nz]>
wrote:
> RebolML message 38636 might have a work round for you.
Hi, I don't have RebolML on my laptop :-( Either a cut&paste or a web-ref
would help :-). Robert
[7/10] from: gchiu:compkarori at: 11-Mar-2004 5:55
=?utf-8?Q?Robert_M._M=C3=BCnch?= wrote.. apparently on 10-Mar-2004/19:40:12+1:00
>On Wed, 10 Mar 2004 09:26:19 +1300, Graham Chiu <[gchiu--compkarori--co--nz]>
>wrote:
>
>> RebolML message 38636 might have a work round for you.
>
>Hi, I don't have RebolML on my laptop :-( Either a cut&paste or a web-ref
>would help :-). Robert
http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=rmlZTLQ
--
Graham Chiu
http://www.compkarori.com/cerebrus
http://www.compkarori.com/rebolml
[8/10] from: robert:muench:robertmuench at: 18-Mar-2004 9:15
On Thu, 11 Mar 2004 16:44:56 +1300, Graham Chiu <[gchiu--compkarori--co--nz]>
wrote:
Hi, I had a look thru this stuff and tried it further but still no
sccuess. Is it really that hard to get SMTP authentification to work? I
can't blieve this.
I'm quite stuck at the moment if I can't use my SMTP server to send
mails... Robert
[9/10] from: Gary:Jones:usap:gov at: 31-Mar-2004 14:14
Re: Sending mails & authentification
Hi, Robert,
I'm down at the south pole, and we've had satellite problem that has made it very difficult
to keep up with the list. I just happened to check the discussion list and noticed
your problem.
The REBOL interpreter used to be more aggressive in its evaluation of expressions, and
my 2001 esend and esmtp took advantage of the evaluation. The newer versions of REBOL
over the last couple of years are less aggressive, so last year I change the patch and
found an easier way to apply it. This patch is looks for the authentication requests
and feeds the username and password, when appropriate:
system/schemes/smtp/handler/open-check: [none "220" ["EHLO" system/network/host] "250"
"AUTH LOGIN" "334" [port/user] "334" [port/pass] "235"]
Then, I would throw the following view script in front of any script that used Exchange
email. Note that the script encodes the username and password in base 64, which is required
by MS Exchange Server. You may of course replace "MSusername" with the default that you
would like presented. Hitting return key advances the field and does final entry.
view lo: layout [
text "username"
f: field "MSusername" [
system/schemes/smtp/user: copy enbase/base value 64
]
text "password"
field hide [
system/schemes/smtp/pass: copy enbase/base value 64
unview/all
]
do [focus f]
]
Then, you should be able to use the regular send command for email. With luck, this
method will still work for MS Exchange (5.5 at least).
HOWEVER, it appears as though your smtp server may want a *plain* authentication, meaning
no encoding. If so, then you may wish to try:
view lo: layout [
text "username"
f: field "username" [
system/schemes/smtp/user: copy value
]
text "password"
field hide [
system/schemes/smtp/pass: copy value
unview/all
]
do [focus f]
]
This version passes the unencoded versions of the username and password.
Hope that this helps.
--Scott Jones
[10/10] from: robert:muench:robertmuench at: 1-Apr-2004 9:26
On Wed, 31 Mar 2004 14:14:41 +1200, Jones, Scott <[Gary--Jones--usap--gov]>
wrote:
> I'm down at the south pole
I'm always amazed where Rebolers are located all over the world...
> The REBOL interpreter used to be more aggressive in its evaluation of
> ...
Thanks a lot for this information! I'm going to test it and let you know
if it works. If it works you made my day. Robert
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted