Changeset 7283ae5 for server/mail/courier/courier-config.xml
- Timestamp:
- 04/11/2004 12:14:37 AM (20 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/mail/courier/courier-config.xml
r4dbc3f7a r7283ae5 3 3 4 4 <sect3><title>Config files</title> 5 <para><filename>/etc/courier/ authmysqlrc</filename></para>5 <para><filename>/etc/courier/*</filename></para> 6 6 </sect3> 7 7 8 8 <sect3><title>Configuration Information</title> 9 9 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 11 12 <application>My<acronym>SQL</acronym></application>:</para> 13 12 14 <screen><userinput>MYSQL_SERVER localhost 13 15 MYSQL_USERNAME courier 14 MYSQL_PASSWORD (your choice)16 MYSQL_PASSWORD <replaceable>[your choice]</replaceable> 15 17 MYSQL_SOCKET /tmp/mysql.sock 16 18 MYSQL_PORT 3306 17 MYSQL_DATABASE courier -mail19 MYSQL_DATABASE courier_mail 18 20 MYSQL_USER_TABLE users 19 21 MYSQL_CLEAR_PWFIELD clear 20 DEFAULT DOMAIN (your domain)22 DEFAULT DOMAIN <replaceable>[your domain]</replaceable> 21 23 MYSQL_QUOTA_FIELD quota</userinput></screen> 22 24 23 24 25 <para>If you utilize <application>PAM</application>:</para> 26 25 27 <screen><userinput><command>cat > /etc/pam.d/esmtp << "EOF</command> 26 28 # Begin /etc/pam.d/esmtp … … 60 62 <command>EOF</command></userinput></screen> 61 63 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> 67 65 database:</para> 68 66 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; 72 USE courier_mail</command></userinput></screen> 73 74 <para>This command will setup the table users for the courier_mail 75 database:</para> 76 77 <screen><userinput><command>CREATE TABLE users ( 78 id char(128) DEFAULT '' NOT NULL, 79 crypt char(128) DEFAULT '' NOT NULL, 80 clear char(128) DEFAULT '' NOT NULL, 81 name char(128) DEFAULT '' NOT NULL, 82 uid int(10) unsigned DEFAULT '65534' NOT NULL, 83 gid int(10) unsigned DEFAULT '65534' NOT NULL, 84 home char(255) DEFAULT '' NOT NULL, 85 quota char(255) DEFAULT '' NOT NULL, 86 KEY id (id(128)) 87 );</command></userinput></screen> 82 88 83 89 <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; 93 QUIT</command></userinput></screen> 90 94 91 95 <para><emphasis>General Settings for Mail</emphasis></para> … … 133 137 following commands:</para> 134 138 135 <screen><userinput><command>makesmtpaccess 136 makehosteddomains 139 <screen><userinput><command>makesmtpaccess && 140 makehosteddomains && 137 141 makealiases</command></userinput></screen> 138 142 … … 186 190 your system users.</para> 187 191 188 <screen><userinput><command>cd /home/<replaceable>[username]</replaceable> 189 maildirmake Maildir 192 <screen><userinput><command>cd /home/<replaceable>[username]</replaceable> && 193 maildirmake Maildir && 190 194 chown <replaceable>[username]</replaceable>.<replaceable>[username]</replaceable> Maildir -R</command></userinput></screen> 191 195 … … 195 199 users.</para> 196 200 197 <screen><userinput><command> echo "vmailman:x:9000:9000:Virtual Mailman:/home/vmailman:/bin/bash" >> /etc/passwd198 echo "vmailman:x:9000:" >> /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 && 202 useradd -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 && 207 mkdir <replaceable>[virtual_user]</replaceable> && 208 cd <replaceable>[virtual_user]</replaceable> && 209 maildirmake Maildir && 206 210 chown vmailman.vmailman Maildir -R</command></userinput></screen> 207 211 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> 213 database.</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 218 least 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>', 225 9000, 226 9000, 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', 238 9000, 239 9000, 240 '/home/vmailman/blfsuser', 241 '' 242 );</command></userinput></screen> 221 243 222 244 <para><emphasis>Setup for Web-based Email</emphasis></para> … … 225 247 system.</para> 226 248 227 <para>You will need to copy the file webmailfrom228 <filename>/usr/lib/courier/courier/webmail /webmail</filename> to your <filename>cgi-bin249 <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 229 251 </filename> directory of your <application>Apache</application> 230 252 server.</para> … … 236 258 <application>Apache</application> server. The directory needs to be named 237 259 <filename>webmail</filename> or you need to specify it during the configure 238 phase with < command>--enable-imageurl=/url</command>.</para>260 phase with <parameter>--enable-imageurl=<replaceable>[URL]</replaceable></parameter>.</para> 239 261 240 262 <screen><userinput><command>cp -a /usr/share/courier/sqwebmail/images /var/www/htdocs/webmail</command></userinput></screen> … … 244 266 system.</para> 245 267 246 <para>You will need to copy the file <filename>webadmin</filename>from247 <filename class="directory">/usr/lib/courier/ webmail/webadmin</filename>248 to your <filename class="directory">cgi-bin 268 <para>You will need to copy the <filename>webadmin</filename> file from 269 <filename class="directory">/usr/lib/courier/courier/webmail</filename> 270 to your <filename class="directory">cgi-bin</filename> directory of your 249 271 <application>Apache</application> server.</para> 250 272
Note:
See TracChangeset
for help on using the changeset viewer.