Ignore:
Timestamp:
04/11/2004 12:14:37 AM (20 years ago)
Author:
Igor Živković <igor@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
9262ca5
Parents:
4dbc3f7a
Message:

updated to courier-0.45.4

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1975 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/mail/courier/courier-config.xml

    r4dbc3f7a r7283ae5  
    33
    44<sect3><title>Config files</title>
    5 <para><filename>/etc/courier/authmysqlrc</filename></para>
     5<para><filename>/etc/courier/*</filename></para>
    66</sect3>
    77
    88<sect3><title>Configuration Information</title>
    99
    10 <para>Make the following changes in this file if you are utilizing
     10<para>Make the following changes in
     11<filename>/etc/courier/authmysqlrc</filename> file if you are utilizing
    1112<application>My<acronym>SQL</acronym></application>:</para>
     13
    1214<screen><userinput>MYSQL_SERVER            localhost
    1315MYSQL_USERNAME          courier
    14 MYSQL_PASSWORD          (your choice)
     16MYSQL_PASSWORD          <replaceable>[your choice]</replaceable>
    1517MYSQL_SOCKET            /tmp/mysql.sock
    1618MYSQL_PORT              3306
    17 MYSQL_DATABASE          courier-mail
     19MYSQL_DATABASE          courier_mail
    1820MYSQL_USER_TABLE        users
    1921MYSQL_CLEAR_PWFIELD     clear
    20 DEFAULT DOMAIN          (your domain)
     22DEFAULT DOMAIN          <replaceable>[your domain]</replaceable>
    2123MYSQL_QUOTA_FIELD       quota</userinput></screen>
    2224
    23 
    2425<para>If you utilize <application>PAM</application>:</para>
     26
    2527<screen><userinput><command>cat &gt; /etc/pam.d/esmtp &lt;&lt; "EOF</command>
    2628# Begin /etc/pam.d/esmtp
     
    6062<command>EOF</command></userinput></screen>
    6163
    62 <para>This command will create the mysql database for authentication:</para>
    63 
    64 <screen><userinput><command>mysqladmin -uroot -p<replaceable>[password]</replaceable> create courier-mail</command></userinput></screen>
    65 
    66 <para>This command will setup the table users for the courier-mail
     64<para>Connect to the <application>My<acronym>SQL</acronym></application>
    6765database:</para>
    6866
    69 <screen><userinput><command>mysql -uroot -p<replaceable>[password]</replaceable> courier-mail
    70 
    71         CREATE TABLE users (
    72         id                    char(128) DEFAULT '' NOT NULL,
    73         crypt                 char(128) DEFAULT '' NOT NULL,
    74         clear                 char(128) DEFAULT '' NOT NULL,
    75         name                  char(128) DEFAULT '' NOT NULL,
    76         uid                   int(10) unsigned DEFAULT '65534' NOT NULL,
    77         gid                   int(10) unsigned DEFAULT '65534' NOT NULL,
    78         home                  char(255) DEFAULT '' NOT NULL,
    79         quota                 char(255) DEFAULT '' NOT NULL,
    80         KEY id (id(128))
    81         );</command></userinput></screen>
     67<screen><userinput><command>mysql -p</command></userinput></screen>
     68
     69<para>This command will create the database for authentication:</para>
     70
     71<screen><userinput><command>CREATE DATABASE courier_mail;
     72USE courier_mail</command></userinput></screen>
     73
     74<para>This command will setup the table users for the courier_mail
     75database:</para>
     76
     77<screen><userinput><command>CREATE TABLE users (
     78id                    char(128) DEFAULT '' NOT NULL,
     79crypt                 char(128) DEFAULT '' NOT NULL,
     80clear                 char(128) DEFAULT '' NOT NULL,
     81name                  char(128) DEFAULT '' NOT NULL,
     82uid                   int(10) unsigned DEFAULT '65534' NOT NULL,
     83gid                   int(10) unsigned DEFAULT '65534' NOT NULL,
     84home                  char(255) DEFAULT '' NOT NULL,
     85quota                 char(255) DEFAULT '' NOT NULL,
     86KEY id (id(128))
     87);</command></userinput></screen>
    8288
    8389<para>This will add the courier user that we specified earlier in the
    84 authmysql file:</para>
    85 
    86 <screen><userinput><command>mysql -uroot -p<replaceable>[password]</replaceable> mysql
    87 
    88 grant all privileges on *.* to courier@localhost identified by '<replaceable>[password]</replaceable>' with grant option;</command></userinput></screen>
    89 
     90<filename>/etc/courier/authmysqlrc</filename> file:</para>
     91
     92<screen><userinput><command>GRANT ALL PRIVILEGES ON *.* TO courier@localhost IDENTIFIED BY '<replaceable>[password]</replaceable>' WITH GRANT OPTION;
     93QUIT</command></userinput></screen>
    9094
    9195<para><emphasis>General Settings for Mail</emphasis></para>
     
    133137following commands:</para>
    134138
    135 <screen><userinput><command>makesmtpaccess
    136 makehosteddomains
     139<screen><userinput><command>makesmtpaccess &amp;&amp;
     140makehosteddomains &amp;&amp;
    137141makealiases</command></userinput></screen>
    138142
     
    186190your system users.</para>
    187191
    188 <screen><userinput><command>cd /home/<replaceable>[username]</replaceable>
    189 maildirmake Maildir
     192<screen><userinput><command>cd /home/<replaceable>[username]</replaceable> &amp;&amp;
     193maildirmake Maildir &amp;&amp;
    190194chown <replaceable>[username]</replaceable>.<replaceable>[username]</replaceable> Maildir -R</command></userinput></screen>
    191195
     
    195199users.</para>
    196200
    197 <screen><userinput><command>echo "vmailman:x:9000:9000:Virtual Mailman:/home/vmailman:/bin/bash" &gt;&gt; /etc/passwd
    198 echo "vmailman:x:9000:" &gt;&gt; /etc/group</command></userinput></screen>
    199 
    200 <para>Now to setup the maildir for these virtual users.</para>
    201 
    202 <screen><userinput><command>cd /home/vmailman
    203 mkdir <replaceable>[virtual_user]</replaceable>
    204 cd <replaceable>[virtual_user]</replaceable>
    205 maildirmake Maildir
     201<screen><userinput><command>groupadd -g 9000 vmailman &amp;&amp;
     202useradd -c 'Virtual Mailman' -g vmailman -m -k /dev/null -u 9000 vmailman</command></userinput></screen>
     203
     204<para>Now to setup the Maildir for these virtual users.</para>
     205
     206<screen><userinput><command>cd /home/vmailman &amp;&amp;
     207mkdir <replaceable>[virtual_user]</replaceable> &amp;&amp;
     208cd <replaceable>[virtual_user]</replaceable> &amp;&amp;
     209maildirmake Maildir &amp;&amp;
    206210chown vmailman.vmailman Maildir -R</command></userinput></screen>
    207211
    208 <para>Add the virtual user to the <application>My<acronym>SQL</acronym></application> database. You need to enter at
    209 least on version of the password either clear text or encrypted.</para>
    210 
    211 <screen><userinput><command>mysql -ucourier -p<replaceable>[password]</replaceable> courier-mail
    212 
    213 insert into users values('<replaceable>[virtual_users]</replaceable>@<replaceable>[domain.com]</replaceable>,
    214 '<replaceable>[encrypted password or blank]</replaceable>','<replaceable>[clear text password or blank]</replaceable>',
    215 '<replaceable>[User's Name]</replaceable>',9000,9000,'<replaceable>[location of Maildir]</replaceable>','<replaceable>[Quota in Bytes']</replaceable>);</command></userinput></screen>
    216 
    217 <para>example</para>
    218 
    219 <screen><userinput>insert into users values ('blfsuser@linuxfromscratch.org','
    220 ','password','BLFS User',9000,9000,'/home/vmailman/blfsuser','');</userinput></screen>
     212<para>Connect to the <application>My<acronym>SQL</acronym></application>
     213database.</para>
     214
     215<screen><userinput><command>mysql -u courier -p</command></userinput></screen>
     216   
     217<para>To add the virtual user you need to enter at
     218least one version of the password either clear text or encrypted.</para>
     219
     220<screen><userinput><command>INSERT INTO users VALUES (
     221'<replaceable>[virtual_users]</replaceable>@<replaceable>[domain.com]</replaceable>,
     222'<replaceable>[encrypted password or blank]</replaceable>',
     223'<replaceable>[clear text password or blank]</replaceable>',
     224'<replaceable>[User's Name]</replaceable>',
     2259000,
     2269000,
     227'<replaceable>[location of Maildir]</replaceable>',
     228'<replaceable>[Quota in Bytes']</replaceable>
     229);</command></userinput></screen>
     230
     231<para>For example:</para>
     232
     233<screen><userinput><command>INSERT INTO users VALUES (
     234'blfsuser@linuxfromscratch.org',
     235'',
     236'password',
     237'BLFS User',
     2389000,
     2399000,
     240'/home/vmailman/blfsuser',
     241''
     242);</command></userinput></screen>
    221243
    222244<para><emphasis>Setup for Web-based Email</emphasis></para>
     
    225247system.</para>
    226248
    227 <para>You will need to copy the file webmail from
    228 <filename>/usr/lib/courier/courier/webmail/webmail</filename> to your <filename>cgi-bin
     249<para>You will need to copy the <filename>webmail</filename> file from
     250<filename>/usr/lib/courier/courier/webmail</filename> to your <filename>cgi-bin
    229251</filename> directory of your <application>Apache</application>
    230252server.</para>
     
    236258<application>Apache</application> server. The directory needs to be named
    237259<filename>webmail</filename> or you need to specify it during the configure
    238 phase with <command>--enable-imageurl=/url</command>.</para>
     260phase with <parameter>--enable-imageurl=<replaceable>[URL]</replaceable></parameter>.</para>
    239261
    240262<screen><userinput><command>cp -a /usr/share/courier/sqwebmail/images /var/www/htdocs/webmail</command></userinput></screen>
     
    244266system.</para>
    245267
    246 <para>You will need to copy the file <filename>webadmin</filename> from
    247 <filename class="directory">/usr/lib/courier/webmail/webadmin</filename>
    248 to your <filename class="directory">cgi-bin </filename> directory of your
     268<para>You will need to copy the <filename>webadmin</filename> file from
     269<filename class="directory">/usr/lib/courier/courier/webmail</filename>
     270to your <filename class="directory">cgi-bin</filename> directory of your
    249271<application>Apache</application> server.</para>
    250272
Note: See TracChangeset for help on using the changeset viewer.