[Exim] SMTP auth and EHLO response

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Adrian Daminato
Fecha:  
A: exim-users
Asunto: [Exim] SMTP auth and EHLO response
I've noticed (from several sources) that Netscape wants to do an AUTH
every time the SMTP server tells it that it accepts PLAIN logins after
an EHLO. The current (3.13) source is pretty good about only showing
the response when it needs to, but I had to add one more thing. I only
want users to auth that are not in the host_accept_relay but are in the
host_auth_accept_relay. I have host_auth_accept_relay set to *, but I
don't want to have to negate anything in host_accept_relay. Here is the
patch I applied:


*** src/smtp_in.c       Mon Feb  7 12:44:39 2000
--- src/smtp_in.new.c       Mon Feb  7 12:27:41 2000
***************
*** 1955,1961 ****
            (
            auth_always_advertise ||
            host_must_authenticate ||
-           verify_check_host(&host_auth_accept_relay, FALSE)
            ))
          {
          auth_instance *au;
--- 1955,1962 ----
            (
            auth_always_advertise ||
            host_must_authenticate ||
+           (verify_check_host(&host_auth_accept_relay, FALSE) &&
+            !verify_check_host(&host_accept_relay,FALSE))
            ))
          {
          auth_instance *au;


Now it will only show the AUTH lines if they are on
host_auth_accept_relay and not in host_accept_relay. This helps with
staff at the office using Netscape, (since some versions don't allow you
to save SMTP auth password) who don't want to have to enter a password
each time they send something. Roaming staff can still use the same
mail server, without having to change any config at all.

--
Adrian Daminato
TUCOWS International Corp.
http://www.tucows.com
Tel: (416) 535-0123
Fax: (416) 531-5584

"We, each of us, have a ticket to ride, and if the trip be interesting
(if it's
dull, we have only ourselves to blame), then we relish the landscape
(how
quickly it whizzes by!), interact with our fellow travelers, pay
frequent
visits to the washrooms and concession stands, and hardly ever hold up
the
ticket to the light where we can read its plainly stated destination:
The
Abyss." ... "Jitterbug Perfume", Tom Robbins.