Document and add patch for PAM support to exim-4.95.

This commit is contained in:
Tim Tassonis 2021-10-23 00:17:02 +02:00
parent 3713bc71c8
commit dd9aab332d
2 changed files with 60 additions and 2 deletions

View File

@ -44,6 +44,10 @@
<listitem>
<para>October 22nd, 2021</para>
<itemizedlist>
<listitem>
<para>[timtas] - Document and add patch for PAM support to exim-4.95. Fixes
<ulink url="&blfs-ticket-root;15624">#15624</ulink>.</para>
</listitem>
<listitem>
<para>[pierre] - Change the download location for upower, so that
it is not needed to run autogen.sh. Fixes

View File

@ -84,6 +84,12 @@
shown at <ulink url="http://exim.org/docs.html"/>.
</para>
</listitem>
<listitem>
<para>
Required patch when building with <application>PAM</application> support:
<ulink url="&patch-root;/exim-&exim-version;-call_pam-1.patch"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Exim Dependencies</bridgehead>
@ -131,7 +137,13 @@
useradd -d /dev/null -c "Exim Daemon" -g exim -s /bin/false -u 31 exim</userinput></screen>
<para>
Install <application>Exim</application> with the following commands:
If you want to build with <application>PAM</application> support, apply the following patch:
</para>
<screen><userinput>patch -Np2 -i ../exim-&exim-version;-call_pam-1-1.patch</userinput></screen>
<para>
Configure <application>Exim</application> with the following commands:
</para>
<screen><userinput>sed -e 's,^BIN_DIR.*$,BIN_DIRECTORY=/usr/sbin,' \
@ -142,7 +154,22 @@ useradd -d /dev/null -c "Exim Daemon" -g exim -s /bin/false -u 31 exim</userinpu
-e 's,^EXIM_MONITOR,#EXIM_MONITOR,' src/EDITME > Local/Makefile &amp;&amp;
printf "USE_GDBM = yes\nDBMLIB = -lgdbm\n" >> Local/Makefile &amp;&amp;
make</userinput></screen>
</userinput></screen>
<para>
If you want to add <application>Linux PAM</application> support, also run the following commands:
</para>
<screen><userinput>sed -i '/# SUPPORT_PAM=yes/s,^#,,' Local/Makefile
echo "EXTRALIBS=-lpam" >> Local/Makefile
</userinput></screen>
<para>
Build <application>Exim</application> with the following command:
</para>
<screen><userinput>make</userinput></screen>
<para>
This package does not come with a test suite.
@ -398,6 +425,33 @@ EOF
in processing the mail queue. Adjust this parameter to suit your
desires.
</para>
</sect3>
<sect3>
<title>Linux PAM Configuration</title>
<para>
If you have built <application>Exim</application> with
<application>Linux PAM</application> support, you need to create a
<application>PAM</application> configuration file to get it working
correctly with BLFS.
</para>
<para>
Issue the following command as the <systemitem
class="username">root</systemitem> user to create the configuration
file for <application>Linux PAM</application>:
</para>
<screen role="root"><userinput>cat &gt; /etc/pam.d/exim &lt;&lt; "EOF"
<literal># Begin /etc/pam.d/exim
auth include system-auth
account include system-account
session include system-session
# End /etc/pam.d/exim</literal>
EOF</userinput></screen>
</sect3>