[horde] Problems with Horde mailer settings - but IMP works

Torben Dannhauer torben at dannhauer.info
Mon Sep 8 07:18:18 UTC 2014


Dear Horde Users/Devs,

 

I have an annoying problem in my mailer setup for the horde framework since
I switched to SMTP (mailer is still configured as SMTP).

 

What does work:

- Login into horde, using my email personal account

- Writing emails in IMP

- Receiving emails in IMP

- Sending Kronolith reminder emails by horde-alarms (it is properly set up
as cron job) as long as I'm logged into horde with my email account.

 

What does _NOT_ work:

- Sending reminder emails by horde-alarms if I'm not logged into the webmail
system.

 

Instead of getting the reminder email, I get the below listed "failed
cron-job notification" of my system user 'root' as listed below.

My mailer settings are configured for SMTP using the submission port (port
587). Since my email server requires authentication, I configured my
personal email account as followed:

 

$conf['mailer']['params']['host'] = 'smtp.server.tld';

$conf['mailer']['params']['port'] = 587;

$conf['mailer']['params']['localhost'] = server.tld';

$conf['mailer']['params']['username'] = 'my_personal_email_login';

$conf['mailer']['params']['username_auth'] = true;

$conf['mailer']['params']['password'] = 'my_personal_email_password';

$conf['mailer']['params']['password_auth'] = true;

$conf['mailer']['params']['auth'] = true;

$conf['mailer']['params']['lmtp'] = false;

$conf['mailer']['type'] = 'smtp';

 

Since the configured username (my_personal_email_login) and password works
excellent for logging into horde and using IMP directly for sending emails,
I do not have a clue why they are denied for horde-alarm send emails.

 

May it be related to TLS or whatever? My server offers AUTH only after
STARTTLS. One of the Horde devs said, it tries TLS at first anyway, so this
should not be the reason.

 

What is the parameter $conf['mailer']['params']['localhost'] ? Where is it
used?

What causes the LMTP parameter if it is checked?

 

Thanks for your help,

 

I have no clue how to solve this issue.

 

Thanks,

Torben

 

Error Message of the horde-alarms cronjob:

 

[ ERROR! ] exception 'Horde_Smtp_Exception' with message 'Server denied

           authentication.' in /usr/share/php/Horde/Smtp.php:452

           Stack trace:

           #0 /usr/share/php/Horde/Smtp.php(405): Horde_Smtp->login()

           #1 /usr/share/php/Horde/Smtp.php(508): Horde_Smtp->login()

           #2 /usr/share/php/Horde/Mail/Transport/Smtphorde.php(134):

           Horde_Smtp->send('my_personal_email...', 'my_personal_email...',

           Resource id #298, Array)

           #3 /usr/share/php/Horde/Mime/Part.php(1767):

           Horde_Mail_Transport_Smtphorde->send('my_personal_email...',
Array,

           Resource id #289)

           #4 /usr/share/php/Horde/Mime/Mail.php(459):

           Horde_Mime_Part->send('my_personal_email...',

           Object(Horde_Mime_Headers),
Object(Horde_Mail_Transport_Smtphorde))

           #5 /usr/share/php/Horde/Alarm/Handler/Mail.php(107):

           Horde_Mime_Mail->send(Object(Horde_Mail_Transport_Smtphorde))

           #6 /usr/share/php/Horde/Alarm.php(449):

           Horde_Alarm_Handler_Mail->notify(Array)

           #7 /usr/bin/horde-alarms(26): Horde_Alarm->notify(NULL, true,
false,

          Array)

           #8 {main}

           

           Next exception 'Horde_Mail_Exception' with message 'Server denied

           authentication.' in

           /usr/share/php/Horde/Mail/Transport/Smtphorde.php:136

           Stack trace:

           #0 /usr/share/php/Horde/Mime/Part.php(1767):

           Horde_Mail_Transport_Smtphorde->send('my_personal_email...',
Array,

           Resource id #289)

           #1 /usr/share/php/Horde/Mime/Mail.php(459):

           Horde_Mime_Part->send('my_personal_email...',

           Object(Horde_Mime_Headers),
Object(Horde_Mail_Transport_Smtphorde))

           #2 /usr/share/php/Horde/Alarm/Handler/Mail.php(107):

           Horde_Mime_Mail->send(Object(Horde_Mail_Transport_Smtphorde))

           #3 /usr/share/php/Horde/Alarm.php(449):

           Horde_Alarm_Handler_Mail->notify(Array)

           #4 /usr/bin/horde-alarms(26): Horde_Alarm->notify(NULL, true,
false,

           Array)

           #5 {main}

           

           Next exception 'Horde_Mime_Exception' with message 'Server denied

           authentication.' in /usr/share/php/Horde/Mime/Part.php:1769

           Stack trace:

           #0 /usr/share/php/Horde/Mime/Mail.php(459):

           Horde_Mime_Part->send('my_personal_email...',

           Object(Horde_Mime_Headers),
Object(Horde_Mail_Transport_Smtphorde))

           #1 /usr/share/php/Horde/Alarm/Handler/Mail.php(107):

           Horde_Mime_Mail->send(Object(Horde_Mail_Transport_Smtphorde))

           #2 /usr/share/php/Horde/Alarm.php(449):

           Horde_Alarm_Handler_Mail->notify(Array)

           #3 /usr/bin/horde-alarms(26): Horde_Alarm->notify(NULL, true,
false,

           Array)

           #4 {main}

           

           Next exception 'Horde_Alarm_Exception' with message 'Server
denied

           authentication.' in
/usr/share/php/Horde/Alarm/Handler/Mail.php:109

           Stack trace:

           #0 /usr/share/php/Horde/Alarm.php(449):

           Horde_Alarm_Handler_Mail->notify(Array)

           #1 /usr/bin/horde-alarms(26): Horde_Alarm->notify(NULL, true,
false,

           Array)

           #2 {main}

 

 

 



More information about the horde mailing list