Topic: SMTP authentication fails from application server
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: RHEL 6.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? SQL-2.1.2
- Related log if you're reporting an issue: ???
====
The reason we set up an iRedMail server is so that the accounts defined on it could be used to send application notices to our customers and to their third parties.
1. We set up iRedMail accounts for our customers.
2. Our application originates notices to our customers and to our customers' third parties recipients.
3. Web application server, via local postfix, makes TLS connection to iRedMail server.
4. Over this TLS connection, our server presents login credentials to one of our customer's iRedMail account.
5. After successful authentication, the iRedMail account is used to send/relay the notice to our customer or our customer's third party recipient via the authenticated iRedMail account.
Question 1: How do we get this to succeed from our application server?
Question 2: How do we limit which servers (two) can relay messages through iRedMail accounts on our mail server?
Currently, our attempts to complete proof-of-concept test messages have all failed to authenticate. The TLS connection is successful, but a password command failure results even when the correct username and password are provided.
Here's a typical dialog:
2015-06-25 09:04:23 SERVER -> CLIENT: 220 dev.securimate.com ESMTP Postfix
2015-06-25 09:04:23 CLIENT -> SERVER: EHLO 703672-ma.securimate.com
2015-06-25 09:04:23 SERVER -> CLIENT: 250-dev.securimate.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
2015-06-25 09:04:23 CLIENT -> SERVER: STARTTLS
2015-06-25 09:04:23 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2015-06-25 09:04:23 CLIENT -> SERVER: EHLO 703672-ma.securimate.com
2015-06-25 09:04:23 SERVER -> CLIENT: 250-dev.securimate.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
2015-06-25 09:04:23 CLIENT -> SERVER: AUTH LOGIN
2015-06-25 09:04:23 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2015-06-25 09:04:23 CLIENT -> SERVER: *** CONFIRMED base64 encoded username ***
2015-06-25 09:04:23 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2015-06-25 09:04:23 CLIENT -> SERVER: *** CONFIRMED base64 encoded password ***
2015-06-25 09:04:25 SERVER -> CLIENT: 535 5.7.8 Error: authentication failed: authentication failure
2015-06-25 09:04:25 SMTP ERROR: Password command failed: 535 5.7.8 Error: authentication failed: authentication failure
2015-06-25 09:04:25 CLIENT -> SERVER: QUIT
2015-06-25 09:04:25 SERVER -> CLIENT: 221 2.0.0 Bye
2015-06-25 09:04:25 SMTP connect() failed.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.