sendmail: When adding EXTERNAL to auth mechs drop it from trusted mechs.

This commit is contained in:
Timo Mkinen 2013-07-16 13:19:52 +03:00
parent 73e88d179a
commit 25d45e3017

View file

@ -24,7 +24,7 @@ define(`confTO_IDENT', `0')dnl
dnl # dnl #
<% if @ssl_key and @ssl_cert -%> <% if @ssl_key and @ssl_cert -%>
define(`confAUTH_OPTIONS', `A p y')dnl define(`confAUTH_OPTIONS', `A p y')dnl
TRUST_AUTH_MECH(`<%= @sendmail_auth_mech.join(' ') %>')dnl TRUST_AUTH_MECH(`<%= @sendmail_auth_mech.find_all{|mech| mech != 'EXTERNAL'}.join(' ') %>')dnl
define(`confAUTH_MECHANISMS', `<%= @sendmail_auth_mech.join(' ') %>')dnl define(`confAUTH_MECHANISMS', `<%= @sendmail_auth_mech.join(' ') %>')dnl
<% else -%> <% else -%>
define(`confAUTH_OPTIONS', `A')dnl define(`confAUTH_OPTIONS', `A')dnl