<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — notify_quarantined_recipients.py syntax error]]></title>
		<link>https://forum.iredmail.org/topic19754-notifyquarantinedrecipientspy-syntax-error.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic19754.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in notify_quarantined_recipients.py syntax error.]]></description>
		<lastBuildDate>Sat, 29 Apr 2023 03:01:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: notify_quarantined_recipients.py syntax error]]></title>
			<link>https://forum.iredmail.org/post86158.html#p86158</link>
			<description><![CDATA[<p>This might just have been me being dumb.&nbsp; It seems like the cron job entry was setup to run with /usr/bin/python and not /usr/bin/python3.&nbsp; I hope this helps others if they run into this issue!</p>]]></description>
			<author><![CDATA[null@example.com (machina)]]></author>
			<pubDate>Sat, 29 Apr 2023 03:01:24 +0000</pubDate>
			<guid>https://forum.iredmail.org/post86158.html#p86158</guid>
		</item>
		<item>
			<title><![CDATA[notify_quarantined_recipients.py syntax error]]></title>
			<link>https://forum.iredmail.org/post86157.html#p86157</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.6.1<br />- Deployed with iRedMail Easy or the downloadable installer? No<br />- Linux/BSD distribution name and version: Cent7<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL<br />- Web server (Apache or Nginx): Apache<br />- Manage mail accounts with iRedAdmin-Pro? Yes<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>Hi there,</p><p>I&#039;m seeing an issue with running the notify_quarantined_recipients.py script via cron after a recent yum update of my system and doing some iredmail updates.</p><p>Every invocation by cron is sending the postmaster account a warning about a syntax error.&nbsp; Here&#039;s a snip from one of the emails:</p><p>/usr/bin/python /var/www/iredadmin/tools/notify_quarantined_recipients.py --force-all &gt;/dev/null</p><p>Traceback (most recent call last):<br />&nbsp; File &quot;/var/www/iredadmin/tools/notify_quarantined_recipients.py&quot;, line 107, in &lt;module&gt;<br />&nbsp; &nbsp; from libs import iredutils<br />&nbsp; File &quot;/var/www/iredadmin/tools/../libs/iredutils.py&quot;, line 92<br />&nbsp; &nbsp; def is_auth_email(s) -&gt; bool:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br />SyntaxError: invalid syntax</p><br /><p>Anyone else run into this recently?</p>]]></description>
			<author><![CDATA[null@example.com (machina)]]></author>
			<pubDate>Sat, 29 Apr 2023 02:53:26 +0000</pubDate>
			<guid>https://forum.iredmail.org/post86157.html#p86157</guid>
		</item>
	</channel>
</rss>
