6.0.0-beta13
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12830] horde_alarms using smtp-auth regardless settings in conf
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__ . ..__ .___. [__)[__)|__|| \ | | | | ||__/ |
Comment
> Configuring "No authentication" (using smtp as mailer type) leads in a > $conf['mailer']['params']['auth'] = false; > > Script horde-alarms is using a Horde_Core_Factory_Mail object for > notification (eg kronolith events) > > In function getConfig() of Horde_Core_Factory_Mail username and > password are set in case of smtp transport > /* Add username/password options now, regardless of current value of > * 'auth'. Will remove in create() if final config doesn't require > * authentication. */ > > in function create() of Horde_Core_Factory_Mail code looks like > > if (strcasecmp($transport, 'smtp') === 0) { > $transport = 'Smtphorde'; > } elseif (empty($params['auth'])) { > unset($params['username'], $params['password']); > } > > Here, username and password are only removed if > - transport is NOT set to smtp and > - auth is EMPTY (not checking for false as set in mailer config) > > In my case, transport is smtp and auth is FALSE > > So, in further, Horde_Smtp->login() is called with an username set > (with empty password) > and sending of notification fails with "Server denied authentication." > (despite setting "No authentication") > > > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers