1 (edited by kunal393 2015-04-29 17:39:38)

Topic: After using Mandrill accunt, iRedMail stopped sending mails

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

Hi,

The server seems to have been working fine until I used the Mandrill Account. Now any mail sent from Interspire or roundcube is not received at the recipient end.

I just used the 587 port for Mandrill Account whereas I am using the port 25 for the server. Don't know what's the issue. Has it anything to do with Mandrill Account? I just deleted the account, BTW. The same thing happened last time as well.

Any help would highly be appreciated. Thanks for the time and effort.

----

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

2

Re: After using Mandrill accunt, iRedMail stopped sending mails

Without any logs we cannot help you. Also, don't just ignore the header for all your server's basic information.

3

Re: After using Mandrill accunt, iRedMail stopped sending mails

Error_logs from the Apache folder
--------------------------------------------
[Mon Apr 27 22:43:48 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 27 22:43:48 2015] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 27 22:43:48 2015] [notice] Digest: done
[Mon Apr 27 22:43:48 2015] [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Mon Apr 27 22:50:13 2015] [notice] caught SIGTERM, shutting down
[Mon Apr 27 22:50:14 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 27 22:50:14 2015] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 27 22:50:14 2015] [notice] Digest: done
[Mon Apr 27 22:50:14 2015] [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Mon Apr 27 22:51:11 2015] [notice] caught SIGTERM, shutting down
[Mon Apr 27 22:52:08 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 27 22:52:08 2015] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 27 22:52:08 2015] [notice] Digest: done
[Mon Apr 27 22:52:08 2015] [notice] Apache/2.2.15 (Unix) DAV/2 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Mon Apr 27 23:11:55 2015] [error] [client 162.242.212.121] File does not exist: /var/www/html/pma
[Mon Apr 27 23:11:59 2015] [error] [client 162.242.212.121] File does not exist: /var/www/html/web
[Mon Apr 27 23:12:08 2015] [error] [client 162.242.212.121] File does not exist: /var/www/html/phpAdmin
[Mon Apr 27 23:12:09 2015] [error] [client 162.242.212.121] File does not exist: /var/www/html/PHPMYADMIN
[Mon Apr 27 23:12:10 2015] [error] [client 162.242.212.121] File does not exist: /var/www/html/pMA
[Mon Apr 27 23:12:22 2015] [error] [client 162.242.212.121] File does not exist: /var/www/html/pHpMyAdMiN
[Mon Apr 27 23:12:23 2015] [error] [client 162.242.212.121] File does not exist: /var/www/html/sql
[Mon Apr 27 23:40:26 2015] [error] [client 121.101.131.3] File does not exist: /var/www/html/phph
[Mon Apr 27 23:40:26 2015] [error] [client 121.101.131.3] File does not exist: /var/www/html/phpMyAdmin
[Mon Apr 27 23:40:27 2015] [error] [client 121.101.131.3] File does not exist: /var/www/html/pma
[Mon Apr 27 23:40:28 2015] [error] [client 121.101.131.3] File does not exist: /var/www/html/myadmin
[Mon Apr 27 23:45:19 2015] [error] [client 37.59.7.130] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Mon Apr 27 23:58:23 2015] [error] [client 162.252.57.116] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue Apr 28 00:04:17 2015] [error] [client 103.8.126.170] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue Apr 28 00:50:49 2015] [error] [client 5.152.198.221] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue Apr 28 05:15:38 2015] [error] [client 93.186.201.74] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue Apr 28 06:06:13 2015] [error] [client 42.99.128.30] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /
[Tue Apr 28 07:15:04 2015] [error] [client 64.233.173.202] File does not exist: /var/www/html/emailmarketer
[Tue Apr 28 07:15:04 2015] [error] [client 64.233.173.202] File does not exist: /var/www/html/emailmarketer
[Tue Apr 28 07:15:04 2015] [error] [client 64.233.173.202] File does not exist: /var/www/html/emailmarketer
[Tue Apr 28 07:15:04 2015] [error] [client 64.233.173.197] File does not exist: /var/www/html/emailmarketer
[Tue Apr 28 07:15:04 2015] [error] [client 64.233.173.202] File does not exist: /var/www/html/emailmarketer
[Tue Apr 28 07:15:04 2015] [error] [client 64.233.173.202] File does not exist: /var/www/html/emailmarketer

4

Re: After using Mandrill accunt, iRedMail stopped sending mails

Apache has practically nothing to do with the sending of mails, any mail logs? like /var/log/maillog or /var/log/mail.log

5

Re: After using Mandrill accunt, iRedMail stopped sending mails

*) What's "Mandrill Account"?
*) If you client connected to mail server through port 25/587, Postfix will log info about this client, so please try to gather related log and paste here, others cannot help without related log. Also, if your mail client reports any error message, paste it here too. The more RELATED log you public, the easier others can help troubleshoot.

6

