1

Topic: Amavis don't Work

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.0
- Linux/BSD distribution name and version: 10.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? YES
- Related log if you're reporting an issue: 
====

Hello,

I'm a problem with Amavis. It is 100% load and not process the messages. Mail Queue is full.

What do i do to start debug ? What do you suggest me ?

P.S: I disabled amavis and server works fine.

Thanks.
Best Wishes.

----

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

2

Re: Amavis don't Work

*) Any related error in /var/log/maillog?
*) Is clamav service running?

3

Re: Amavis don't Work

Hello,

In maillog its OK. But show this sometimes:

cat /var/log/maillog|grep amavis|grep "fatal error"
Mar  1 12:03:36 mail amavis[33050]: (33050-15) (!)Requesting process rundown after fatal error
Mar  1 12:03:38 mail amavis[33286]: (33286-11) (!)Requesting process rundown after fatal error
Mar  1 12:03:39 mail amavis[32779]: (32779-20) (!)Requesting process rundown after fatal error
Mar  1 12:03:39 mail amavis[32815]: (32815-18) (!)Requesting process rundown after fatal error
Mar  1 12:03:40 mail amavis[32646]: (32646-18) (!)Requesting process rundown after fatal error
Mar  1 12:03:42 mail amavis[33392]: (33392-08) (!)Requesting process rundown after fatal error
Mar  1 12:03:43 mail amavis[32668]: (32668-19) (!)Requesting process rundown after fatal error
Mar  1 12:03:43 mail amavis[33158]: (33158-11) (!)Requesting process rundown after fatal error
Mar  1 12:03:46 mail amavis[33616]: (33616-03) (!)Requesting process rundown after fatal error
Mar  1 12:04:22 mail amavis[31866]: (31866-15) (!)Requesting process rundown after fatal error
Mar  2 10:21:03 mail amavis[36630]: (36630-10) (!)Requesting process rundown after fatal error
Mar  2 10:21:07 mail amavis[37195]: (37195-01) (!)Requesting process rundown after fatal error
Mar  2 10:21:08 mail amavis[36229]: (36229-19) (!)Requesting process rundown after fatal error
Mar  2 10:21:08 mail amavis[36336]: (36336-12) (!)Requesting process rundown after fatal error
Mar  2 10:21:11 mail amavis[36575]: (36575-13) (!)Requesting process rundown after fatal error
Mar  2 10:21:18 mail amavis[36690]: (36690-08) (!)Requesting process rundown after fatal error
Mar  2 10:21:20 mail amavis[36505]: (36505-15) (!)Requesting process rundown after fatal error
Mar  2 10:21:21 mail amavis[36998]: (36998-05) (!)Requesting process rundown after fatal error
Mar  2 10:21:23 mail amavis[34870]: (34870-12) (!)Requesting process rundown after fatal error



Amavis:

ps aux|grep amavis
vscan     63114  99.0  0.9 252492  79044  -  R    11:38AM     3:29.08 /usr/local/sbin/amavisd (ch9-63114-09) (perl)
vscan     63998   7.0  0.9 252492  78636  -  S    11:41AM     0:09.89 /usr/local/sbin/amavisd (ch10-63998-10) (perl)
vscan     64334   7.0  0.9 252492  79392  -  S    11:42AM     0:04.90 /usr/local/sbin/amavisd (ch5-64334-05) (perl)
vscan     64498   6.0  0.9 244300  73648  -  S    11:43AM     0:01.50 /usr/local/sbin/amavisd (ch3-64498-03) (perl)
vscan     63737   4.0  0.9 248396  77168  -  S    11:40AM     0:12.39 /usr/local/sbin/amavisd (ch16-63737-16) (perl)
vscan     64400   3.0  0.9 248396  76636  -  S    11:42AM     0:06.25 /usr/local/sbin/amavisd (ch5-64400-05) (perl)
vscan     63420   2.0  1.0 252492  80088  -  S    11:39AM     0:15.08 /usr/local/sbin/amavisd (ch19-63420-19) (perl)
vscan     63860   2.0  0.9 248396  78568  -  S    11:41AM     0:09.62 /usr/local/sbin/amavisd (ch12-63860-12) (perl)
vscan     63534   1.0  0.9 252492  79252  -  S    11:39AM     0:15.36 /usr/local/sbin/amavisd (ch20-63534-20) (perl)
vscan      1243   0.0  0.8 243140  70168  -  Ss   12Feb16     2:47.41 /usr/local/sbin/amavisd (master) (perl)
postfix   62567   0.0  0.1  53032   6880  -  I    11:36AM     0:00.12 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
postfix   63410   0.0  0.1  53032   6944  -  S    11:39AM     0:00.07 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
postfix   63476   0.0  0.1  53032   6944  -  S    11:39AM     0:00.06 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
postfix   63635   0.0  0.1  53032   6944  -  S    11:40AM     0:00.04 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
postfix   63637   0.0  0.1  53032   6944  -  S    11:40AM     0:00.04 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
postfix   63750   0.0  0.1  53032   6944  -  S    11:40AM     0:00.04 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
postfix   63873   0.0  0.1  53032   6944  -  S    11:41AM     0:00.07 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
postfix   63928   0.0  0.1  53032   6944  -  S    11:41AM     0:00.03 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
postfix   63936   0.0  0.1  53032   6944  -  S    11:41AM     0:00.04 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
vscan     64492   0.0  0.9 244300  73216  -  S    11:43AM     0:01.08 /usr/local/sbin/amavisd (ch2-64492-02) (perl)
postfix   64510   0.0  0.1  53032   6944  -  S    11:43AM     0:00.02 smtp -n smtp-amavis -t unix -u -c -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=ye
root      64659   0.0  0.0  18840   1920  0  S+   11:43AM     0:00.00 grep amavis




Clamav:


ps aux|grep clam
clamav    67957   1.0  4.3 499608 359724  -  Ss   19Feb16   344:36.00 /usr/local/sbin/clamd
clamav     1259   0.0  0.1  48972   5236  -  Is   12Feb16    19:10.79 /usr/local/bin/freshclam --daemon -p /var/run/clamav/freshclam.pid

4

Re: Amavis don't Work

Hello,

maillog error:



Mar  2 14:17:31 mail amavis[7616]: (07616-09) Blocked MTA-BLOCKED {TempFailedInternal}, MYUSERS LOCAL [187.45.150.177]:49180 [187.x.x.177] <vendas@xx.com.br> -> <comercial@xx.com.br>, Queue-ID: 4A3A41223C94, Message-ID: <DB2A88D204D44A80871DFFE044BE6F09@paulopc>, mail_id: DUK1vAhsicW4, Hits: -11.897, size: 141858, 12575 ms
Mar  2 14:17:31 mail amavis[7616]: (07616-09) (!!)TROUBLE in process_request: Error writing an SMTP response to the socket: Broken pipe at (eval 142) line 1345.
Mar  2 14:17:31 mail amavis[7616]: (07616-09) (!)Requesting process rundown after fatal error




Thanks.

5

Re: Amavis don't Work

Please try to stop amavisd service, then start it again.

6 (edited by carlosdias98 2016-03-03 20:52:12)

Re: Amavis don't Work

Zhang,

I already did it. But still the same problem.

Anything else ?

7

Re: Amavis don't Work

Could you please stop amavisd service first, then run:

/usr/local/sbin/amavisd debug

*) It will log debug message on console directly instead of log file.
*) It's not running in background, so if you stop it with 'Ctrl-C', you should start it with rc script or 'service amavisd start'.

We need detailed debug message, the log you pasted was stripped, we still need log context.