1

Topic: sending SMTP into iRedMail, get 503 5.5.1 Error: authentication not en

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: CentOS release 6.7 (Final)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no (sorry)
- Related log if you're reporting an issue:
====
hello,

I am trying to send a command line mail message from a server in my iRedMail subnet to the iRedMail server. I get an 503 authentication error. See below. Both the servers are brand new installs of Centos 6.7.

I read to turn on smtp sasl auth.. I have this placed these following commands into main.cf, but I keep getting 503 error. 

Any suggestions on how to make this work?  I can send this exact same message on the iRedMail server and it works.

thank you

# postconf -n | grep smtp | grep -v smtpd
content_filter = smtp-amavis:[127.0.0.1]:10024
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_tls_security_options = noanonymous
smtp_tls_loglevel = 0
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = !SSLv2 !SSLv3
smtp_tls_security_level = encrypt


#  mail -v -s "Test Subject" postmaster@mydomain.com < /dev/null
Null message body; hope that's ok
Resolving host mail.mydomain.com . . . done.
Connecting to 192.168.1.132 . . . connected.
220 whisper2.mydomain.com ESMTP Postfix
>>> EHLO web2.mydomain.com
250-whisper2.mydomain.com
250-PIPELINING
250-SIZE 15728640
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
>>> AUTH LOGIN
503 5.5.1 Error: authentication not enabled
smtp-server: 503 5.5.1 Error: authentication not enabled
"/root/dead.letter" 11/325
. . . message not sent.
#


in the sending server's /etc/mail.rc file, I have placed something like this-

set smtp=smtp://mail.mydomain.com:25
set smtp-auth=login
set smtp-auth-user=mail.mydomain.com:25
set smtp-auth-password=my_passwd

----

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

2

Re: sending SMTP into iRedMail, get 503 5.5.1 Error: authentication not en

*) How did you send email?
*) What's the original error message? It's better to show us FULL log related to this email.
*) What's the sender and recipient address in your email? Do both sender and recipient domains hosted on both servers?

3

Re: sending SMTP into iRedMail, get 503 5.5.1 Error: authentication not en

I'm going to rebuild my server... using the latest release.

I was sending email using "mail" command line client. Authentication credentials for client is in /etc/mail.rc.

not sure about the other questions.. going re-install and make sure the accounts/domains are correct.

thank you.

ZhangHuangbin wrote:

*) How did you send email?
*) What's the original error message? It's better to show us FULL log related to this email.
*) What's the sender and recipient address in your email? Do both sender and recipient domains hosted on both servers?