🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Sebastian Suchanek Sat, 29 Apr 2006 14:32
[Xnews] SMTP problems
#184255
Author: Sebastian Suchanek
Date: Sat, 29 Apr 2006 14:32
79 lines
4840 bytes
Hi everybody!

For several years, I've now been using Xnews and I've been
content with it. Thanks, Luu! :-)

But unfortunately, I've run into a problem recently, which I
can't fix myself, I'm afraid: 
I've set up an Exim mail server on my private linux box in an
effort to get rid of Hamster on my desktop machine. Exim is
working well, but Xnews gives me some troubles: It won't be
able to send mail replies via Exim. 

I've done some troubleshooting and came up with the following
(this a Exim debugging log from an SMTP session with Xnews): 

| [...]
| 20792 Listening...
| 20795 DNS lookup of 1.1.1.10.in-addr.arpa (PTR) succeeded
| 20795 IP address lookup yielded rodgeryoung.suchanek.lan
| 20795 gethostbyname2(af=inet6) returned 4 (NO_DATA)
| 20795 gethostbyname2 looked up these IP addresses:
| 20795   name=rodgeryoung.suchanek.lan address=10.1.1.1
| 20795 checking addresses for rodgeryoung.suchanek.lan
| 20795   10.1.1.1 OK
| 20795 sender_fullhost = rodgeryoung.suchanek.lan [10.1.1.1]
| 20795 sender_rcvhost = rodgeryoung.suchanek.lan ([10.1.1.1])
| 20795 set_process_info: 20795 handling incoming connection from rodgeryoung.suchanek.lan [10.1.1.1]
| 20795 host in host_reject_connection? no (option unset)
| 20795 host in sender_unqualified_hosts? no (option unset)
| 20795 host in recipient_unqualified_hosts? no (option unset)
| 20795 host in helo_verify_hosts? no (option unset)
| 20795 host in helo_try_verify_hosts? no (option unset)
| 20795 host in helo_accept_junk_hosts? no (option unset)
| 20795 SMTP>> 220 tigersclaw.suchanek.lan ESMTP Exim 4.50 Fri, 28 Apr 2006 22:15:33 +0200
| 20795 Process 20795 is ready for new message
| 20795 smtp_setup_msg entered
| 20795 SMTP<< HELO 10.1.1.1
| 20795 sender_fullhost = rodgeryoung.suchanek.lan (10.1.1.1) [10.1.1.1]
| 20795 sender_rcvhost = rodgeryoung.suchanek.lan ([10.1.1.1] helo=10.1.1.1)
| 20795 set_process_info: 20795 handling incoming connection from rodgeryoung.suchanek.lan (10.1.1.1) [10.1.1.1]
| 20795 SMTP>> 250 tigersclaw.suchanek.lan Hello rodgeryoung.suchanek.lan [10.1.1.1]
| 20795 SMTP<< AUTH LOGIN
| 20795 LOG: smtp_protocol_error MAIN
| 20795   SMTP protocol error in "AUTH LOGIN" H=rodgeryoung.suchanek.lan (10.1.1.1) [10.1.1.1] AUTH command used when not advertised
| 20795 SMTP>> 503 AUTH command used when not advertised
| 20795 SMTP>> 421 tigersclaw.suchanek.lan lost input connection
| 20795 LOG: smtp_connection MAIN
| 20795   SMTP connection from rodgeryoung.suchanek.lan (10.1.1.1) [10.1.1.1] lost
| 20795 search_tidyup called
| 20792 child 20795 ended: status=0x100
| 20792 0 SMTP accept processes now running
| [...]

Wrapping it up, Xnews starts its SMTP dialogue with a HELO
command, which leads Exim to /not/ advertise additional
options and therefore not accepting a following AUTH command.
(Which seems, as far as I've understood it, perfectly good
behavior according to RfC 821.) 

In order to use SMTP-AUTH according to RfC 2554, the clients
seems to be expected to use the EHLO command (ESMTP, RfC
1869) at the start of the session instead.

So: would it be possible to teach Xnews some better SMTP
behavior? :-)

Copy'n'pasting messages to my mail client in order to write a
mail reply is rather tedious and for security reasons, I
wouldn't like opening Exim for relaying - even for a single
client.


TIA,

Sebastian

-- 
http://www.baumaschinen-modelle.net
http://www.schwerlast-rhein-main.de
Re: [Xnews] SMTP problems
#184339
Author: John Wunderlich
Date: Mon, 01 May 2006 20:36
42 lines
2741 bytes
Sebastian Suchanek <sebastian.suchanek@gmx.de> wrote in 
news:e304db.35c.1@suchanek.de:

> [...]
> Wrapping it up, Xnews starts its SMTP dialogue with a HELO
> command, which leads Exim to /not/ advertise additional
> options and therefore not accepting a following AUTH command.
> (Which seems, as far as I've understood it, perfectly good
> behavior according to RfC 821.) 
> 
> In order to use SMTP-AUTH according to RfC 2554, the clients
> seems to be expected to use the EHLO command (ESMTP, RfC
> 1869) at the start of the session instead.
> 
> So: would it be possible to teach Xnews some better SMTP
> behavior? :-)
> 
> Copy'n'pasting messages to my mail client in order to write a
> mail reply is rather tedious and for security reasons, I
> wouldn't like opening Exim for relaying - even for a single
> client.
> 

I wouldn't hold my breath for this kind of a change in Xnews.  Luu 
wanted to write a Newsreader and only the minimal amount of email 
functionality has been added.  I was finding that the Xnews email 
functionality would not work on the network I had so I, too, had to 
install a SMTP server to accomodate Xnews.

I am not familiar with the Exim SMTP server, ... my choice was Xmail 
as it was free and supported on many hosts -- (and it seemed a 
natural to go with Xnews).  Xmail has good security for relaying and 
I found that simply restricting relaying to clients in my local 
subnet was more than adequate protection from potential abuse -- 
allowing me to bypass authentication headaches and allow Xnews to 
interoperate easily.  If Exim does not have this functionality, 
check into Xmail.

<http://www.xmailserver.org/>

HTH,
  John
Re: [Xnews] SMTP problems
#184469
Author: Patrick Lamaizière
Date: Fri, 05 May 2006 15:02
11 lines
1798 bytes
Sebastian Suchanek écrivait

> In order to use SMTP-AUTH according to RfC 2554, the clients
> seems to be expected to use the EHLO command (ESMTP, RfC
> 1869) at the start of the session instead.
> 
> So: would it be possible to teach Xnews some better SMTP
> behavior? :-)

May be with an hexadecimal editor ? Search the string HELO into the .exe
I think I will put a hack into Mime-proxy to translate HELO in EHLO.
Re: [Xnews] SMTP problems
#184475
Author: John Wunderlich
Date: Fri, 05 May 2006 19:42
22 lines
1769 bytes
Patrick Lamaizière <adresse@est.invalid> wrote in
news:Xns97BAAD5723809plam@213.41.172.177: 

> Sebastian Suchanek écrivait
> 
>> In order to use SMTP-AUTH according to RfC 2554, the clients
>> seems to be expected to use the EHLO command (ESMTP, RfC
>> 1869) at the start of the session instead.
>> 
>> So: would it be possible to teach Xnews some better SMTP
>> behavior? :-) 
> 
> May be with an hexadecimal editor ? Search the string HELO into
> the .exe I think I will put a hack into Mime-proxy to translate
> HELO in EHLO. 
> 

Not recommended.  EHLO advertises the support of many SMTP extensions 
that don't exist.  There will be problems when the server attempts to 
exercise these extensions.

-- John
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads