=head1 Qpsmtpd configuration The default way of setting config values is placing files with the name of the config variable in the config directory F, like qmail's F directory. NB: F (or F<$ENV{QMAIL}/control>) is used if a file does not exist in C. The location of the C directory can be set via the I environment variable and defaults to the current working directory. Any empty line or lines starting with C<#> are ignored. You may use a plugin which hooks the C hook to store the settings in some other way. See L and L for more info on this. Some settings still have to go in files, because they are loaded before any plugin can return something via the C hook: C, C, C and of course C. B =head2 Core settings These settings are used by the qpsmtpd core. Any other setting is (hopefully) documented by the corresponding plugin. Some settings of important plugins are shown below in L. =over 4 =item plugins The main config file, where all used plugins and their arguments are listed. =item me Sets the hostname which is used all over the place: in the greeting message, the Iheader, ... Default is whatever Sys::Hostname's hostname() returns. =item plugin_dirs Where to search for plugins (one directory per line), defaults to F<./plugins>. =item logging Sets the primary logging destination, see F. Format is the same as it's used for the F config file. B only the first non empty line is used (lines starting with C<#> are counted as empty). =item loglevel This is not used anymore, I if no F plugin is in use. Use a logging plugin. =item databytes Maximum size a message may be. Without this setting, there is no limit on the size. Should be something less than the backend MTA has set as it's maximum message size (if there is one). =item size_threshold When a message is greater than the size given in this config file, it will be spooled to disk. You probably want to enable spooling to disk for most virus scanner plugins and F. =item smtpgreeting Override the default SMTP greeting with this string. =item spool_dir Where temporary files are stored, defaults to F<~/tmp/>. =item spool_perms Permissions of the I, default is C<0700>. You probably have to change the defaults for some scanners (e.g. the F plugin). =item timeout =item timeoutsmtpd Set the timeout for the clients, C is the qmail smtpd control file, C the qpsmtpd file. Default is 1200 seconds. =item tls_before_auth If set to a true value, clients will have to initiate an SSL secured connection before any auth succeeds, defaults to C<0>. =back <<<<<<< HEAD =head2 Plugin settings ======= =head2 Plugin settings files >>>>>>> initial import - based on my qpsmtpd fork =over 4 =item rcpthosts, morercpthosts Plugin: I Domains listed in these files will be accepted as valid local domains, anything else is rejected with a C message. If an entry in the C file starts with a C<.>, mails to anything ending with this string will be accepted, e.g.: example.com .example.com will accept mails for C and C. The C file is just checked for exact (case insensitive) matches. =item hosts_allow Plugin: F. Don't use this config file. The plugin itself is required to set the maximum number of concurrent connections. This config setting should only be used for some extremly rude clients: if list is too big it will slow down accepting new connections. =item relayclients =item morerelayclients Plugin: F Allow relaying for hosts listed in this file. The C file accepts IPs and CIDR entries. The C file accepts IPs and C like C<192.168.2.> (note the trailing dot!). With the given example any host which IP starts with C<192.168.2.> may relay via us. =item dnsbl_zones Plugin: F This file specifies the RBL zones list, used by the dnsbl plugin. Ihe IP address of each connecting host will be checked against each zone given. A few sample DNSBLs are listed in the sample config file, but you should evaluate the efficacy and listing policies of a DNSBL before using it. See also C and C in the documentation of the C plugin =item resolvable_fromhost Plugin: F Reject sender addresses where the MX is unresolvable, i.e. a boolean value is the only value in this file. If the MX resolves to something, reject the sender address if it resolves to something listed in the F config file. The I expects IP addresses or CIDR (i.e. C values) one per line, IPv4 only currenlty. =back =head2 Plugin settings arguments These are arguments that can be set on the config/plugins line, after the name of the plugin. These config options are available to all plugins. =over 4 =item loglevel Adjust the quantity of logging for the plugin. See docs/logging.pod =item reject plugin reject [ 0 | 1 | naughty ] Should the plugin reject mail? The special 'naughty' case will mark the connection as a naughty. Most plugins skip processing naughty connections. Filtering plugins can learn from them. Naughty connections are terminated up by the B plugin. Plugins that use $self->get_reject() or $self->get_reject_type() will automatically honor this setting. =item reject_type plugin reject_type [ perm | temp | disconnect | temp_disconnect ] Default: perm Values with temp in the name return a 4xx code and the others return a 5xx code. The I argument and the corresponding get_reject_type() method provides a standard way for plugins to automatically return the selected rejection type, as chosen by the config setting, the plugin author, or the get_reject_type() method. Plugins that are updated to use the $self->get_reject() or $self->get_reject_type() methods will automatically honor this setting. =back =cut