Re: After using Mandrill accunt, iRedMail stopped sending mails

Mandrill is like Mailgun, its an SMTP/E-Mail Sending Service

7

Re: After using Mandrill accunt, iRedMail stopped sending mails

Apr 30 08:11:04 server1 postfix/smtpd[7147]: 1DDCC2C7C6: client=server1.apekshatelecom.in[127.0.0.1]
Apr 30 08:11:04 server1 postfix/cleanup[7177]: 1DDCC2C7C6: message-id=<f7e368318a0d1ac1c74794561f65022d@apekshatelecom.in>
Apr 30 08:11:04 server1 postfix/smtpd[7147]: disconnect from server1.apekshatelecom.in[127.0.0.1]
Apr 30 08:11:04 server1 postfix/qmgr[1283]: 1DDCC2C7C6: from=<>, size=698, nrcpt=1 (queue active)
Apr 30 08:11:04 server1 postfix/smtp[7184]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Apr 30 08:11:04 server1 postfix/smtp[7184]: 1DDCC2C7C6: to=<info@apekshatelecom.in>, relay=none, delay=0.08, delays=0.08/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Apr 30 08:14:24 server1 postfix/anvil[7149]: statistics: max connection rate 1/60s for (smtp:194.63.142.101) at Apr 30 08:10:24
Apr 30 08:14:24 server1 postfix/anvil[7149]: statistics: max connection count 1 for (smtp:194.63.142.101) at Apr 30 08:10:24
Apr 30 08:14:24 server1 postfix/anvil[7149]: statistics: max cache size 1 at Apr 30 08:10:24
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 96C452C7BE: from=<root@server1.apekshatelecom.in>, size=22376, nrcpt=1 (queue active)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: C5EA82C7BF: from=<root@server1.apekshatelecom.in>, size=1445, nrcpt=1 (queue active)
Apr 30 08:15:53 server1 postfix/smtp[7234]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Apr 30 08:15:53 server1 postfix/smtp[7234]: 96C452C7BE: to=<root@server1.apekshatelecom.in>, relay=none, delay=17322, delays=17322/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Apr 30 08:15:53 server1 postfix/smtp[7236]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Apr 30 08:15:53 server1 postfix/smtp[7236]: C5EA82C7BF: to=<root@server1.apekshatelecom.in>, relay=none, delay=17148, delays=17147/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 96C452C7BE: from=<root@server1.apekshatelecom.in>, status=expired, returned to sender
Apr 30 08:15:53 server1 postfix/qmgr[1283]: C5EA82C7BF: from=<root@server1.apekshatelecom.in>, status=expired, returned to sender
Apr 30 08:15:53 server1 postfix/cleanup[7241]: 5990C2C7C7: message-id=<20150430061553.5990C2C7C7@server1.apekshatelecom.in>
Apr 30 08:15:53 server1 postfix/cleanup[7242]: 5AA3C2C7C8: message-id=<20150430061553.5AA3C2C7C8@server1.apekshatelecom.in>
Apr 30 08:15:53 server1 postfix/bounce[7237]: 96C452C7BE: sender non-delivery notification: 5990C2C7C7
Apr 30 08:15:53 server1 postfix/bounce[7240]: C5EA82C7BF: sender non-delivery notification: 5AA3C2C7C8
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 5AA3C2C7C8: from=<>, size=3397, nrcpt=1 (queue active)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 96C452C7BE: removed
Apr 30 08:15:53 server1 postfix/qmgr[1283]: C5EA82C7BF: removed
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 5990C2C7C7: from=<>, size=24328, nrcpt=1 (queue active)
Apr 30 08:15:53 server1 postfix/cleanup[7241]: 79CA42C7BE: message-id=<20150430061553.5AA3C2C7C8@server1.apekshatelecom.in>
Apr 30 08:15:53 server1 postfix/local[7244]: 5AA3C2C7C8: to=<root@server1.apekshatelecom.in>, relay=local, delay=0.15, delays=0.06/0.04/0/0.05, dsn=2.0.0, status=sent (forwarded as 79CA42C7BE)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 79CA42C7BE: from=<>, size=3549, nrcpt=1 (queue active)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 5AA3C2C7C8: removed
Apr 30 08:15:53 server1 postfix/cleanup[7242]: 7A0552C7BF: message-id=<20150430061553.5990C2C7C7@server1.apekshatelecom.in>
Apr 30 08:15:53 server1 postfix/local[7245]: 5990C2C7C7: to=<root@server1.apekshatelecom.in>, relay=local, delay=0.2, delays=0.11/0.01/0/0.09, dsn=2.0.0, status=sent (forwarded as 7A0552C7BF)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 7A0552C7BF: from=<>, size=24480, nrcpt=1 (queue active)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 5990C2C7C7: removed
Apr 30 08:15:53 server1 postfix/pipe[7246]: 79CA42C7BE: to=<postmaster@apekshatelecom.in>, relay=dovecot, delay=0.37, delays=0/0.05/0/0.31, dsn=2.0.0, status=sent (delivered via dovecot service)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 79CA42C7BE: removed
Apr 30 08:15:53 server1 postfix/pipe[7247]: 7A0552C7BF: to=<postmaster@apekshatelecom.in>, relay=dovecot, delay=0.34, delays=0.01/0.02/0/0.31, dsn=2.0.0, status=sent (delivered via dovecot service)
Apr 30 08:15:53 server1 postfix/qmgr[1283]: 7A0552C7BF: removed



