Project

General

Profile

Bug #1141

smtp authentication not working

Added by Richard Illes over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Notifications
Target version:
Start date:
12/29/2010
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.0
Affected Architecture:
i386

Description

I tried to setup smtp notifications, but it keeps failing with authentication errors.

Another user also verified this.

-------------------------------------------------
Well I just tested using another smtp server, and yup it fails.

I know for a fact that have the correct username and password, since I just tested the auth from command line

250 homiemail-a48.g.dreamhost.com
auth login
snipped
235 2.7.0 Authentication successful

To test from telnet you need to base64 your email address and password, send base64 encoded emailaddress, then enter then base64 encoded password. And this works fine, but put the same info into pfsense and yup it fails.

But if you have telnet access off your network, then just send directly to the mail server for the domain your wanting to sent email too.

But they need to correct this, think I will do a sniff and see what its doing wrong.

edit: Ok from a capture it never sends the auth command, nor the info.. So yeah its broke!

Associated revisions

Revision 2cd8d942 (diff)
Added by Pierre POMES over 8 years ago

Ticket #1141. Add necessary stuff for smtp auth using sasl

Revision 1edfb2de (diff)
Added by Pierre POMES over 8 years ago

Ticket #1141. Typo error, use ->user to enable auth

Revision e7c9af97 (diff)
Added by Pierre POMES over 8 years ago

Ticket #1141. Add missing sasl.inc

History

#2 Updated by Chris Buechler over 8 years ago

  • Category set to Notifications
  • Target version set to 2.0

#3 Updated by Pierre POMES over 8 years ago

Notes:
- /etc/inc/notices.inc at line 309 should set $smtp->user (and not $smtp->username which does not exist)
- After fixing this, sasl_client_class is reported to be missing during authentification (/etc/inc/smtp.inc, line 265)

#4 Updated by Pierre POMES over 8 years ago

I found the requested sasl class from here: http://www.phpclasses.org/package/1888-PHP-Single-API-for-standard-authentication-mechanisms.html

I tried on my box and it solves the issue, smtp auth is working (I tested with DynDNS mailhop outbound).

This code is under bsd licence.

Chris, I can integrate the set of files under /etc/inc. Any objection with this ?

#5 Updated by Chris Buechler over 8 years ago

Sounds fine

#6 Updated by Pierre POMES over 8 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Hi all,

Stuff added ! Auth with SMTP should work now.

Richard, may you try again ?

Thanks,
Pierre

#7 Updated by Lori Paniak over 8 years ago

Just upgraded and tested e-mail on the latest snapshot (Mon Jan 3 03:26 2011)

I get an error:

Warning: require_once(sasl.inc): failed to open stream: No such file or directory in /etc/inc/notices.inc on line 286
Fatal error: require_once(): Failed opening required 'sasl.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /etc/inc/notices.inc on line 286

#8 Updated by Alexandre Paradis over 8 years ago

Lori Paniak wrote:

Just upgraded and tested e-mail on the latest snapshot (Mon Jan 3 03:26 2011)

I get an error:

Warning: require_once(sasl.inc): failed to open stream: No such file or directory in /etc/inc/notices.inc on line 286
Fatal error: require_once(): Failed opening required 'sasl.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /etc/inc/notices.inc on line 286

same bug here.

#9 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to New

#10 Updated by Pierre POMES over 8 years ago

  • Status changed from New to Feedback

Pfff.. I forgot to add the main file for authentification (sasl.inc). It should be ok now.

Sorry for the noise.
Pierre

#11 Updated by Lori Paniak over 8 years ago

Works for me.

Thanks!

#12 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

thanks

Also available in: Atom PDF