1 (edited by lunafreya 2017-08-30 12:21:11)

Topic: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

======== Required information ====
- iRedMail version 0.9.7
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): APache
- Manage mail accounts with iRedAdmin-Pro? : Free
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

When i installed iRedmail in my localhost, all gonna be ok. I can send and receive email to all of user in my localhost.
But when i tried iRedmail to my VPS using Public IP, and then i tried to send email to outside, my email cannot delivered. Event roundcube give status "Email sent successfully".

Also when i tried to send email from outside (yahoo, gmail, etc) to my email, i cannot receive the email.

i've configured the dns for VPS.

Need a clue, please

Post's attachments

Untitled design (2).png
Untitled design (2).png 436.91 kb, 5 downloads since 2017-08-30 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

Amavisd service is not running. Please restart 'amavis' service and check again:
FYI: http://www.iredmail.org/docs/errors.htm … on-refused

Also, there's a "connection timed out", if all emails you sent out have this error, you may need to check firewall.

3

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

ZhangHuangbin wrote:

Amavisd service is not running. Please restart 'amavis' service and check again:
FYI: http://www.iredmail.org/docs/errors.htm … on-refused

Also, there's a "connection timed out", if all emails you sent out have this error, you may need to check firewall.


For amavis service, i've restarted and the service have been run. But connection still refused.

Also with firewall, i've checked and firewall is not actived. But connection still time out. sad sad

4

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

After restarting amavisd, please check log file to make sure no errors which cause amavisd quits/stops immediately.
FYI: http://www.iredmail.org/docs/file.locat … ml#amavisd

5

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

ZhangHuangbin wrote:

After restarting amavisd, please check log file to make sure no errors which cause amavisd quits/stops immediately.
FYI: http://www.iredmail.org/docs/file.locat … ml#amavisd

Also, why there is a warning "Connection Timed out". You said to check my firewall, i've checked it and all going well.
Any advices again ?

6

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

Can you reach other mail server (port 25) on this server? for example, run command:

telnet mail.iredmail.org 25

Does your ISP block port 25?

7 (edited by lunafreya 2017-09-06 11:52:31)

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

ZhangHuangbin wrote:

Can you reach other mail server (port 25) on this server? for example, run command:

telnet mail.iredmail.org 25

Does your ISP block port 25?

My ISP doesn't block port 25.
I've checked port using "netstat -nltp", and find like this following image :

port 10024,10025, and 10026 only listen for local address 127.0.0.1.
How i change from local address to my IP Public  ? (ex : 125.777.888.999:10024, 125.777.888.999:10025, 125.777.888.999:10026)

So i can send and receive email from outside, not only local ?

Post's attachments

WhatsApp Image 2017-09-06 at 3.32.21 AM.jpeg 83.82 kb, 2 downloads since 2017-09-06 

You don't have the permssions to download the attachments of this post.

8

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

For issue "Connection Refused" in amavisd, i've fixed it. All ports 10024, 10025, and 10026 have been LISTEN in my public IP.

But, i still can't send or receive mail from outside ?
This is my new log :
====================
/var/log/mail.log
====================

