1 (edited by kunal393 2015-02-23 23:46:59)

Topic: Unable to mail from Interspire!

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

Hi,

Thanks again for the wonderful mail package.

This is a bit strange for me. I configured the SMTP server and am able to send mail using roundcube, even outlook is configured properly and working fine.

But now I was just wondering If I could use Interspire Email Marketer by installing on the web server. I just made the installation of the software and It's working fine with the default settings. But when I fill in with my own SMTP server's details, It's throws error saying "Unable to connect to mail server: Connection refused(111)."

I put the following details:

SMTP Hostname: buyherbalife.co.in (even tried the ip)
SMTP Username: kunal@buyherbalife.co.in
SMTP Password:   My_Pass
SMTP Port: 465

I even stopped the iptables to make sure that firewall is not preventing the connection. But still the same problem. Is there any other  firewall built-in for iRedMail?

Not sure what's the issue over here. Can someone please help me out? Thanks.

----

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

2

Re: Unable to mail from Interspire!

Port should be 587 and the method tls. If it only supports ssl then you'll have to enable port 465 for ssl SMTP. iRedMail docs has a guide to do this

3

Re: Unable to mail from Interspire!

Hey, thanks for the reply!

I just checked with TLS method but throwing the error that says "A test email has not been successfully sent to the email address vtusimplified@gmail.com: 530 5.7.0 Must issue a STARTTLS command first."

I checked the settings in Outlook and I can confirm that I'm using TLS there with
IMAP Port: 143
SMTP Port: 587

And I'm able to send the mail using the outlook so that means the TLS is working fine.

Any idea what i might be missing?

4

Re: Unable to mail from Interspire!

It seems to not support TLS, follow these instructions http://www.iredmail.org/docs/enable.smtps.html and use port 465

5

Re: Unable to mail from Interspire!

7t3chguy wrote:

It seems to not support TLS, follow these instructions http://www.iredmail.org/docs/enable.smtps.html and use port 465

thanks for the quick response, lemme check it

6

Re: Unable to mail from Interspire!

Update: Working fine now.

But I did a small change from what was mentioned on the given doc page.

I did't uncomment:
#   -o smtpd_tls_wrappermode=yes

Earlier with this line uncommented, the test mail kept on sending forever, the mail was never sent.

Then I thought, not uncomment the tlswrapper for TLS itself was not working for me and also I was looking to use the ssl method.

The final configuration just worked for me.

Anyway thanks man, you saved my valuable time.

7

Re: Unable to mail from Interspire!

Small Update: It's working fine only when the firewall is stopped. When I start the iptables with the given configuration on the doc page, the web mail and Interspire pages fail to open.

I also tried the following iptables configuration but this too seems to block the web access:

-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 465 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 587 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 995 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 993 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-P OUTPUT ACCEPT
-P INPUT DROP

Everything works fine when the firewall is stopped

8

Re: Unable to mail from Interspire!

Port 80 is missing in those, just add an identical line for 80 [HTTP]

kunal393 wrote:

Small Update: It's working fine only when the firewall is stopped. When I start the iptables with the given configuration on the doc page, the web mail and Interspire pages fail to open.

I also tried the following iptables configuration but this too seems to block the web access:

-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 465 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 587 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 995 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 993 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-P OUTPUT ACCEPT
-P INPUT DROP

Everything works fine when the firewall is stopped

9

Re: Unable to mail from Interspire!

Thanks, just missed it.