<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Mail sending issues related to milter acl plugin]]></title>
	<link rel="self" href="https://forum.iredmail.org/feed-atom-topic21208.xml" />
	<updated>2026-08-28T06:21:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.iredmail.org/topic21208-mail-sending-issues-related-to-milter-acl-plugin.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Mail sending issues related to milter acl plugin]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92205.html#p92205" />
			<content type="html"><![CDATA[<p>It&#039;s a bug of EE v1.8.3. Here&#039;s the full SQL commands to add them:<br /></p><div class="codebox"><pre><code>ALTER TABLE alias     ADD COLUMN IF NOT EXISTS show_in_address_book INT2 NOT NULL DEFAULT 1;
ALTER TABLE maillists ADD COLUMN IF NOT EXISTS show_in_address_book INT2 NOT NULL DEFAULT 1;

CREATE INDEX IF NOT EXISTS idx_alias_show_in_address_book     ON alias (show_in_address_book);
CREATE INDEX IF NOT EXISTS idx_maillists_show_in_address_book ON maillists (show_in_address_book);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>https://forum.iredmail.org/user2.html</uri>
			</author>
			<updated>2026-08-28T06:21:09Z</updated>
			<id>https://forum.iredmail.org/post92205.html#p92205</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Mail sending issues related to milter acl plugin]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92201.html#p92201" />
			<content type="html"><![CDATA[<p>By searching column names in databases on a known good server config, I was able to get it working like so: (connected to the vmail database in pgsql prompt)</p><div class="codebox"><pre><code>ALTER TABLE maillists ADD COLUMN show_in_address_book smallint not null DEFAULT 1;
CREATE INDEX idx_maillists_show_in_address_book ON public.maillists USING btree (show_in_address_book);
ALTER TABLE alias ADD COLUMN show_in_address_book smallint not null default 1;
CREATE INDEX idx_alias_show_in_address_book ON public.alias USING btree (show_in_address_book);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[caretech]]></name>
				<uri>https://forum.iredmail.org/user151351.html</uri>
			</author>
			<updated>2026-08-27T21:03:01Z</updated>
			<id>https://forum.iredmail.org/post92201.html#p92201</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Mail sending issues related to milter acl plugin]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92200.html#p92200" />
			<content type="html"><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 2026081001 (Backend: pgsql, Date: 2026-08-26 10:19:52) iRedMail Enterprise Edition: (url removed so post validator passes)<br />1.8.4 PGSQL edition.</p><p>- Deployed via script originally, recently upgraded to EE<br />- Linux/BSD distribution name and version: Debian 12.15<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL<br />- Web server (Apache or Nginx): Nginx<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>Milter seems to be making us problems. When trying to send any oubound mail, immediate failure with error 451 4.7.1 Service Unavailable.</p><p>Error message in /var/log/milter/milter.log:<br /></p><div class="codebox"><pre><code>Error while applying plugin acl: pq: column &quot;show_in_address_book&quot; does not exist at column 97 (42703)</code></pre></div><p>If I remove the `acl` plugin from milter in `settings.json`&nbsp; and restart milter then outbound mail works. Do we have some missing database schema? I&#039;ve beat my head for hours on this one now.</p>]]></content>
			<author>
				<name><![CDATA[caretech]]></name>
				<uri>https://forum.iredmail.org/user151351.html</uri>
			</author>
			<updated>2026-08-27T16:20:50Z</updated>
			<id>https://forum.iredmail.org/post92200.html#p92200</id>
		</entry>
</feed>
