MAKEACCEPTMAILFOR(8)

NAME
makeacceptmailfor - Create @sysconfdir@/esmtpacceptmailfor.dat

SYNOPSIS

makeacceptmailfor

DESCRIPTION

makeacceptmailfor reads @sysconfdir@/esmtpacceptmailfor.dir and creates @sysconfdir@/esmtpacceptmailfor.dat which is a binary database file. @sysconfdir@/esmtpacceptmailfor.dat is a list of domains that the Courier mail server accepts mail for, via ESMTP. @sysconfdir@/esmtpacceptmailfor.dir is a subdirectory containing one or more files. Each file in this subdirectory is plain text file, containing a list of mail domains, one per line, in lowercase. All files in the subdirectory are concatenated, and the binary database file is created from the result.

The makeacceptmailfor can be executed while the Courier mail server is running, and any changes take effect immediately. However, only one instance of makeacceptmailfor can be executed at the same time.

SUBDIRECTORY CHECKS

The following checks are made on the contents of @sysconfdir@/esmtpacceptmailfor.dir:

    • Files whose names contain a tilde, “~” are skipped over.

    • Files whose names end with the following suffixes result in an error message: “.rpmsave”, “.rpmnew”, and “.dpkg-suffix”. These files are backup files created by package manager when updating to a newer version of the package and contain the old or the new version of a configuration file whose settings may be new or obsolete.

    The contents of the file whose name does not have the suffix should be checked against the backup. The backup file should be deleted after making any needed manual changes to the configuration file.

    • Files whose names end with the “.dist” suffix is also treated as a configuration file backup or template, but with the following exception: the “.dist” file gets ignored and automatically skipped over, without any error message, if the suffix-less file exists and its modification time is more recent than the “.dist” file's modification time.

    Otherwise an error message gets reported. Resolving the error message is done by either copying the “.dist” file or editing and saving the file without the suffix (resulting in a newer timestamp).

SEE ALSO

esmtpd(8)[1].

AUTHOR

Sam Varshavchik
    Author

NOTES

1.  esmtpd(8)
    https://www.courier-mta.org/esmtpd.html