Changeset 17143f33
- Timestamp:
- 01/17/2005 03:53:41 AM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 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/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/python-mods, qt5new, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- c6301dc
- Parents:
- 5e363b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/mail/courier.xml
r5e363b3 r17143f33 72 72 <title>Installation of <application>Courier</application></title> 73 73 <note><para><application>Courier's</application> tarball must be extacted as an 74 unpriveleged user or configure will fail.</para></note> 75 76 <para>After extracting the tarball, you'll need to <command>su</command> to 77 user 'root' in order to perform the next few steps.</para> 74 unpriveleged user or the configure script will fail.</para></note> 78 75 79 <para> 76 <para>Before you compile the program, you need to create the courier user 80 77 and group that is expected to be in place when the install script executes. 81 Add the courier user and group with the following commands:</para> 82 83 <screen><userinput><command>groupadd courier && 78 As the root user, add the courier user and group with the following 79 commands:</para> 80 81 <screen><userinput role="root"><command>groupadd courier && 84 82 useradd -c 'Courier Mail Server' -d /dev/null \ 85 83 -g courier -s /bin/false courier</command></userinput></screen> … … 88 86 named bin, this step can be safely ignored.</para> 89 87 90 <screen><userinput ><command>useradd -c 'bin' -d /dev/null -g bin -u 1 bin</command></userinput></screen>88 <screen><userinput role="root"><command>useradd -c 'bin' -d /dev/null -g bin -u 1 bin</command></userinput></screen> 91 89 92 90 <para><application>Courierfilter</application> requires the directory … … 97 95 the following commands to create these directories:</para> 98 96 99 <screen><userinput ><command>install -d /var/run/courier -o courier -g courier -m755 &&97 <screen><userinput role="root"><command>install -d /var/run/courier -o courier -g courier -m755 && 100 98 install -d /var/lock/subsys -o root -g root -m755</command></userinput></screen> 101 99 102 <para>Build <application> courier</application> as an unpriveledged user100 <para>Build <application>Courier</application> as an unpriveledged user 103 101 with the following commands:</para> 104 102 … … 112 110 make</command></userinput></screen> 113 111 114 <para> <command>su</command> once again to user 'root' and install115 <application> courier</application> with the following commands:</para>116 117 <screen><userinput ><command>make install &&112 <para>Once again, become the root user and install 113 <application>Courier</application> with the following commands:</para> 114 115 <screen><userinput role="root"><command>make install && 118 116 make install-configure</command></userinput></screen> 119 117 … … 203 201 </sect2> 204 202 205 <sect2 id=" courier-config">203 <sect2 id="etc-courier-star"> 206 204 <title>Configuring <application>Courier</application></title> 207 <indexterm zone="courier-package courier-config"> 208 <primary sortas="e-courier-config">/etc/courier/*</primary></indexterm> 205 <indexterm zone="courier-package etc-courier-star"> 206 <primary sortas="e-etc-courier-star">/etc/courier/*</primary></indexterm> 207 208 <sect3><title>Configuration Files</title> 209 <para><filename>/etc/courier/*</filename></para> 210 </sect3> 209 211 210 212 <sect3><title>Configuration Information</title> 211 213 212 <para>You will need to <command>su</command> to user 'root' for the 213 remainder of the configuration.</para> 214 215 <para>You will need to create the following files with the contents 216 specified.</para> 214 <para>While still as root, you will need to create the following files with 215 the contents specified.</para> 217 216 218 217 <para><filename>/etc/courier/defaultdomain</filename></para> 219 218 220 <screen><userinput ><command>cat > /etc/courier/defaultdomain << "EOF"</command>219 <screen><userinput role="root"><command>cat > /etc/courier/defaultdomain << "EOF"</command> 221 220 <replaceable>[yourdomain]</replaceable> 222 221 <command>EOF</command></userinput></screen> … … 224 223 <para><filename>/etc/courier/me</filename></para> 225 224 226 <screen><userinput ><command>cat > /etc/courier/me << "EOF"</command>225 <screen><userinput role="root"><command>cat > /etc/courier/me << "EOF"</command> 227 226 <replaceable>[servername.yourdomain]</replaceable> 228 227 <command>EOF</command></userinput></screen> … … 230 229 <para><filename>/etc/courier/locals</filename></para> 231 230 232 <screen><userinput ><command>cat > /etc/courier/locals << "EOF"</command>231 <screen><userinput role="root"><command>cat > /etc/courier/locals << "EOF"</command> 233 232 localhost 234 233 <replaceable>[yourdomain]</replaceable> … … 237 236 <para><filename>/etc/courier/esmtpacceptmailfor.dir/system</filename></para> 238 237 239 <screen><userinput><command>cat 240 >/etc/courier/esmtpacceptmailfor.dir/system << "EOF"</command> 238 <screen><userinput role="root"><command>cat > /etc/courier/esmtpacceptmailfor.dir/system << "EOF"</command> 241 239 localhost 242 240 <replaceable>[yourdomain]</replaceable> 243 241 <command>EOF</command></userinput></screen> 244 242 245 <para>You will also need to edit the aliases file and change the 243 <para>You will also need to edit the 244 <filename>/etc/courier/aliases/system</filename> file and change the 246 245 following entry.</para> 247 248 <para><filename>/etc/courier/aliases/system</filename></para>249 246 250 247 <screen><userinput>postmaster: <replaceable>[your administrator email]</replaceable></userinput></screen> … … 255 252 256 253 <para>If you wish to host mail for non local domains including virtual 257 domains, 258 you must add them to <filename>/etc/courier/hosteddomains</filename>. 259 This 260 file should exist wether you need a hosted domain list or not:</para> 261 262 <para><screen><userinput>touch 263 /etc/courier/hosteddomains</userinput></screen></para> 254 domains, you must add them to 255 <filename>/etc/courier/hosteddomains</filename>. This file should exist 256 wether you need a hosted domain list or not:</para> 257 258 <screen><userinput role="root"><command>touch /etc/courier/hosteddomains</command></userinput></screen> 264 259 265 260 <para>After the above steps are completed you will need to run the 266 261 following commands:</para> 267 262 268 <screen><userinput ><command>makesmtpaccess &&263 <screen><userinput role="root"><command>makesmtpaccess && 269 264 makehosteddomains && 270 265 makealiases</command></userinput></screen> … … 273 268 <filename class="directory">Maildir</filename> directory:</para> 274 269 275 <screen><userinput ><command>cd /home/<replaceable>[username]</replaceable> &&270 <screen><userinput role="root"><command>cd /home/<replaceable>[username]</replaceable> && 276 271 maildirmake Maildir && 277 272 chown <replaceable>[username]</replaceable>.<replaceable>[username]</replaceable> Maildir -R</command></userinput></screen> … … 283 278 commands:</para> 284 279 285 <screen><userinput ><command>mkesmtpdcert &&280 <screen><userinput role="root"><command>mkesmtpdcert && 286 281 mkimapdcert && 287 282 mkpop3dcert</command></userinput></screen> … … 299 294 'ESMTPDSSLSTART' to 'YES'. Make the same change for each service 300 295 configuration that you wish to use with 301 <application> courier</application>.</para>296 <application>Courier</application>.</para> 302 297 303 298 <para>If you wish to use <acronym>LDAP</acronym>, an 304 299 <acronym>LDAP</acronym> configuration file should be created:</para> 305 300 306 <screen><userinput ><command>echo "LDAPALIASDSTART=YES" > /etc/courier/ldapaliasd</command></userinput></screen>301 <screen><userinput role="root"><command>echo "LDAPALIASDSTART=YES" > /etc/courier/ldapaliasd</command></userinput></screen> 307 302 308 303 <para>Similarly, if you wish to use webmail, you should create the webmail 309 304 configuration file:</para> 310 305 311 <screen><userinput ><command>echo "WEBMAILDSTART=YES" > /etc/courier/webmaild</command></userinput></screen>306 <screen><userinput role="root"><command>echo "WEBMAILDSTART=YES" > /etc/courier/webmaild</command></userinput></screen> 312 307 313 308 <para>You will also need to copy the <filename>webmail</filename> file from … … 316 311 server.</para> 317 312 318 <screen><userinput ><command>cp -a /usr/lib/courier/courier/webmail/webmail /srv/www/cgi-bin</command></userinput></screen>313 <screen><userinput role="root"><command>cp -a /usr/lib/courier/courier/webmail/webmail /srv/www/cgi-bin</command></userinput></screen> 319 314 320 315 <para>You will then need to copy the images to a directory under your … … 324 319 phase with <parameter>--enable-imageurl=<replaceable>[URL]</replaceable></parameter>.</para> 325 320 326 <screen><userinput><command>cp -a /usr/share/courier/sqwebmail/images /srv/www/htdocs/webmail</command></userinput></screen> 327 <para><emphasis>Setup for Web-based Email</emphasis></para> 321 <screen><userinput role="root"><command>cp -a /usr/share/courier/sqwebmail/images /srv/www/htdocs/webmail</command></userinput></screen> 328 322 329 323 <para>If you wish to utilze the webadmin utility, you will need to copy the … … 333 327 <application>Apache</application> server.</para> 334 328 335 <screen><userinput><command>cp -a /usr/lib/courier/courier/webmail/webadmin /srv/www/cgi-bin</command></userinput></screen> 336 337 <para><filename>/etc/courier/webadmin/password</filename></para> 338 339 <screen><userinput><command>cat > /etc/courier/webadmin/password << "EOF"</command> 329 <screen><userinput role="root"><command>cp -a /usr/lib/courier/courier/webmail/webadmin /srv/www/cgi-bin</command></userinput></screen> 330 331 <para>You also need to put the password into the file 332 <filename>/etc/courier/webadmin/password</filename>:</para> 333 334 <screen><userinput role="root"><command>cat > /etc/courier/webadmin/password << "EOF"</command> 340 335 <replaceable>[password]</replaceable> 341 336 <command>EOF</command></userinput></screen> … … 346 341 to use your web based administration tool.</para> 347 342 348 <screen><userinput ><command>touch /etc/courier/webadmin/unsecureok</command></userinput></screen>343 <screen><userinput role="root"><command>touch /etc/courier/webadmin/unsecureok</command></userinput></screen> 349 344 350 345 <para>If you use <application>LinuxPAM</application> on your system, 351 346 you will need to create the <acronym>PAM</acronym> configuration files:</para> 352 347 353 <screen><userinput><command>cat > /etc/pam.d/esmtp << 354 "EOF"</command> 348 <screen><userinput role="root"><command>cat > /etc/pam.d/esmtp << "EOF"</command> 355 349 # Begin /etc/pam.d/esmtp 356 350 … … 389 383 <command>EOF</command></userinput></screen> 390 384 391 <para id="courier-init">Final y, if you wish to start courier at boot, install385 <para id="courier-init">Finally, if you wish to start courier at boot, install 392 386 the <filename>/etc/rc.d/init.d/courier</filename> bootscript included in the 393 387 <xref linkend="intro-important-bootscripts"/> package.</para> … … 395 389 <primary sortas="f-courier-init">courier</primary></indexterm> 396 390 397 <screen><userinput ><command>make install-courier</command></userinput></screen>391 <screen><userinput role="root"><command>make install-courier</command></userinput></screen> 398 392 399 393 </sect3> … … 405 399 <title>Configuring for virtual users</title> 406 400 407 <para>These instructions will configure <application> courier</application>401 <para>These instructions will configure <application>Courier</application> 408 402 to lookup virtual users in a <application>MySQL</application> database. 409 403 Begin by making the following changes to … … 423 417 <para>Connect to <application>MySQL</application>:</para> 424 418 425 <screen><userinput ><command>mysql -p</command></userinput></screen>419 <screen><userinput role="root"><command>mysql -p</command></userinput></screen> 426 420 427 421 <para>Create the <filename>courier_mail</filename> database and setup 428 422 the users table:</para> 429 423 430 <screen><userinput ><command>CREATE DATABASE courier_mail;424 <screen><userinput role="root"><command>CREATE DATABASE courier_mail; 431 425 USE courier_mail 432 426 CREATE TABLE users ( … … 444 438 <para>Grant all priveledges to the courier user created earlier:</para> 445 439 446 <screen><userinput ><command>GRANT ALL PRIVILEGES ON *.* TO courier@localhost \440 <screen><userinput role="root"><command>GRANT ALL PRIVILEGES ON *.* TO courier@localhost \ 447 441 IDENTIFIED BY '<replaceable>[password]</replaceable>' WITH GRANT OPTION; 448 442 QUIT</command></userinput></screen> 449 443 450 444 <para>Create a virtual mailman user and group:</para> 451 <screen><userinput ><command>groupadd -g 9000 vmailman &&445 <screen><userinput role="root"><command>groupadd -g 9000 vmailman && 452 446 useradd -c 'Virtual Mailman' -g vmailman -m -k /dev/null -u 9000 vmailman</command></userinput></screen> 453 447 454 448 <para>Create a mail directory for a new virtual user:</para> 455 449 456 <screen><userinput ><command>cd /home/vmailman &&450 <screen><userinput role="root"><command>cd /home/vmailman && 457 451 mkdir <replaceable>[virtual_user]</replaceable> && 458 452 cd <replaceable>[virtual_user]</replaceable> && … … 463 457 the courier user:</para> 464 458 465 <screen><userinput ><command>mysql -u courier -p</command></userinput></screen>459 <screen><userinput role="root"><command>mysql -u courier -p</command></userinput></screen> 466 460 467 461 <para>To add the virtual user you need to enter at least one version of the … … 470 464 <para>Add the first virtual user with the following commands:</para> 471 465 472 <screen><userinput ><command>USE courier_mail466 <screen><userinput role="root"><command>USE courier_mail 473 467 INSERT INTO users VALUES ( 474 468 '<replaceable>[virtual_users]</replaceable>@<replaceable>[domain.com]</replaceable>, … … 485 479 <para>For example:</para> 486 480 487 <screen><userinput ><command>INSERT INTO users VALUES (481 <screen><userinput role="root"><command>INSERT INTO users VALUES ( 488 482 'blfsuser@linuxfromscratch.org', 489 483 '', … … 507 501 <segmentedlist> 508 502 <segtitle>Installed Programs</segtitle> 509 <segtitle>Installed Scripts</segtitle>510 503 <segtitle>Installed Directories</segtitle> 511 <segtitle>Configuration Files</segtitle>512 504 <seglistitem> 513 <seg>addcr, aliascreate, aliascombine, aliasexp, authenumerate, cancelmsg, 514 courier, courier-config, courierd, courierfax, courierfilter, 515 courierldapaliasd, courierlogger, couriermlm, courierpop3d, courierpop3login, 516 couriertcpd, couriertls, deliverquota, dotforward, dupfilter, imapd, 517 imaplogin, lockmail, mailbot, maildiracl, maildirkw, maildirmake, maildrop, 518 mailq, makedat, makedatprog, makemime, mimegpg, pcpd, perlfilter, preline, 519 reformail, reformime, rmail, sendmail, showmodules, sqwebmaild, submit, 520 submitmkdir, testmxlookup, userdbpw, webadmin and webmail</seg> 521 522 <seg>admin-*.pl, application-pdf.filter, application-postscript.filter, 523 authsystem.passwd, cleancache.pl, courierctl.start, couriermlm, 524 courierwebadmin, coverpage, dumpenv.pl, esmtpd, esmtpd-ssl, faxmail, 525 filterctl, htmldoc, image-gif.filter, image-jpeg.filter, image-png.filter, 526 imapd, imapd-ssl, init, ldapsearch, makeacceptmailfor, makealiases, makedat, 527 makehosteddomains, makepercentrelay, makesmtpaccess, makeuserdb, 528 makeuucpneighbors, mkesmtpdcert, mkimapdcert, mkpop3dcert, new_fax, 529 perlfilter-example.pl, perlfilter-wrapper.pl, pop3d, pop3d-ssl, pw2userdb, 530 rootcerts, sendit.sh, sharedindexsplit, sharedindexinstall, sqwebmail, 531 text-plain.filter, userdb, vchkpw2userdb, webadmin.pl, webgpg and 532 webmaild</seg> 505 <seg>addcr, authenumerate, cancelmsg, courier, courier-config, 506 courieresmtpd, courierfilter, courierlogger, couriermlm, couriertcpd, 507 couriertls, deliverquota, dotforward, esmtpd, esmtpd-msa, esmtpd-ssl, 508 filterctl, imapd, imapd-ssl, lockmail, mailbot, maildiracl, maildirkw, 509 maildirmake, maildrop, mailq, makeacceptmailfor, makealiases, makedat, 510 makehosteddomains, makemime, makepercentrelay, makesmtpaccess, 511 makesmtpaccess-msa, makeuserdb, makeuucpneighbors, mimegpg, 512 mkesmtpdcert, mkimapdcert, mkpop3dcert, pop3d, pop3d-ssl, preline, 513 pw2userdb, reformail, reformime, rmail, sendmail, sharedindexinstall, 514 sharedindexsplit, showconfig, showmodules, testmxlookup, userdb, 515 userdbpw, vchkpw2userdb, webgpg, webmaild</seg> 533 516 534 517 <seg>/etc/courier, /usr/lib/courier, /usr/share/courier and 535 518 /var/lib/courier</seg> 536 537 <seg>/etc/courier/</seg>538 519 539 520 </seglistitem> … … 589 570 <term><command>courierlogger</command></term> 590 571 <listitem><para>captures error messages from other 591 <application> courier</application> applications and forwards them to572 <application>Courier</application> applications and forwards them to 592 573 the system logger.</para> 593 574 <indexterm zone="courier-package courierlogger">
Note:
See TracChangeset
for help on using the changeset viewer.