1

Topic: Can't send receive mail

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):mysql
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro?NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I get this in the log:
ex@example.com => ex@example.com, DUNNO [sasl_username=ex@example.com, sender=ex@example.com, client_name=mail.example.com, reverse_client_name=mail.exampe.com, helo=_, encryption_protocol=TLSv1.2, process_time=0.0205s]
2018-12-19 15:55:53 INFO [127.0.0.1] END-OF-MESSAGE, ex@example.com => ex@example.com, DUNNO [recipient_count=1, size=344, process_time=0.0013s]

What can be the problem or what have I missed?

Thank's

----

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

2

Re: Can't send receive mail

This is just normal log, not warning or error.
Wha's your issue?

3

Re: Can't send receive mail

My issue is that I can't send or receive mail. Posted what I read in the log which is the only response I got.
It is possible to send mail between accounts in in the first domain. I have disabled grey-listing, and whitelisted the first domain. Wonder what the DUNNO message means, have seen your GIT about that but can't figure out what to do.
Have done everything else as described in the "How to Easily Set Up a Full-Featured Mail Server on Ubuntu 18.04 with iRedMail". Must point out that I have since one year a server that is working very well. For different reasons I want to start a new server instead of the old one.

I hope ou can give me a clue of what's going on......

Thank's

ulferik wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):mysql
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro?NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I get this in the log:
ex@example.com => ex@example.com, DUNNO [sasl_username=ex@example.com, sender=ex@example.com, client_name=mail.example.com, reverse_client_name=mail.exampe.com, helo=_, encryption_protocol=TLSv1.2, process_time=0.0205s]
2018-12-19 15:55:53 INFO [127.0.0.1] END-OF-MESSAGE, ex@example.com => ex@example.com, DUNNO [recipient_count=1, size=344, process_time=0.0013s]

What can be the problem or what have I missed?

Thank's

4

Re: Can't send receive mail

Please check log file /var/log/maillog instead.

5

Re: Can't send receive mail

Unfortunately there is no /var/log/maillog which indicates that there is something wrong?

ZhangHuangbin wrote:

Please check log file /var/log/maillog instead.

6

Re: Can't send receive mail

ulferik wrote:

My issue is that I can't send or receive mail.

When you send a email, there MUST be some log lines in /var/log/maillog (or /var/log/mail.log). If sending email failed, Postfix will also log relevant errors in this log file.

So could you try again and check the log file?

7 (edited by ulferik 2018-12-20 17:45:40)

Re: Can't send receive mail

I don't have /var/log maillog or /var/log/mail don't know why....

ZhangHuangbin wrote:
ulferik wrote:

My issue is that I can't send or receive mail.

When you send a email, there MUST be some log lines in /var/log/maillog (or /var/log/mail.log). If sending email failed, Postfix will also log relevant errors in this log file.

So could you try again and check the log file?

Post's attachments

varlog.JPG
varlog.JPG 37.55 kb, 1 downloads since 2018-12-20 

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

8

Re: Can't send receive mail

Try to restart "rsyslog" service.

On Debian/Ubuntu system, /var/log/syslog and /var/log/mail.log are present after system installation, i don't understand why your server doesn't have it.

9

Re: Can't send receive mail

It is an amazon ubuntu 64.
Have installed rsyslog and now I have CRON.log  amavis.log  dovecot.log  php-fpm.log  postfix.log  rsyslogd.log  sudo.log  systemd-timesyncd.log  systemd.log

In postfix.log Iget this when sending mail:
2018-12-20T12:59:25.655207+00:00 mail postfix/error[13435]: 43KTw66W1tz2806: to=<ulf@ulferik.com>, relay=none, delay=99351, delays=99351/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to rab.ulferiksplace.com[34.251.234.152]:25: Connection timed out)

Can you get anything out of this?

ZhangHuangbin wrote:

Try to restart "rsyslog" service.

On Debian/Ubuntu system, /var/log/syslog and /var/log/mail.log are present after system installation, i don't understand why your server doesn't have it.

10

Re: Can't send receive mail

I have /var/log/mail/CRON.log  amavis.log  dovecot.log  php-fpm.log  postfix.log  rsyslogd.log  sudo.log  systemd-timesyncd.log  systemd.log

11

Re: Can't send receive mail

ulferik wrote:

2018-12-20T12:59:25.655207+00:00 mail postfix/error[13435]: 43KTw66W1tz2806: to=<ulf@ulferik.com>, relay=none, delay=99351, delays=99351/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to rab.ulferiksplace.com[34.251.234.152]:25: Connection timed out)

- Amazon EC2 blocks port 25 by default, you need to contact Amazon support and ask them to unblock port 25.
- Also double check the EC2 firewall (managed in your Amazon AWS console), make sure it doesn't block port 25.

12

Re: Can't send receive mail

