Project

General

Profile

Actions

Bug #1141

closed

smtp authentication not working

Added by Richard Illes almost 14 years ago. Updated almost 14 years ago.

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

100%

Estimated time:
Plus Target Version:
Release Notes:
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!

Actions #2

Updated by Chris Buechler almost 14 years ago

  • Category set to Notifications
  • Target version set to 2.0
Actions #3

Updated by Pierre POMES almost 14 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)

Actions #4

Updated by Pierre POMES almost 14 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 ?

Actions #5

Updated by Chris Buechler almost 14 years ago

Sounds fine

Actions #6

Updated by Pierre POMES almost 14 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

Actions #7

Updated by Lori Paniak almost 14 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

Actions #8

Updated by Alexandre Paradis almost 14 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.

Actions #9

Updated by Chris Buechler almost 14 years ago

  • Status changed from Feedback to New
Actions #10

Updated by Pierre POMES almost 14 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

Actions #11

Updated by Lori Paniak almost 14 years ago

Works for me.

Thanks!

Actions #12

Updated by Chris Buechler almost 14 years ago

  • Status changed from Feedback to Resolved

thanks

Actions

Also available in: Atom PDF