This is just the part of today's log that was created when I tried to send the mail.

8

Re: After using Mandrill accunt, iRedMail stopped sending mails

Looks like amavis is off, could you check whether it is running?

9

Re: After using Mandrill accunt, iRedMail stopped sending mails

Thanks, I just figured it out. Last time also same problem. But what I can see from the webmin interface the total memory being used is just lest 0.5 GB. I have a server of 1 GB memory. What could be shutting down the Amavisd service?

Do I need to disable the annti

10

Re: After using Mandrill accunt, iRedMail stopped sending mails

1GB should be enough for Amavis to not shut down
But to make sure, do the following:

If you don't want to disable Amavisd+SpamAssassin+ClamAV, you still have 2 choices, please choose one of them, or both:
*) Add more memory to your server. e.g. 1 GB in total, or even 2 GB in total.
*) Reduce the concurrent mail process to 2, or even 1, by following below steps:
1) Update value of '$max_servers' to 1 in Amavisd config file /etc/amavisd/amvisd.conf.
$max_servers = 1;
2) Update concurrent mail processes in /etc/postfix/master.cf, in transport 'smtp-amavis':
smtp-amavis unix -  -   -   -   1  smtp
3) Restart Postfix service first, then restart Amavisd service.

11

Re: After using Mandrill accunt, iRedMail stopped sending mails

Thanks. let me check

12

Re: After using Mandrill accunt, iRedMail stopped sending mails

Not sure exactly what do you mean by "concurrent mail process?" Is it no 2 users can send mails at the same time or no 2 mail campaigns can be sent by a single user at a given time?

13

Re: After using Mandrill accunt, iRedMail stopped sending mails

Its internal processing, so 1 mail will get processed at a time, it all gets queued. When you send or receive email it just enters a queue and gets processed as soon as possible. Having a queue of 1 worker isn't much slower than having 2 workers.

14

Re: After using Mandrill accunt, iRedMail stopped sending mails

So how many mails are processed by Amavisd at a time with its default settings? Just asking

15

Re: After using Mandrill accunt, iRedMail stopped sending mails

I don't know what setting is currently on your server and I can't remember the default one. I think it sets it to 2. Just because e-mails are held in queue for a second longer won't affect your mail flow. If you'd like your mail to be queued for shorter then upgrade your server or disable AmavisD

16

Re: After using Mandrill accunt, iRedMail stopped sending mails

I just wanted to know because last like you told me I went to this link http://www.iredmail.org/docs/completely … assin.html

and just disabled the antivirus and antispam features and It just worked fine for me. So If required I can do the same this time as well without compromising with the quality.

17

Re: After using Mandrill accunt, iRedMail stopped sending mails

Thanks for the help, BTW

18

Re: After using Mandrill accunt, iRedMail stopped sending mails

If you're not bothered for spam/virus etc checking then disable it, no point keeping it on in this case

19

Re: After using Mandrill accunt, iRedMail stopped sending mails

One concern, can i completely disable the amavisd service and still send the mails. I'm asking this because Amavisd keeps on shutting down. Thanks.

20

Re: After using Mandrill accunt, iRedMail stopped sending mails

Read the link you posted, it explains that as one of the methods of disabling virus checking

21

Re: After using Mandrill accunt, iRedMail stopped sending mails

Is there any other way to do the SPF and DKIM for the mails If I disable Amavisd completely? I just want the SPF and DKIM for the mails even after Amavisd is disabled. Thanks a lot

22

Re: After using Mandrill accunt, iRedMail stopped sending mails

Not with the packages iRedMail Installs. You'd have to handle that yourself unfortunately through things like OpenDKIM and such.

23

Re: After using Mandrill accunt, iRedMail stopped sending mails

SPF is taken from the server where my domain is hosted, right?

24

Re: After using Mandrill accunt, iRedMail stopped sending mails

The Outbound SPF Settings are a DNS Record so set on your Nameservers (often same place as domain).
The SPF that Amavis/Spamassassin do is the checking of incoming e-mails SPF validity, your outgoing SPF validity will remain unchanged.
The same does not apply for DKIM, without Amavis your e-mails will not get signed, incoming e-mails will also not get DKIM Verified.

25

Re: After using Mandrill accunt, iRedMail stopped sending mails

Thanks. So OpenDKIM after disabling Amavisd with the current SPF settings will work fine?