1

Topic: SMTP authentication ired as front end of exchange using LDAP

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.4
- Linux/BSD distribution name and version: Cnetos 6.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  forward to exchange
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue: None
====
Can not authenticate user to send email via the system,
I must be missing some setting????

POP and IMAP ports are forwarded directly to exchange.

Everything seems to be working fine as Email is received, filtered by IRED and delivered to the user on the exchange OK
Just can not send email as it fails authentication.
Any ideas is appreciated.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SMTP authentication ired as front end of exchange using LDAP

Are you trying to authenticate against users stored on Exchange or iRedMail? Which config files did you change for user authentication?

3

Re: SMTP authentication ired as front end of exchange using LDAP

ZhangHuangbin wrote:

Are you trying to authenticate against users stored on Exchange or iRedMail? Which config files did you change for user authentication?

Yes, I modified the files to query the LDPA database on the exchange server. but as I said I must have missed something from the howtos http://www.iredmail.org/docs/active.dir … -documents and I can not figure out what it is to fix it so it can authenticate the external user and I assume the linux SMTP server will send the email.

The file I modified is the
/etc/postfix/ldap/ldap-users.cf
/etc/postfix/transport

The others in the I left as installed.

Perhaps there is a specific howto to get this done I could not find it.

4

Re: SMTP authentication ired as front end of exchange using LDAP

Please follow our tutorial again, double check your existing config files. If it still doesn't work, please turn on debug mode in Dovecot, try to send email again, show us full log related to this testing email in Dovecot log file.
http://www.iredmail.org/docs/debug.dovecot.html

5

Re: SMTP authentication ired as front end of exchange using LDAP

ZhangHuangbin wrote:

Please follow our tutorial again, double check your existing config files. If it still doesn't work, please turn on debug mode in Dovecot, try to send email again, show us full log related to this testing email in Dovecot log file.
http://www.iredmail.org/docs/debug.dovecot.html

I have gone over several times.
I do not understand why you ask to debug dovecot, I understood Dovecot is IMAP and POP, what does it have to do with SMTP Authentication with LDAP.
I configure an external user Thunderbird or Outlook sessions of "Outgoing mail server configuration" "My server requires Authentication" or the Tbird for STARTTLS, Normal password.
and both fail to authenticate saying wrong password.

/var/log/maillog show:
May 31 06:51:19 xxxxxxxxxx postfix/submission/smtpd[6113]: warning: xxxxxxxxxxxxx: SASL PLAIN authentication failed: UGFzc3dvcmQ6

thunderbird say:

Sending of the message failed.
The message could not be sent using Outgoing server (SMTP) mail2.xxxxxxx.org for an unknown reason. Please verify that your Outgoing server (SMTP) settings are correct and try again.

6

Re: SMTP authentication ired as front end of exchange using LDAP

sergiocesar wrote:

what does it have to do with SMTP Authentication with LDAP.

Because Dovecot is SASL AUTH server used by Postfix.

7

Re: SMTP authentication ired as front end of exchange using LDAP

ZhangHuangbin wrote:
sergiocesar wrote:

what does it have to do with SMTP Authentication with LDAP.

Because Dovecot is SASL AUTH server used by Postfix.

Well, if that is the case how will /etc/dovecot/dovecot-ldap.conf look like to query the exchange server LDAP database?
I try to edit it similar to how I have the users but it does not work.
Also /etc/postfix/trasnsport is set to deliver to the exchange server not dovecot.
xxxxxx.org      smtp:[192.168.1.249]:25

Is there a specific howto to integrate iRed with the exchange?

8

Re: SMTP authentication ired as front end of exchange using LDAP

sergiocesar wrote:

Is there a specific howto to integrate iRed with the exchange?

http://www.iredmail.org/docs/active.directory.html

9

Re: SMTP authentication ired as front end of exchange using LDAP

ZhangHuangbin wrote:
sergiocesar wrote:

Is there a specific howto to integrate iRed with the exchange?

http://www.iredmail.org/docs/active.directory.html

Unfortunately that is the howto I am trying to follow and the dovecot examples are not working at all.
I have also try some of the suggestions here but no joy either.
http://www.iredmail.org/forum/topic3165 … omain.html

10

Re: SMTP authentication ired as front end of exchange using LDAP

Please turn on debug mode in Dovecot to figure out why it doesn't work as expected.
FYI: http://www.iredmail.org/docs/debug.dovecot.html