<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — [SOLVED] Amavis stopped.]]></title>
		<link>https://forum.iredmail.org/topic19129-solved-amavis-stopped.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic19129.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] Amavis stopped..]]></description>
		<lastBuildDate>Sat, 09 Jul 2022 09:51:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83717.html#p83717</link>
			<description><![CDATA[<p>Yes, issue is fixed.</p><p>I&#039;ve checked the status of amavis this morning and it was running / active since 44 minutes ago. Which means at some stage 44 minutes ago it failed and restarted. That&#039;s the behaviour I was hoping to see.</p><p>Kindest regards.</p><p>AndrzejL</p>]]></description>
			<author><![CDATA[null@example.com (AndrzejL)]]></author>
			<pubDate>Sat, 09 Jul 2022 09:51:58 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83717.html#p83717</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83714.html#p83714</link>
			<description><![CDATA[<p>So I had an idea...</p><p>Replaced:</p><p>Restart=on-failure</p><p>with</p><p>Restart=always</p><p>in the</p><p>/usr/lib/systemd/system/amavis.service</p><p>Then running</p><p>systemctl daemon-reload<br />systemctl restart amavis</p><p>Will see if this helps with the &quot;stopped&quot; issue.</p><p>Kindest regards.</p><p>AndrzejL</p>]]></description>
			<author><![CDATA[null@example.com (AndrzejL)]]></author>
			<pubDate>Fri, 08 Jul 2022 21:42:28 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83714.html#p83714</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83713.html#p83713</link>
			<description><![CDATA[<p>Uh just a thought... Is there a limit of memory amavis can use? As in software limit configurable in the file somewhere? Maybe once its reaching it it crashes? Or am I the one that&#039;s reaching?</p><p>Kindest regards.</p><p>AndrzejL</p>]]></description>
			<author><![CDATA[null@example.com (AndrzejL)]]></author>
			<pubDate>Fri, 08 Jul 2022 18:42:13 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83713.html#p83713</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83711.html#p83711</link>
			<description><![CDATA[<p>Unfortunately it keeps happening every now and then so I created a cron job to restart amavis every hour... Its a silly solution I know but I need this working.</p><p>Last time I was able to &quot;catch it&quot; was today at 16:46:42</p><p>Jul 08 16:46:42 mail.williwonka.eu postfix/submission/smtpd[9770]: connect from 66-77-88-99-hostname [66.77.88.99]<br />Jul 08 16:46:42 mail.williwonka.eu postfix/submission/smtpd[9770]: Anonymous TLS connection established from 66-77-88-99-hostname [66.77.88.99]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256<br />Jul 08 16:46:42 mail.williwonka.eu python3[882]: iredapd [51.171.4.95] RCPT, williwonka@williwonka.eu =&gt; root@williwonka.eu, DUNNO [sasl_username=williwonka@williwonka.eu, sender=williwonka@williwonka.eu, client_name=51-171-4-95-dynamic.agg9.chf.chf-qkr.eircom.net, reverse_client_name=51-171-4-95-dynamic.agg9.chf.chf-qkr.eircom.net, helo=williwonka.eu, encryption_protocol=TLSv1.3, encryption_cipher=TLS_AES_256_GCM_SHA384, server_port=587, process_time=0.0067s]<br />Jul 08 16:46:42 mail.williwonka.eu postfix/submission/smtpd[9770]: 4Lfd1Z3HRKz1dJ: client=66-77-88-99-hostname [66.77.88.99], sasl_method=PLAIN, sasl_username=williwonka@williwonka.eu<br />Jul 08 16:46:42 mail.williwonka.eu python3[882]: iredapd [51.171.4.95] END-OF-MESSAGE, williwonka@williwonka.eu =&gt; root@williwonka.eu, DUNNO [recipient_count=1, size=688, process_time=0.0008s]<br />Jul 08 16:46:42 mail.williwonka.eu postfix/cleanup[9771]: 4Lfd1Z3HRKz1dJ: prepend: header Content-Transfer-Encoding: 8bit from 66-77-88-99-hostname [66.77.88.99]; from=&lt;williwonka@williwonka.eu&gt; to=&lt;root@williwonka.eu&gt; proto=ESMTP helo=&lt;williwonka.eu&gt;: List-Unsubscribe: mailto:&lt;sender-email-address&gt;?subject=unsubscribe&gt;&quot;<br />Jul 08 16:46:42 mail.williwonka.eu postfix/cleanup[9771]: 4Lfd1Z3HRKz1dJ: message-id=&lt;20220708154642.43197243B@williwonka.eu&gt;<br />Jul 08 16:46:42 mail.williwonka.eu postfix/qmgr[1626]: 4Lfd1Z3HRKz1dJ: from=&lt;williwonka@williwonka.eu&gt;, size=978, nrcpt=1 (queue active)<br />Jul 08 16:46:42 mail.williwonka.eu postfix/submission/smtpd[9770]: disconnect from 66-77-88-99-hostname [66.77.88.99] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8<br />Jul 08 16:46:42 mail.williwonka.eu postfix/10025/smtpd[9775]: connect from mail.williwonka.eu[127.0.0.1]<br />Jul 08 16:46:42 mail.williwonka.eu postfix/10025/smtpd[9775]: 4Lfd1Z57tKz1dK: client=mail.williwonka.eu[127.0.0.1]<br />Jul 08 16:46:42 mail.williwonka.eu postfix/cleanup[9771]: 4Lfd1Z57tKz1dK: message-id=&lt;20220708154642.43197243B@williwonka.eu&gt;<br />Jul 08 16:46:42 mail.williwonka.eu postfix/10025/smtpd[9775]: disconnect from mail.williwonka.eu[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5<br />Jul 08 16:46:42 mail.williwonka.eu postfix/qmgr[1626]: 4Lfd1Z57tKz1dK: from=&lt;williwonka@williwonka.eu&gt;, size=2247, nrcpt=1 (queue active)<br />Jul 08 16:46:42 mail.williwonka.eu amavis[2034]: (02034-20) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [51.171.4.95]:49106 [51.171.4.95] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[51.171.4.95]:49106), Queue-ID: 4Lfd1Z3HRKz1dJ, Message-ID: &lt;20220708154642.43197243B@williwonka.eu&gt;, mail_id: TrTAnwdtc5W4, b: i-JpaJPjB, Hits: -1.01, size: 990, queued_as: 4Lfd1Z57tKz1dK, Subject: &quot;Cron &lt;root@williwonka&gt; /root/.bin/Fix_WWW_Permissions.sh&quot;, From: &lt;williwonka.eu@williwonka.eu&gt;, helo=williwonka.eu, Tests: [ALL_TRUSTED=-1,T_SCC_BODY_TEXT_LINE=-0.01], autolearn=ham autolearn_force=no, autolearnscore=-0.01, dkim_new=dkim:williwonka.eu, 253 ms<br />Jul 08 16:46:42 mail.williwonka.eu postfix/amavis/smtp[9773]: 4Lfd1Z3HRKz1dJ: to=&lt;williwonka@williwonka.eu&gt;, orig_to=&lt;root@williwonka.eu&gt;, relay=127.0.0.1[127.0.0.1]:10026, delay=0.3, delays=0.03/0.01/0/0.26, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4Lfd1Z57tKz1dK)<br />Jul 08 16:46:42 mail.williwonka.eu postfix/qmgr[1626]: 4Lfd1Z3HRKz1dJ: removed<br />Jul 08 16:46:42 mail.williwonka.eu dovecot[9777]: lda(williwonka@williwonka.eu)&lt;9777&gt;&lt;TaIJLWJRyGIxJgAAFXfAmQ&gt;: sieve: from=williwonka.eu@williwonka.eu, envelope_sender=williwonka@williwonka.eu, subject=Cron &lt;root@williwonka&gt; /root/.bin/Fix_WWW_Permissions.sh, msgid=&lt;20220708154642.43197243B@williwonka.eu&gt;, size=2275, delivery_time=19ms, stored mail into mailbox &#039;INBOX&#039;<br />Jul 08 16:46:42 mail.williwonka.eu postfix/pipe[9776]: 4Lfd1Z57tKz1dK: to=&lt;williwonka@williwonka.eu&gt;, relay=dovecot, delay=0.05, delays=0.01/0.01/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)<br />Jul 08 16:46:42 mail.williwonka.eu postfix/qmgr[1626]: 4Lfd1Z57tKz1dK: removed<br />Jul 08 16:46:42 mail.williwonka.eu systemd[1]: amavis.service: Succeeded.<br />░░ Subject: Unit succeeded<br />░░ Defined-By: systemd<br />░░ Support: Link removed.<br />░░ <br />░░ The unit amavis.service has successfully entered the &#039;dead&#039; state.<br />Jul 08 16:46:42 mail.williwonka.eu systemd[1]: amavis.service: Consumed 4.566s CPU time.<br />░░ Subject: Resources consumed by unit runtime<br />░░ Defined-By: systemd<br />░░ Support: Link removed.<br />░░ <br />░░ The unit amavis.service completed and consumed the indicated resources.</p><p>I have 6 gigs of ram attached to the VM and it wasn&#039;t using even 1/3 of it when amavis crashed.</p><p>Kindest regards.</p><p>AndrzejL</p>]]></description>
			<author><![CDATA[null@example.com (AndrzejL)]]></author>
			<pubDate>Fri, 08 Jul 2022 17:59:38 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83711.html#p83711</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83708.html#p83708</link>
			<description><![CDATA[<div class="quotebox"><cite>Cthulhu wrote:</cite><blockquote><p>You should check why amavis crashed, since it starts up normally, but i guess it uses too much vram for spam and virus scanning so it shuts down</p><br /><p>I also would suggest this:</p></blockquote></div><p>Hi!</p><p>Unfortunately the service crashed last night around 2:30 again:</p><p>root@mail:~# systemctl status amavis<br />● amavis.service - Interface between MTA and virus scanner/content filters<br />&nbsp; &nbsp; &nbsp;Loaded: loaded (/lib/systemd/system/amavis.service; enabled; vendor preset: enabled)<br />&nbsp; &nbsp; &nbsp;Active: inactive (dead) since Fri 2022-07-08 02:31:41 IST; 5h 30min ago<br />.<br />.<br />Jul 08 02:31:41 mail.williwonka.eu systemd[1]: amavis.service: Succeeded.<br />Jul 08 02:31:41 mail.williwonka.eu systemd[1]: amavis.service: Consumed 5.351s CPU time.</p><p>I will up the ram for the vm to 8 see if it happens again.</p><p>I would rather not disable the mentioned above services. Its scary...</p><p>Edit: Disabled clamav. Left amavis and spam assassin running. Lets see how that goes.</p><p>Kindest regards.</p><p>AndrzejL</p>]]></description>
			<author><![CDATA[null@example.com (AndrzejL)]]></author>
			<pubDate>Fri, 08 Jul 2022 07:06:05 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83708.html#p83708</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83706.html#p83706</link>
			<description><![CDATA[<p>You should check why amavis crashed, since it starts up normally, but i guess it uses too much vram for spam and virus scanning so it shuts down</p><br /><p>I also would suggest this:<br /><a href="https://docs.iredmail.org/completely.disable.amavisd.clamav.spamassassin.html">https://docs.iredmail.org/completely.di … assin.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Cthulhu)]]></author>
			<pubDate>Fri, 08 Jul 2022 05:44:04 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83706.html#p83706</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83705.html#p83705</link>
			<description><![CDATA[<div class="quotebox"><cite>Cthulhu wrote:</cite><blockquote><p>how much vram do you have?</p></blockquote></div><p>Excellent question. This virtual machine has 4GB of RAM allocated to it.</p><p>I will increase it to 6 and see if behaviour persists.</p><p>Thank you for your reply! I appreciate it.</p><p>Kindest regards.</p><p>AndrzejL</p>]]></description>
			<author><![CDATA[null@example.com (AndrzejL)]]></author>
			<pubDate>Thu, 07 Jul 2022 22:01:39 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83705.html#p83705</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83704.html#p83704</link>
			<description><![CDATA[<p>how much vram do you have?</p>]]></description>
			<author><![CDATA[null@example.com (Cthulhu)]]></author>
			<pubDate>Thu, 07 Jul 2022 21:48:11 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83704.html#p83704</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Amavis stopped.]]></title>
			<link>https://forum.iredmail.org/post83703.html#p83703</link>
			<description><![CDATA[<p>SOLUTION:</p><div class="quotebox"><cite>AndrzejL wrote:</cite><blockquote><p>So I had an idea...</p><p>Replaced:</p><p>Restart=on-failure</p><p>with</p><p>Restart=always</p><p>in the</p><p>/usr/lib/systemd/system/amavis.service</p><p>Then running</p><p>systemctl daemon-reload<br />systemctl restart amavis</p><p>Will see if this helps with the &quot;stopped&quot; issue.</p><p>Kindest regards.</p><p>AndrzejL</p></blockquote></div><p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): <br />1.6.0<br />- Deployed with iRedMail Easy or the downloadable installer?<br />Downloadable installer<br />- Linux/BSD distribution name and version: <br />Debian Bullseye 11<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): <br />MySQL<br />- Web server (Apache or Nginx):<br />Nginx<br />- Manage mail accounts with iRedAdmin-Pro?<br />No - as far as I know its a regular iRedAdmin. Not pro...<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>Hello.</p><p>Freshly installed (maybe 2 weeks ago) iredmail 1.6.0. Installed using the downloadable .sh script.</p><p>Everything seems to be fine. I seem to receive / send e-mails as expected. However. On the occasion I see this:</p><p>● amavis.service - Interface between MTA and virus scanner/content filters<br />&nbsp; &nbsp; &nbsp;Loaded: loaded (/lib/systemd/system/amavis.service; enabled; vendor preset: enabled)<br />&nbsp; &nbsp; &nbsp;Active: inactive (dead) since Thu 2022-07-07 20:06:42 IST; 1h 2min ago<br />&nbsp; &nbsp; &nbsp; &nbsp;Docs: <br />&nbsp; &nbsp; Process: 3438 ExecStartPre=/usr/bin/find /var/lib/amavis -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS)<br />&nbsp; &nbsp; Process: 3443 ExecStartPre=/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS)<br />&nbsp; &nbsp; Process: 3445 ExecStart=/usr/sbin/amavisd-new foreground (code=exited, status=0/SUCCESS)<br />&nbsp; &nbsp;Main PID: 3445 (code=exited, status=0/SUCCESS)<br />&nbsp; &nbsp; &nbsp; &nbsp; CPU: 5.416s</p><p>Jul 07 19:46:44 mail.williwonka.eu amavis[3445]: (03445-13) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:48068 [66.77.88.99] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[66.77.88.99]:48068), Queue-ID: 4Lf53m3f8Hz1dL, Message-ID: &lt;20220707184644.51E62232C@an&gt;<br />Jul 07 20:01:39 mail.williwonka.eu amavis[3445]: (03445-14) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:47468 [66.77.88.99] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[66.77.88.99]:47468), Queue-ID: 4Lf0b15fY2z240, Message-ID: &lt;20220707152501.870A3230C@an&gt;<br />Jul 07 20:01:46 mail.williwonka.eu amavis[3445]: (03445-15) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:55258 [66.77.88.99] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[66.77.88.99]:55258), Queue-ID: 4Lf5P61vqNz1dD, Message-ID: &lt;20220707190146.0C7862456@an&gt;<br />Jul 07 20:06:39 mail.williwonka.eu amavis[3445]: (03445-16) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:51764 [66.77.88.99] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[66.77.88.99]:51764), Queue-ID: 4Ldz4T1VFJz22Q, Message-ID: &lt;20220707141657.03F3E593@pri&gt;<br />Jul 07 20:06:39 mail.williwonka.eu amavis[3445]: (03445-17) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:57786 [66.77.88.99] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[66.77.88.99]:57786), Queue-ID: 4Ldz4C0MNhz22J, Message-ID: &lt;20220707141642.CFD6E23C3@an&gt;<br />Jul 07 20:06:39 mail.williwonka.eu amavis[3445]: (03445-17-2) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:52650 [66.77.88.99] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[66.77.88.99]:52650), Queue-ID: 4Ldz820kscz22T, Message-ID: &lt;20220707142001.DF21723C3@&gt;<br />Jul 07 20:06:40 mail.williwonka.eu amavis[3445]: (03445-17-3) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:39958 [66.77.88.99] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[66.77.88.99]:39958), Queue-ID: 4Lf0hn3Gxjz244, Message-ID: &lt;20220707153001.3345E23C3@&gt;<br />Jul 07 20:06:40 mail.williwonka.eu amavis[3445]: (03445-17-4) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:39956 [66.77.88.99] ESMTP/ESMTP &lt;williwonka@williwonka.eu&gt; -&gt; &lt;williwonka@williwonka.eu&gt;, (ESMTPSA://[66.77.88.99]:39956), Queue-ID: 4Lf0hn39t8z243, Message-ID: &lt;20220707153001.311ED23E2@&gt;<br />Jul 07 20:06:42 mail.williwonka.eu systemd[1]: amavis.service: Succeeded.<br />Jul 07 20:06:42 mail.williwonka.eu systemd[1]: amavis.service: Consumed 5.416s CPU time.</p><p>I am unable to figure out why amavis dies but then when restarted I seem to be getting a lot of backlogged e-mails.</p><p>Can you please try and help?</p><p>Ask for any additional info like command outputs or logs and you shall receive it.</p><p>Kindest regards.</p><p>AndrzejL</p>]]></description>
			<author><![CDATA[null@example.com (AndrzejL)]]></author>
			<pubDate>Thu, 07 Jul 2022 20:27:59 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83703.html#p83703</guid>
		</item>
	</channel>
</rss>
