1

Topic: 530 5.7.0 Must issue a STARTTLS command first

==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====

Hi.
My iRedMail is working fine. BUT...
I have an external application that needs to connect to iRedMail SMTP to send emails.
In my email clients, webmail, mobile, the account works fine, but when I try to send from application I get the error ... (530 5.7.0 Must issue a STARTTLS command first)

Ex:
Host: myip...
User: email@myaccount.com
Pass: mypass
Port: 587

That's all I need to fill.

Any idea?
Tnks

----

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

2

Re: 530 5.7.0 Must issue a STARTTLS command first

Port 587 (submission) is used for secure connection (SMTP over STARTTLS). if you use port 587, your application must send STARTTLS command (after EHLO/HELO) to establish secure connection. If your application doesn't support this, use port 25 instead.

WARNING: With port 25, username and password are sent in plain text.

3

Re: 530 5.7.0 Must issue a STARTTLS command first

This is my problem. The 25 is locked in Brazil.
Measure taken by providers to try to reduce SPAM.

I need to connect through port 587. However my application does not support STARTTLS.

In another installation of iRedMail, I changed the setting to make the connection, however I do not remember what was changed in the settings of Postfix / iRedMail.

sad

4

Re: 530 5.7.0 Must issue a STARTTLS command first

I tried this: http://www.iredmail.org/forum/topic3426 … ail08.html
Restart de server, but dont work anyway.

5

Re: 530 5.7.0 Must issue a STARTTLS command first

Another way is, make Postfix listen on addition port, e.g. port 2525, then configure your application to use this port instead. Steps:

*) Open /etc/postfix/master.cf, find below line:

smtp      inet  n       -       -       -       -       smtpd

*) Copy it, but replace the first "smtp" to port number you want to use. for example, port 2525.

smtp      inet  n       -       -       -       -       smtpd
2525      inet  n       -       -       -       -       smtpd

*) Restart Postfix service, then it will listen on port 25, 587 and 2525.

Note: Please make sure you have port 2525 open in firewall (iptables, pf, etc), so that your application on another server can connect to it.

6

Re: 530 5.7.0 Must issue a STARTTLS command first

Perfect. Just works!

Tanks Zhang!