Sep  6 06:17:16 wm postfix/qmgr[2020]: C5F7F22504: from=<john@wm.xxx.xx>, size=534, nrcpt=1 (queue active)
Sep  6 06:17:46 wm postfix/smtp[3764]: connect to wm.domain_ex.xx[120.230.3.154]:25: Connection timed out
Sep  6 06:17:46 wm postfix/smtp[3764]: C5F7F22504: to=<admin@yyy.yy>, relay=none, delay=1053, delays=1023/0.05/30/0, dsn=4.4.1, status=deferre$
Sep  6 06:17:46 wm postfix/smtp[3763]: connect to smtp1.mailfence.com[217.182.28.161]:25: Connection timed out
Sep  6 06:18:16 wm postfix/smtp[3763]: connect to smtp2.mailfence.com[217.182.28.162]:25: Connection timed out
Sep  6 06:18:16 wm postfix/smtp[3763]: 67F5F224E7: to=<lunafreya@mailfence.com>, relay=none, delay=78178, delays=78118/0.09/60/0, dsn=4.4.1, status=d$
Sep  6 06:19:32 wm postfix/postscreen[3790]: CONNECT from [207.35.47.3]:47465 to [120.230.3.154]:25
Sep  6 06:19:32 wm postfix/dnsblog[3792]: addr 207.35.47.3 listed by domain zen.spamhaus.org as 127.0.0.4
Sep  6 06:19:33 wm postfix/postscreen[3790]: DNSBL rank 3 for [207.35.47.3]:47465
Sep  6 06:19:33 wm postfix/postscreen[3790]: DISCONNECT [207.35.47.3]:47465
Sep  6 06:23:07 wm postfix/postscreen[3867]: CONNECT from [220.130.130.26]:49492 to [120.230.3.154]:25
Sep  6 06:23:07 wm postfix/dnsblog[3869]: addr 220.130.130.26 listed by domain zen.spamhaus.org as 127.0.0.4
Sep  6 06:23:13 wm postfix/postscreen[3867]: DNSBL rank 3 for [220.130.130.26]:49492
Sep  6 06:23:14 wm postfix/postscreen[3867]: DISCONNECT [220.130.130.26]:49492
Sep  6 06:25:27 wm postfix/pickup[2019]: 80F7822520: uid=0 from=<root>
Sep  6 06:25:27 wm postfix/cleanup[4140]: 80F7822520: message-id=<20170906062527.80F7822520@wm.xxx.xx>
Sep  6 06:25:27 wm postfix/qmgr[2020]: 80F7822520: from=<root@wm.xxx.xx>, size=80538, nrcpt=1 (queue active)
Sep  6 06:25:27 wm postfix/trivial-rewrite[4142]: warning: do not list domain wm.xxx.xx in BOTH mydestination and virtual_mailbox_domains
Sep  6 06:25:27 wm postfix/pipe[4154]: 80F7822520: to=<root@wm.xxx.xx>, relay=dovecot, delay=19, delays=19/0.01/0/0.05, dsn=5.1.1, status=bounced ($
Sep  6 06:25:27 wm postfix/cleanup[4140]: B1CEC22508: message-id=<20170906062527.B1CEC22508@wm.xxx.xx>
Sep  6 06:25:27 wm postfix/qmgr[2020]: B1CEC22508: from=<>, size=2083, nrcpt=1 (queue active)
Sep  6 06:25:27 wm postfix/bounce[4157]: 80F7822520: sender non-delivery notification: B1CEC22508
Sep  6 06:25:27 wm postfix/trivial-rewrite[4142]: warning: do not list domain wm.xxx.xx in BOTH mydestination and virtual_mailbox_domains
Sep  6 06:25:27 wm postfix/qmgr[2020]: 80F7822520: removed
Sep  6 06:25:27 wm postfix/pipe[4154]: B1CEC22508: to=<root@wm.xxx.xx>, relay=dovecot, delay=0.08, delays=0.05/0/0/0.03, dsn=5.1.1, status=bounced $
Sep  6 06:25:27 wm postfix/qmgr[2020]: B1CEC22508: removed
Sep  6 06:26:25 wm postfix/postscreen[4216]: CONNECT from [192.95.49.162]:57010 to [120.230.3.154]:25
Sep  6 06:26:25 wm postfix/dnsblog[4218]: addr 192.95.49.162 listed by domain zen.spamhaus.org as 127.0.0.4
Sep  6 06:26:31 wm postfix/postscreen[4216]: DNSBL rank 3 for [192.95.49.162]:57010
Sep  6 06:26:32 wm postfix/postscreen[4216]: DISCONNECT [192.95.49.162]:57010

9

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

Now, i can received email from other mail like Yahoo, Gmail, etc.

But, still can't send email to outside.

I think, because my server can't reach port 25 like :
telnet 74.125.24.27 25
trying 74.125.24.27 25 . . .

And the connection timed out, can you give me advise to enable my port 25 ?

10

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

lunafreya wrote:

port 10024,10025, and 10026 only listen for local address 127.0.0.1.

127.0.0.1 only for these ports are CORRECT with default iRedMail settings. Why do you want them to be listened on public ip (this is wrong)?

lunafreya wrote:

Sep  6 06:25:27 wm postfix/trivial-rewrite[4142]: warning: do not list domain wm.xxx.xx in BOTH mydestination and virtual_mailbox_domains

Fix this please.

11

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

lunafreya wrote:

Sep  6 06:25:27 wm postfix/trivial-rewrite[4142]: warning: do not list domain wm.xxx.xx in BOTH mydestination and virtual_mailbox_domains

lunafreya wrote:

Fix this please.

I've fixed this.

But, my problem now can't send email to others.
From my log, always fail when connect to port 25. Like this following Log :

Sep  7 07:21:37 wm postfix/qmgr[19507]: 8024C22508: from=<admin@*****.net>, size=2127, nrcpt=1 (queue active)
Sep  7 07:21:37 wm postfix/pipe[20038]: 8024C22508: to=<smith@wm.example.com>, relay=dovecot, delay=0.38, delays=0.3/0.03/0/0.06, dsn=2.0.0, status=sent$
Sep  7 07:21:37 wm postfix/qmgr[19507]: 8024C22508: removed
Sep  7 07:21:38 wm postfix/smtpd[20018]: disconnect from unknown[130.220.1.421]
Sep  7 07:22:19 wm postfix/submission/smtpd[20070]: warning: database /etc/postfix/aliases.db is older than source file /etc/postfix/aliases
Sep  7 07:22:19 wm postfix/submission/smtpd[20070]: connect from wm.example.com[133.222.200.116]
Sep  7 07:22:19 wm postfix/submission/smtpd[20070]: Anonymous TLS connection established from wm.idnsa.id[165.227.100.216]: TLSv1 with cipher ECDHE-R$
Sep  7 07:22:19 wm postfix/submission/smtpd[20070]: 7EB8D22508: client=wm.example.com[133.222.200.116], sasl_method=LOGIN, sasl_username=smith@wm.example.$
Sep  7 07:22:19 wm postfix/cleanup[20033]: 7EB8D22508: message-id=<ef2cddab3fe163d4986fd8e0fc59903c@wm.example.com>
Sep  7 07:22:19 wm roundcube: <8ln12ceo> User smith@wm.example.com [103.233.100.8]; Message for admin@c******.net; 250: 2.0.0 Ok: queued as 7EB8D22508
Sep  7 07:22:19 wm postfix/qmgr[19507]: 7EB8D22508: from=<smith@wm.example.com>, size=752, nrcpt=1 (queue active)
Sep  7 07:22:19 wm postfix/submission/smtpd[20070]: disconnect from wm.example.com[133.222.200.116]
Sep  7 07:22:49 wm postfix/smtp[20075]: connect to wm.example.net[133.220.11.111]:25: Connection timed out


From my VPS, i can't :

telnet smtp.google.com 25

Unable to connect.

How to fix this ? please...

Thank you,

Xie xie..

12

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

Port 25 must be open to communicate with other mail servers. Please check your iptables firewall, your network firewall devices, also make sure your ISP doesn't block port 25.

13

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

I have set up the iRedadmin and Roundcube using the docker. I have created the two users and can able to send and get the message, also I can also send the message from my users to others like Gmail, Yahoo but unfortunately, I can't get the message from Gmail and Yahoo. It shows address not found. How can I fix the issue??

14

Re: Cannot send and receive email from the outside (Yahoo, gmail, etc)?

Thread was 4 years old, create an own one and provide needed informations, especially logiles