In my other working server I have port 25 enabled in the firewall. Not enabled by the support EC2.
I have a webserver in Forge on Amazon EC2 and enabled with IAM user. Works perfectly. You could have that in Easy_Server. smile
At the moment my letsencrypt/domain is blocked so I have to wait till after Christmas.
Merry Christmas to all of you....

ZhangHuangbin wrote:
ulferik wrote:

2018-12-20T12:59:25.655207+00:00 mail postfix/error[13435]: 43KTw66W1tz2806: to=<ulf@ulferik.com>, relay=none, delay=99351, delays=99351/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to rab.ulferiksplace.com[34.251.234.152]:25: Connection timed out)

- Amazon EC2 blocks port 25 by default, you need to contact Amazon support and ask them to unblock port 25.
- Also double check the EC2 firewall (managed in your Amazon AWS console), make sure it doesn't block port 25.

13

Re: Can't send receive mail

ulferik wrote:

In my other working server I have port 25 enabled in the firewall. Not enabled by the support EC2.

Outbound of port 25 for new Amazon EC2 instances is throttled/blocked:
https://aws.amazon.com/premiumsupport/k … -throttle/

14

Re: Can't send receive mail

My server is working and sends mail to an account/domain I have enabled in iredadmin. It sent mail to my gmail and yahoo also but suddenly stopped doing that. This shows in maillog:
Dec 26 10:20:36 mail postfix/smtp[9953]: connect to mta7.am0.yahoodns.net[98.136.102.54]:25: Connection timed out
This shows in fail2ban.log:
ubuntu@mail:~$ sudo tail -f /var/log/fail2ban.log
2018-12-25 16:17:11,247 fail2ban.filter         [18856]: INFO      findtime: 600
2018-12-25 16:17:11,247 fail2ban.actions        [18856]: INFO      banTime: 600
2018-12-25 16:17:11,249 fail2ban.jail           [18856]: INFO    Jail 'sshd' started
2018-12-25 16:21:11,484 fail2ban.server         [18856]: INFO    Shutdown in progress...
2018-12-25 16:21:11,486 fail2ban.server         [18856]: INFO    Stopping all jails
2018-12-25 16:21:11,486 fail2ban.filter         [18856]: INFO    Removed logfile: '/var/log/auth.log'
2018-12-25 16:21:11,543 fail2ban.actions        [18856]: NOTICE  [sshd] Flush ticket(s) with iptables-multiport
2018-12-25 16:21:11,692 fail2ban.jail           [18856]: INFO    Jail 'sshd' stopped
2018-12-25 16:21:11,693 fail2ban.database       [18856]: INFO    Connection to database closed.
2018-12-25 16:21:11,693 fail2ban.server         [18856]: INFO    Exiting Fail2ban

Iptables shows nothing unusual.

Anyone have a clue?

Thank's

15

Re: Can't send receive mail

1: check local firewall (done by you)
2: check Amazon EC2 firewall (done by you)
3: contact Amazon support to make sure they don't block outbound port 25

16

Re: Can't send receive mail

This is Amazon EC2 firewall:
SMTP TCP 25 0.0.0.0/0
   
SMTP TCP 25 ::/0
   
IMAP TCP 143  0.0.0.0/0
   
IMAP TCP 143 ::/0
   
Custom TCP Rule
   
TCP 587 0.0.0.0/0
   
Custom TCP Rule
   
TCP 587 ::/0

this is maillog from gmail:
Dec 26 10:40:36 mail postfix/smtp[10370]: connect to gmail-smtp-in.l.google.com[74.125.131.26]:25: Connection timed out
Dec 26 10:41:06 mail postfix/smtp[10370]: connect to alt1.gmail-smtp-in.l.google.com[108.177.125.26]:25: Connection timed out
Dec 26 10:41:36 mail postfix/smtp[10370]: connect to alt2.gmail-smtp-in.l.google.com[74.125.195.26]:25: Connection timed out
Dec 26 10:42:06 mail postfix/smtp[10370]: connect to alt3.gmail-smtp-in.l.google.com[64.233.179.26]:25: Connection timed out
Dec 26 10:42:36 mail postfix/smtp[10370]: connect to alt4.gmail-smtp-in.l.google.com[74.125.129.26]:25: Connection timed out
Dec 26 10:42:36 mail postfix/smtp[10370]: 43PngR6sKPz27tq: to=<user@gmail.com>, relay=none, delay=4505, delays=4354/0.01/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[74.125.129.26]:25: Connection timed out)

Amazon doesn't block port 25 on my other server why would they do it on the new one?

I don't know of any local firewall done by me?

17

Re: Can't send receive mail

My server ip 13.53.34.50

18

Re: Can't send receive mail

ulferik wrote:

Amazon doesn't block port 25 on my other server why would they do it on the new one?

You just don't want to believe it could be the issue sad

Amazon applies the outbound throttle on port 25 for new EC2 instance, not just for new aws account.