<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mailutils.org/usqay/index.php?action=history&amp;feed=atom&amp;title=Mailutils_acl</id>
	<title>Mailutils acl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mailutils.org/usqay/index.php?action=history&amp;feed=atom&amp;title=Mailutils_acl"/>
	<link rel="alternate" type="text/html" href="https://mailutils.org/usqay/index.php?title=Mailutils_acl&amp;action=history"/>
	<updated>2026-04-28T10:07:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.13</generator>
	<entry>
		<id>https://mailutils.org/usqay/index.php?title=Mailutils_acl&amp;diff=405&amp;oldid=prev</id>
		<title>Gray at 11:02, 11 July 2015</title>
		<link rel="alternate" type="text/html" href="https://mailutils.org/usqay/index.php?title=Mailutils_acl&amp;diff=405&amp;oldid=prev"/>
		<updated>2015-07-11T11:02:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:02, 11 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot; &gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As an example of its use, consider file &amp;lt;tt&amp;gt;test.conf&amp;lt;/tt&amp;gt; with the following contents:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As an example of its use, consider file &amp;lt;tt&amp;gt;test.conf&amp;lt;/tt&amp;gt; with the following contents:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;&amp;lt;nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;acl {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;acl {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         deny from 10.10.10.1;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         deny from 10.10.10.1;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gray</name></author>
	</entry>
	<entry>
		<id>https://mailutils.org/usqay/index.php?title=Mailutils_acl&amp;diff=402&amp;oldid=prev</id>
		<title>Gray: Created page with &quot;The &lt;tt&gt;mailutils acl&lt;/tt&gt; command tests GNU Mailutils access control lists.  By default it reads ACL from the Mailutils configiration file section...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mailutils.org/usqay/index.php?title=Mailutils_acl&amp;diff=402&amp;oldid=prev"/>
		<updated>2015-07-11T11:00:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;lt;tt&amp;gt;&lt;a href=&quot;/wiki/Mu&quot; class=&quot;mw-redirect&quot; title=&quot;Mu&quot;&gt;mailutils&lt;/a&gt; acl&amp;lt;/tt&amp;gt; command tests GNU Mailutils &lt;a href=&quot;/usqay/index.php?title=Access_Control_List&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Access Control List (page does not exist)&quot;&gt;access control lists&lt;/a&gt;.  By default it reads ACL from the Mailutils configiration file section...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;lt;tt&amp;gt;[[mu|mailutils]] acl&amp;lt;/tt&amp;gt; command tests GNU Mailutils [[Access Control List|access control lists]].  By default it reads ACL from the Mailutils configiration file section &amp;quot;acl&amp;quot;.  The command takes a list of IP addresses as its arguments, applies the ACL to each of these addresses in turn and prints the result.&lt;br /&gt;
&lt;br /&gt;
To select the ACL to test, two options are provided.  The &amp;lt;tt&amp;gt;--file&amp;lt;/tt&amp;gt; (&amp;lt;tt&amp;gt;-f&amp;lt;/tt&amp;gt;) option supplies the name of configuration file to read instead of the default one.  The &amp;lt;tt&amp;gt;--path&amp;lt;/tt&amp;gt; (&amp;lt;tt&amp;gt;-p&amp;lt;/tt&amp;gt;) option supplies the [[path]] to the ACL section to use instead of the default &amp;quot;.acl&amp;quot;.  For example, to test ACL in section &amp;lt;tt&amp;gt;server 198.51.100.33&amp;lt;/tt&amp;gt; of file &amp;lt;tt&amp;gt;/etc/pop3d.conf&amp;lt;/tt&amp;gt; use:&lt;br /&gt;
&lt;br /&gt;
  mailutils acl --file=/etc/pop3d.conf --path=/server=&amp;quot;198.51.100.33&amp;quot;/acl ''address''&lt;br /&gt;
&lt;br /&gt;
As an example of its use, consider file &amp;lt;tt&amp;gt;test.conf&amp;lt;/tt&amp;gt; with the following contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
acl {&lt;br /&gt;
        deny from 10.10.10.1;&lt;br /&gt;
        deny from 10.10.1.0/24;&lt;br /&gt;
        log from any &amp;quot;Connect from ${address}&amp;quot;;&lt;br /&gt;
        allow from 10.0.0.0/8;&lt;br /&gt;
        allow from 192.168.1.0/24;&lt;br /&gt;
        deny from any;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, running &amp;lt;tt&amp;gt;mailutils acl --file=test.conf 127.0.0.1&amp;lt;/tt&amp;gt; you will get:&lt;br /&gt;
&lt;br /&gt;
  Testing 127.0.0.1:&lt;br /&gt;
  mailutils: Connect from 127.0.0.1&lt;br /&gt;
  127.0.0.1: deny&lt;br /&gt;
&lt;br /&gt;
More examples:&lt;br /&gt;
&lt;br /&gt;
  $ mailutils acl --file=test.conf 127.0.0.1 10.10.10.1 10.10.1.3 10.5.3.1 192.168.1.0 192.168.2.0&lt;br /&gt;
  Testing 127.0.0.1:&lt;br /&gt;
  mailutils: Connect from 127.0.0.1&lt;br /&gt;
  127.0.0.1: deny&lt;br /&gt;
  Testing 10.10.10.1:&lt;br /&gt;
  10.10.10.1: deny&lt;br /&gt;
  Testing 10.10.1.3:&lt;br /&gt;
  10.10.1.3: deny&lt;br /&gt;
  Testing 10.5.3.1:&lt;br /&gt;
  mailutils: Connect from 10.5.3.1&lt;br /&gt;
  10.5.3.1: accept&lt;br /&gt;
  Testing 192.168.1.0:&lt;br /&gt;
  mailutils: Connect from 192.168.1.0&lt;br /&gt;
  192.168.1.0: accept&lt;br /&gt;
  Testing 192.168.2.0:&lt;br /&gt;
  mailutils: Connect from 192.168.2.0&lt;br /&gt;
  192.168.2.0: accept&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;mailutils&amp;lt;/tt&amp;gt; option &amp;lt;tt&amp;gt;--debug-level&amp;lt;/tt&amp;gt; will give you a [[Debug_level#acl|deeper insight]] into the address matching algorithm:&lt;br /&gt;
&lt;br /&gt;
  $ mailutils --debug-level=acl.trace9 acl --file test.conf 127.0.0.1&lt;br /&gt;
  Testing 127.0.0.1:&lt;br /&gt;
  mailutils: Checking sockaddr 127.0.0.1&lt;br /&gt;
  mailutils: 1:deny: Does 10.10.10.1/255.255.255.255 match 127.0.0.1? no; &lt;br /&gt;
  mailutils: 2:deny: Does 10.10.1.0/255.255.255.0 match 127.0.0.1? no; &lt;br /&gt;
  mailutils: 3:log: Does any match 127.0.0.1? yes; &lt;br /&gt;
  mailutils: Expanding &amp;quot;Connect from ${address}&amp;quot;&lt;br /&gt;
  mailutils: Expansion: &amp;quot;Connect from 127.0.0.1&amp;quot;. &lt;br /&gt;
  mailutils: Connect from 127.0.0.1&lt;br /&gt;
  mailutils: 4:accept: Does 10.0.0.0/255.0.0.0 match 127.0.0.1? no; &lt;br /&gt;
  mailutils: 5:accept: Does 192.168.0.0/255.255.0.0 match 127.0.0.1? no; &lt;br /&gt;
  mailutils: 6:deny: Does any match 127.0.0.1? yes; &lt;br /&gt;
  127.0.0.1: deny&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[mailutils (utility)]]&lt;br /&gt;
&lt;br /&gt;
[[Category:utilities]]&lt;/div&gt;</summary>
		<author><name>Gray</name></author>
	</entry>
</feed>