MAKESMTPACCESS, MAKE(8) | Double Precision, Inc. | MAKESMTPACCESS, MAKE(8) |
NAME¶
makesmtpaccess - Build ESMTP server access file
SYNOPSIS¶
makesmtpaccess
makesmtpaccess-msa
DESCRIPTION¶
makesmtpaccess rebuilds the contents of the /etc/courier/smtpaccess.dat database from the contents of the files in the /etc/courier/smtpaccess directory. When the esmtpd script starts couriertcpd, the script specifies /etc/courier/smtpaccess.dat file to control access to the Courier mail server's ESMTP daemon. The makesmtpaccess script must be run before any changes in the /etc/courier/smtpaccess directory take effect.
The couriertcpd(8)[1] manual page describes the general format of access files.
The default Courier mail server configuration uses the same access file, /etc/courier/smtpaccess.dat for both the regular ESMTP server, and the message submission server on port 587 (RFC 2476[2]). It is possible to use different access files. To do so, create a different access file, edit /etc/courier/esmtpd-msa, and set ACCESSFILE to the filename of the access file directory (the directory containing the plain text files, not the .dat file). Then, use makesmtpaccess-msa instead of makesmtpaccess to build the .dat file.
The smtpaccess configuration file¶
The couriertcpd(8)[1] manual page describes the generic format of the access file. The access file specifies what should be done with connections from defined IP address ranges. The basic choices are to accept or reject the connection. Also, the generic format of the access file allows arbitrary environment variables to be set based on the connection's remote IP address.
The Courier mail server's ESMTPD server understands the following environment variables, which may be set in the access file:
BLOCK
FAXRELAYCLIENT
Note
When ESMTP authentication is enabled, a successful authentication automatically sets FAXRELAYCLIENT.
RELAYCLIENT
Note
When ESMTP authentication is enabled, a successful authentication automatically sets RELAYCLIENT.
The following options are typically set globally in the esmtpd configuration file, but may be overriden in the smtpaccess configuration file:
BOFHCHECKDNS
Note
Turning off the DNS check disables a number of options in the bofh configuration file. See courier(8)[4] for more information.
BOFHCHECKHELO
BOFHNOEXPN
BOFHNOVRFY
Other useful environment variables are listed in the submit(8)[5] manual page.
SEE ALSO¶
AUTHOR¶
Sam Varshavchik
NOTES¶
- 1.
- couriertcpd(8)
- 2.
- RFC 2476
- 4.
- courier(8)
- 5.
- submit(8)
- 6.
- esmtpd(8)
10/28/2020 | Courier Mail Server |