|
1 [Top] [Contents] [Index] [ ? ] |
1 |
2 |
2 Vmailmgr Configuration Files |
3 Vmailmgr Configuration Files |
3 |
4 |
4 14 September 2000 |
5 1. General Information |
5 |
6 2. Configuration Files |
6 |
7 _________________________________________________________________ |
7 Bruce Guenter |
8 |
8 _________________________________________________________________ |
9 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
9 |
10 ? ] |
10 Table of Contents |
11 |
11 |
|
12 * 1. General Information |
|
13 + 1.1 Search Order |
|
14 + 1.2 File Types |
|
15 + 1.3 Command Execution |
|
16 * 2. Configuration Files |
|
17 + 2.1 authvmailmgr-error |
|
18 + 2.2 authvmailmgr-loginfail |
|
19 + 2.3 authvmailmgr-postsetuid |
|
20 + 2.4 authvmailmgr-presetuid |
|
21 + 2.5 autoresponse-dir |
|
22 + 2.6 autoresponse-file |
|
23 + 2.7 bulletin-dir |
|
24 + 2.8 checkvpw-error |
|
25 + 2.9 checkvpw-loginfail |
|
26 + 2.10 checkvpw-postexec |
|
27 + 2.11 checkvpw-postsetuid |
|
28 + 2.12 checkvpw-presetuid |
|
29 + 2.13 default-expiry |
|
30 + 2.14 default-maildir |
|
31 + 2.15 default-msgcount |
|
32 + 2.16 default-msgsize |
|
33 + 2.17 default-hardquota |
|
34 + 2.18 default-softquota |
|
35 + 2.19 default-username |
|
36 + 2.20 error-maildir |
|
37 + 2.21 global-bulletin-dir |
|
38 + 2.22 maildir-arg-str |
|
39 + 2.23 password-file |
|
40 + 2.24 postmaster-aliases |
|
41 + 2.25 postmaster-email |
|
42 + 2.26 qmail-root |
|
43 + 2.27 separators |
|
44 + 2.28 socket-file |
|
45 + 2.29 user-dir |
|
46 + 2.30 user-dir-bits |
|
47 + 2.31 user-dir-slices |
|
48 + 2.32 vdeliver-postdeliver |
|
49 + 2.33 vdeliver-predeliver |
|
50 + 2.34 vsetup-pre |
|
51 + 2.35 vsetup-pre |
|
52 _________________________________________________________________ |
|
53 |
|
54 1. General Information |
12 1. General Information |
55 |
13 |
|
14 1.1 Search Order |
|
15 1.2 File Types |
|
16 1.3 Command Execution |
|
17 _________________________________________________________________ |
|
18 |
|
19 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
20 ? ] |
|
21 |
56 1.1 Search Order |
22 1.1 Search Order |
57 |
23 |
58 The system will look for the configuration files listed below in one |
24 The system will look for the configuration files listed below in one |
59 of the following three locations, in the order they are listed: |
25 of the following three locations, in the order they are listed: |
60 1. The domain-local configuration directory |
26 1. The domain-local configuration directory |
61 2. The user-local configuration directory |
27 2. The user-local configuration directory |
62 3. The global configuration directory |
28 3. The global configuration directory |
63 |
29 |
64 The global configuration directory is set to `/etc/vmailmgr' by |
30 The global configuration directory is set to `/etc/vmailmgr' by |
65 default. The user-local and domain-local configuration directories |
31 default. The user-local and domain-local configuration directories |
66 (for now, one and the same) are a subdirectory, named `.vmailmgr' by |
32 (for now, one and the same) are a subdirectory, named `.vmailmgr' by |
67 default, of either the user's home directory or the domain |
33 default, of either the user's home directory or the domain |
68 subdirectory. If a file matching the configuration name is found in |
34 subdirectory. If a file matching the configuration name is found in |
69 one of the local directories, the search stops and it is not searched |
35 one of the local directories, the search stops and it is not searched |
70 for in any higher up directories. |
36 for in any higher up directories. |
71 |
37 _________________________________________________________________ |
|
38 |
|
39 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
40 ? ] |
|
41 |
72 1.2 File Types |
42 1.2 File Types |
73 |
43 |
74 Each of the configuration files falls into one of the following types: |
44 Each of the configuration files falls into one of the following types: |
|
45 |
75 String |
46 String |
76 A single line is read from this type and used as-is with no |
47 A single line is read from this type and used as-is with no |
77 conversion. All data after the first line is ignored. |
48 conversion. All data after the first line is ignored. |
78 Directory |
49 Directory |
79 A single line is read from this type. If it does not have a |
50 A single line is read from this type. If it does not have a |
90 pound symbol (`#') are ignored. |
61 pound symbol (`#') are ignored. |
91 Executable |
62 Executable |
92 If the execute bits on the file are set, it is treated as an |
63 If the execute bits on the file are set, it is treated as an |
93 executable file and is executed with no interpretation by |
64 executable file and is executed with no interpretation by |
94 vmailmgr. The the Command Execution section below for details. |
65 vmailmgr. The the Command Execution section below for details. |
95 |
66 |
96 All lines are stripped of any leading or trailing white space. |
67 All lines are stripped of any leading or trailing white space. |
97 |
68 |
98 Configuration files marked as `(global only)' are read before any |
69 Configuration files marked as `(global only)' are read before any |
99 user-level processing occurrs, and so are not functional in the |
70 user-level processing occurrs, and so are not functional in the |
100 user-level configuration. |
71 user-level configuration. |
101 |
72 _________________________________________________________________ |
|
73 |
|
74 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
75 ? ] |
|
76 |
102 1.3 Command Execution |
77 1.3 Command Execution |
103 |
78 |
104 The following rules apply to executing a single command or a list of |
79 The following rules apply to executing a single command or a list of |
105 commands. |
80 commands. |
106 |
81 |
107 The executables are searched in reverse order of the configuration |
82 The executables are searched in reverse order of the configuration |
108 files. That is, the global setting is used first, and then the local |
83 files. That is, the global setting is used first, and then the local |
109 settings. If the named file either does not exist in a directory or is |
84 settings. If the named file either does not exist in a directory or is |
110 not executable, that directory is skipped. |
85 not executable, that directory is skipped. |
111 |
86 |
112 A command exit code of `99' indicates that the command completed |
87 A command exit code of `99' indicates that the command completed |
113 successfully but no further commands should be executed. All other |
88 successfully but no further commands should be executed. All other |
114 non-zero exit codes are treated as an error and will cause the |
89 non-zero exit codes are treated as an error and will cause the |
115 invoking program to stop with the same error code. For `vdeliver', an |
90 invoking program to stop with the same error code. For `vdeliver', an |
116 error exit of 111 will be passed up to qmail as a temporary error, and |
91 error exit of 111 will be passed up to qmail as a temporary error, and |
117 an error exit of 100 will be passed up as a permanent failure. See the |
92 an error exit of 100 will be passed up as a permanent failure. See the |
118 `qmail-command' man page for full details on delivery error codes. For |
93 `qmail-command' man page for full details on delivery error codes. For |
119 `checkvpw', any non-zero exit code (except as described above) will |
94 `checkvpw', any non-zero exit code (except as described above) will |
120 cause authentication to fail. |
95 cause authentication to fail. |
121 |
96 |
122 The following environment variables will be set (where applicable): |
97 The following environment variables will be set (where applicable): |
|
98 |
123 `HOME' |
99 `HOME' |
124 The home directory of the real user. |
100 The home directory of the real user. |
125 `MAILDIR' |
101 `MAILDIR' |
126 The mail directory of the real or virtual user. |
102 The mail directory of the real or virtual user. |
127 `USER' |
103 `USER' |
145 `VUSER_PERSONAL' |
121 `VUSER_PERSONAL' |
146 The virtual user's personal data. |
122 The virtual user's personal data. |
147 `VUSER_SOFTQUOTA' |
123 `VUSER_SOFTQUOTA' |
148 The virtual user's total size soft quota (in bytes, or "-" if |
124 The virtual user's total size soft quota (in bytes, or "-" if |
149 not applicable). |
125 not applicable). |
150 |
126 _________________________________________________________________ |
|
127 |
|
128 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
129 ? ] |
|
130 |
151 2. Configuration Files |
131 2. Configuration Files |
152 |
132 |
153 Each of the following sections identifies a single configuration file |
133 Each of the following sections identifies a single configuration file |
154 |
134 |
|
135 2.1 authvmailmgr-error |
|
136 2.2 authvmailmgr-loginfail |
|
137 2.3 authvmailmgr-postsetuid |
|
138 2.4 authvmailmgr-presetuid |
|
139 2.5 autoresponse-dir |
|
140 2.6 autoresponse-file |
|
141 2.7 bulletin-dir |
|
142 2.8 checkvpw-error |
|
143 2.9 checkvpw-loginfail |
|
144 2.10 checkvpw-postexec |
|
145 2.11 checkvpw-postsetuid |
|
146 2.12 checkvpw-presetuid |
|
147 2.13 default-expiry |
|
148 2.14 default-maildir |
|
149 2.15 default-msgcount |
|
150 2.16 default-msgsize |
|
151 2.17 default-hardquota |
|
152 2.18 default-softquota |
|
153 2.19 default-username |
|
154 2.20 error-maildir |
|
155 2.21 global-bulletin-dir |
|
156 2.22 maildir-arg-str |
|
157 2.23 password-file |
|
158 2.24 postmaster-aliases |
|
159 2.25 postmaster-email |
|
160 2.26 qmail-root |
|
161 2.27 separators |
|
162 2.28 socket-file |
|
163 2.29 user-dir |
|
164 2.30 user-dir-bits |
|
165 2.31 user-dir-slices |
|
166 2.32 vdeliver-postdeliver |
|
167 2.33 vdeliver-predeliver |
|
168 2.34 vsetup-post |
|
169 2.35 vsetup-pre |
|
170 _________________________________________________________________ |
|
171 |
|
172 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
173 ? ] |
|
174 |
155 2.1 authvmailmgr-error |
175 2.1 authvmailmgr-error |
156 |
176 |
157 Type |
177 Type |
158 executable |
178 executable |
159 Default |
179 Default |
180 environment variable AUTHVMAILMGR_ERROR will contain an error |
204 environment variable AUTHVMAILMGR_ERROR will contain an error |
181 message. The environment variable VUSER will be set to the |
205 message. The environment variable VUSER will be set to the |
182 virtual user name if it has been determined. This can be used |
206 virtual user name if it has been determined. This can be used |
183 to output logging messages about login failures or to throttle |
207 to output logging messages about login failures or to throttle |
184 hackers. |
208 hackers. |
185 |
209 _________________________________________________________________ |
|
210 |
|
211 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
212 ? ] |
|
213 |
186 2.3 authvmailmgr-postsetuid |
214 2.3 authvmailmgr-postsetuid |
187 |
215 |
188 Type |
216 Type |
189 executable |
217 executable |
190 Default |
218 Default |
191 @samp {vpopbull} |
219 `vpopbull' |
192 Used By |
220 Used By |
193 authvmailmgr |
221 authvmailmgr |
194 Description |
222 Description |
195 This is executed by authvmailmgr after a user is successfully |
223 This is executed by authvmailmgr after a user is successfully |
196 authenticated. |
224 authenticated. |
197 |
225 _________________________________________________________________ |
|
226 |
|
227 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
228 ? ] |
|
229 |
198 2.4 authvmailmgr-presetuid |
230 2.4 authvmailmgr-presetuid |
199 |
231 |
200 Type |
232 Type |
201 executable |
233 executable |
202 Default |
234 Default |
338 Used By |
410 Used By |
339 checkvpw |
411 checkvpw |
340 Description |
412 Description |
341 Sets the name of the directory to be used as a non-virtual |
413 Sets the name of the directory to be used as a non-virtual |
342 user's maildir. |
414 user's maildir. |
343 |
415 _________________________________________________________________ |
|
416 |
|
417 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
418 ? ] |
|
419 |
344 2.15 default-msgcount |
420 2.15 default-msgcount |
345 |
421 |
346 Type |
422 Type |
347 number |
423 number |
348 Default |
424 Default |
349 `-1' |
425 `-1' |
350 Used By |
426 Used By |
351 vadduser |
427 vadduser |
352 Description |
428 Description |
353 Sets the default message count limit. |
429 Sets the default message count limit. |
354 |
430 _________________________________________________________________ |
|
431 |
|
432 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
433 ? ] |
|
434 |
355 2.16 default-msgsize |
435 2.16 default-msgsize |
356 |
436 |
357 Type |
437 Type |
358 number |
438 number |
359 Default |
439 Default |
360 `-1' |
440 `-1' |
361 Used By |
441 Used By |
362 vadduser |
442 vadduser |
363 Description |
443 Description |
364 Sets the default message size limit, in bytes. |
444 Sets the default message size limit, in bytes. |
365 |
445 _________________________________________________________________ |
|
446 |
|
447 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
448 ? ] |
|
449 |
366 2.17 default-hardquota |
450 2.17 default-hardquota |
367 |
451 |
368 Type |
452 Type |
369 number |
453 number |
370 Default |
454 Default |
371 `-1' |
455 `-1' |
372 Used By |
456 Used By |
373 vadduser |
457 vadduser |
374 Description |
458 Description |
375 Sets the default hard quota, in bytes. |
459 Sets the default hard quota, in bytes. |
376 |
460 _________________________________________________________________ |
|
461 |
|
462 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
463 ? ] |
|
464 |
377 2.18 default-softquota |
465 2.18 default-softquota |
378 |
466 |
379 Type |
467 Type |
380 number |
468 number |
381 Default |
469 Default |
382 `-1' |
470 `-1' |
383 Used By |
471 Used By |
384 vadduser |
472 vadduser |
385 Description |
473 Description |
386 Sets the default soft quota, in bytes. |
474 Sets the default soft quota, in bytes. |
387 |
475 _________________________________________________________________ |
|
476 |
|
477 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
478 ? ] |
|
479 |
388 2.19 default-username |
480 2.19 default-username |
389 |
481 |
390 Type |
482 Type |
391 string |
483 string |
392 Default |
484 Default |
533 Identifies the subdirectory from the virtual domain directory |
665 Identifies the subdirectory from the virtual domain directory |
534 in which a virtual user's maildir will be created. Since this |
666 in which a virtual user's maildir will be created. Since this |
535 maildir is recorded in the password table, it does not have to |
667 maildir is recorded in the password table, it does not have to |
536 be the same for each user within a domain. This is prefixed |
668 be the same for each user within a domain. This is prefixed |
537 with `./' before it is used in the password table. |
669 with `./' before it is used in the password table. |
538 |
670 _________________________________________________________________ |
|
671 |
|
672 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
673 ? ] |
|
674 |
539 2.30 user-dir-bits |
675 2.30 user-dir-bits |
540 |
676 |
541 Type |
677 Type |
542 Default |
678 Default |
543 `0' |
679 `0' |
544 Used By |
680 Used By |
545 vmailmgrd and command-line programs when creating new users. |
681 vmailmgrd and command-line programs when creating new users. |
546 Description |
682 Description |
547 See section 2.31 user-dir-slices |
683 See section 2.31 user-dir-slices. |
548 |
684 _________________________________________________________________ |
|
685 |
|
686 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
687 ? ] |
|
688 |
549 2.31 user-dir-slices |
689 2.31 user-dir-slices |
550 |
690 |
551 Type |
691 Type |
552 Default |
692 Default |
553 `0' |
693 `0' |
580 This list is executed after the delivery is successfully |
724 This list is executed after the delivery is successfully |
581 completed. Since vdeliver expects `USER' and `HOME' to be set, |
725 completed. Since vdeliver expects `USER' and `HOME' to be set, |
582 it does not set them itself. If the command returns with an |
726 it does not set them itself. If the command returns with an |
583 error code, a warning is printed, but delivery does not fail, |
727 error code, a warning is printed, but delivery does not fail, |
584 as failure would lead to duplicates. |
728 as failure would lead to duplicates. |
585 |
729 _________________________________________________________________ |
|
730 |
|
731 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
732 ? ] |
|
733 |
586 2.33 vdeliver-predeliver |
734 2.33 vdeliver-predeliver |
587 |
735 |
588 Type |
736 Type |
589 executable |
737 executable |
590 Default |
738 Default |
594 Description |
742 Description |
595 This list is executed before the delivery is attempted, but |
743 This list is executed before the delivery is attempted, but |
596 after the virtual user information is looked up. Since vdeliver |
744 after the virtual user information is looked up. Since vdeliver |
597 expects `USER' and `HOME' to be set, it does not set them |
745 expects `USER' and `HOME' to be set, it does not set them |
598 itself. |
746 itself. |
599 |
747 _________________________________________________________________ |
600 2.34 vsetup-pre |
748 |
|
749 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
750 ? ] |
|
751 |
|
752 2.34 vsetup-post |
601 |
753 |
602 Type |
754 Type |
603 executable |
755 executable |
604 Default |
756 Default |
605 Empty |
757 Empty |
606 Used By |
758 Used By |
607 vsetup |
759 vsetup |
608 Description |
760 Description |
609 This list is executed after the vsetup command has sucessfully |
761 This list is executed after the vsetup command has sucessfully |
610 done everything else. |
762 done everything else. |
611 |
763 _________________________________________________________________ |
|
764 |
|
765 [ < ] [ > ] [ << ] [ Up ] [ >> ] [Top] [Contents] [Index] [ |
|
766 ? ] |
|
767 |
612 2.35 vsetup-pre |
768 2.35 vsetup-pre |
613 |
769 |
614 Type |
770 Type |
615 executable |
771 executable |
616 Default |
772 Default |
619 vsetup |
775 vsetup |
620 Description |
776 Description |
621 This list is executed before the vsetup command makes any |
777 This list is executed before the vsetup command makes any |
622 changes. |
778 changes. |
623 _________________________________________________________________ |
779 _________________________________________________________________ |
624 |
780 |
625 This document was generated on 14 September 2000 using |
781 [Top] [Contents] [Index] [ ? ] |
626 texi2html 1.56k. |
782 |
|
783 Table of Contents |
|
784 |
|
785 1. General Information |
|
786 |
|
787 1.1 Search Order |
|
788 1.2 File Types |
|
789 1.3 Command Execution |
|
790 |
|
791 2. Configuration Files |
|
792 2.1 authvmailmgr-error |
|
793 2.2 authvmailmgr-loginfail |
|
794 2.3 authvmailmgr-postsetuid |
|
795 2.4 authvmailmgr-presetuid |
|
796 2.5 autoresponse-dir |
|
797 2.6 autoresponse-file |
|
798 2.7 bulletin-dir |
|
799 2.8 checkvpw-error |
|
800 2.9 checkvpw-loginfail |
|
801 2.10 checkvpw-postexec |
|
802 2.11 checkvpw-postsetuid |
|
803 2.12 checkvpw-presetuid |
|
804 2.13 default-expiry |
|
805 2.14 default-maildir |
|
806 2.15 default-msgcount |
|
807 2.16 default-msgsize |
|
808 2.17 default-hardquota |
|
809 2.18 default-softquota |
|
810 2.19 default-username |
|
811 2.20 error-maildir |
|
812 2.21 global-bulletin-dir |
|
813 2.22 maildir-arg-str |
|
814 2.23 password-file |
|
815 2.24 postmaster-aliases |
|
816 2.25 postmaster-email |
|
817 2.26 qmail-root |
|
818 2.27 separators |
|
819 2.28 socket-file |
|
820 2.29 user-dir |
|
821 2.30 user-dir-bits |
|
822 2.31 user-dir-slices |
|
823 2.32 vdeliver-postdeliver |
|
824 2.33 vdeliver-predeliver |
|
825 2.34 vsetup-post |
|
826 2.35 vsetup-pre |
|
827 _________________________________________________________________ |
|
828 |
|
829 [Top] [Contents] [Index] [ ? ] |
|
830 |
|
831 Short Table of Contents |
|
832 |
|
833 1. General Information |
|
834 2. Configuration Files |
|
835 _________________________________________________________________ |
|
836 |
|
837 [Top] [Contents] [Index] [ ? ] |
|
838 |
|
839 About this document |
|
840 |
|
841 This document was generated by Bruce.Guenter.dyndns.org on December, |
|
842 29 2004 using texi2html |
|
843 |
|
844 The buttons in the navigation panels have the following meaning: |
|
845 |
|
846 Button Name Go to From 1.2.3 go to |
|
847 [ < ] Back previous section in reading order 1.2.2 |
|
848 [ > ] Forward next section in reading order 1.2.4 |
|
849 [ << ] FastBack previous or up-and-previous section 1.1 |
|
850 [ Up ] Up up section 1.2 |
|
851 [ >> ] FastForward next or up-and-next section 1.3 |
|
852 [Top] Top cover (top) of document |
|
853 [Contents] Contents table of contents |
|
854 [Index] Index concept index |
|
855 [ ? ] About this page |
|
856 |
|
857 where the Example assumes that the current position is at |
|
858 Subsubsection One-Two-Three of a document of the following structure: |
|
859 * 1. Section One |
|
860 |
|
861 * 1.1 Subsection One-One |
|
862 |
|
863 * ... |
|
864 |
|
865 1.2 Subsection One-Two |
|
866 * 1.2.1 Subsubsection One-Two-One |
|
867 * 1.2.2 Subsubsection One-Two-Two |
|
868 * 1.2.3 Subsubsection One-Two-Three <== Current Position |
|
869 * 1.2.4 Subsubsection One-Two-Four |
|
870 |
|
871 1.3 Subsection One-Three |
|
872 * ... |
|
873 |
|
874 1.4 Subsection One-Four |
|
875 _________________________________________________________________ |
|
876 |
|
877 This document was generated by Bruce.Guenter.dyndns.org on December, |
|
878 29 2004 using texi2html |