📄 config
字号:
UNIX Configuration Notes The IMAP and POP3 servers are plug-and-play on standard UNIXsystems. There is no special configuration needed. Please ignore allrumors to the effect that you need to create an IMAP configurationfile. If your system is non-standard, virtually everything that you arelikely to want to modify can be found in the source file .../src/osdep/unix/env_unix.cIn particular, special attention should be given to the routines: env_init() initialize c-client environment variables, especially the user name and home directory sysinbox() return the UNIX path of the INBOX in which mail delivery will place mail mailboxdir() translate a mailbox name into the associated UNIX directory for listing mailboxfile() translate a mailbox name into the associated UNIX file for opening You should modify these routines as necessary for local policy.The most common modifications are to env_init(), to modify thesoftware's idea of the home directory (which is used everywhere as thedefault directory), and to sysinbox(), to modify where the softwarelooks for newly-delivered mail. Example 1: suppose your mailer delivers mail to file ".mailbox"in the user's home directory instead of the default UNIX mail spooldirectory. You will want to change routine sysinbox(), changing theline that reads: sprintf (tmp,"%s/%s",MAILSPOOL,myusername ());to be: sprintf (tmp,"%s/.mailbox",myhomedir ()); Example 2: suppose you want to change c-client's idea of theuser's home directory to be the "mail" subdirectory of the user's homedirectory instead of the user's home directory. You will want tochange routine env_init(), changing the line that reads: /* use real home directory */ myHomeDir = cpystr (home ? home : ANONYMOUSHOME);to be: if (home) { /* use "mail" subdirectory of home directory */ sprintf (tmp,"%s/mail",home); myHomeDir = cpystr (tmp); } else myHomeDir = cpystr (ANONYMOUSHOME);Note, however, that a better way is to use the -DMAILSUBDIR make option,as described in the top-level Makefile. Ignore all references in env_unix.c to a configuration file; thatcode is for UW-internal use only. It is extremely unlikely that thatfacility will work usefully for you; it is extremely likely that youwill shoot yourself in the foot by using; and it frequently changes inan incompatible manner. There are two other build-time configuration issues which you mayneed to consider: drivers and authenticators. Both of these are setup in the top-level Makefile -- in particular, by the EXTRADRIVERS andEXTRAAUTHENTICATORS variables. Drivers are code modules that support different mailbox storagetechnologies. By default, all drivers are enabled. There is littlebenefit to be gained by disabling a driver, with one exception. Thembox driver implements the behavior of automatically moving new mailfrom the spool directory to the "mbox" file on the user's homedirectory, if and *only* if the "mbox" exists and is in mailboxformat. The mbox driver is listed under EXTRADRIVERS; if you wish todisable it just remove it from that list and rebuild. Authenticators are code modules that support authenticationtechnology for the server (password file lookup, Kerberos, S/Key,etc.). EXTRAAUTHENTICATORS is used to add an authenticator. Thissubject can be complex; find a wizard if you can't figure it out. It is also possible to add your own drivers and authenticators.This is a topic for wizards, and is beyond the scope of this text. NT Configuration Notes This software is not plug-and-play on NT. If you're not a hackerand/or are unwilling to invest the time to do some programming, youprobably want to buy a commercial server for NT. The primary issue that you need to deal with is the format ofmail, where the INBOX is located, and where secondary folders arelocated. As distributed, the software supports mail in the defaultformat used on UNIX (unix format) as well as mbx, mtx, and tenexformats. mbx format is encouraged if at all possible; mtx and tenexformat are for compatibility with the past. However, it all dependsupon how and where your SMTP server delivers mail. To change the default mailbox format, edit the symbolDEFAULTDRIVER in: ../src/osdep/nt/makefile.ntor ../src/osdep/nt/makefile.ntkTo change the default location of INBOX, edit the file: ../src/osdep/nt/mailfile.hVirtually everything else having to do with environment that you arelikely to want to modify can be found in the source file: .../src/osdep/nt/env_nt.cIn particular, special attention should be given to the routines: env_init() initialize c-client environment variables, especially the user name and home directory sysinbox() return the NT path of the INBOX in which mail delivery will place mail mailboxdir() translate a mailbox name into the associated NT directory for listing mailboxfile() translate a mailbox name into the associated NT file for opening You should modify these routines as necessary. The most commonmodifications are to env_init(), to modify the software's idea of thehome directory (which is used everywhere as the default directory),and to sysinbox(), to modify where the software looks fornewly-delivered mail. There are two other build-time configuration issues which you mayneed to consider: drivers and authenticators. Both of these are setup in the top-level Makefile -- in particular, by the EXTRADRIVERS andEXTRAAUTHENTICATORS variables. Drivers are code modules that support different mailbox storagetechnologies. By default, all drivers are enabled. There is littlebenefit to be gained by disabling a driver. Authenticators are code modules that support authenticationtechnology for the server (password file lookup, Kerberos, S/Key,etc.). EXTRAAUTHENTICATORS is used to add an authenticator. Thissubject can be complex; find a wizard if you can't figure it out. It is also possible to add your own drivers and authenticators.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -