makesmtpaccess - Build ESMTP server access file
makesmtpaccess makesmtpaccess-msa
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. Note that this build of courier ignores any files that match
the regex pattern ".*.dpkg-[a-z]*" (dpkg configuration file handling)
and ".*~" (backup files of some editors).
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
If this variable is set to a non-empty value, all mail will be
rejected for this connection. The contents of the environment
variable will be used as the error message. This is not the same as
the couriertcpd access file setting that immediately drops the
connection. The incoming connection is accepted, but every message
will be rejected.
FAXRELAYCLIENT
Allow the client to send faxes via the courierfax(8)[3] module.
Note
When ESMTP authentication is enabled, a successful
authentication automatically sets FAXRELAYCLIENT.
RELAYCLIENT
Allow the client to relay mail.
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
Do not check the return address's domain in DNS if this environment
variable is set to 0. The default value of BOFHCHECKDNS is 1.
Note
Turning off the DNS check disables a number of options in the
bofh configuration file. See courier(8)[4] for more
information.
BOFHCHECKHELO
Set this variable to 1 to check the hostname argument to the ESMTP
HELO/EHLO command, as follows:
* A hostname that's actually an IP address, and is the same as
the connecting ESMTP client's IP address, is valid.
* Otherwise hostname should be a valid DNS name with MX and/or A
records, with at least one record matching the connecting ESMTP
client's IP address.
* An ESMTP client with relaying privileges (either due to
RELAYCLIENT explicitly set, or if it succesfully authenticates)
may use anything for an EHLO/HELO. The EHLO/HELO argument
coming from an authenticated/relaying client is not checked.
BOFHNOEXPN
Disable the EXPN command if this environment variable is set to 1.
BOFHNOVRFY
Disable the VRFY command if this environment variable is set to 1.
Other useful environment variables are listed in the submit(8)[5]
manual page.
esmtpd(8)[6], couriertcpd(8)[1], submit(8)[5].
Sam Varshavchik
Author
1. couriertcpd(8)
[set $man.base.url.for.relative.links]/couriertcpd.html
2. RFC 2476
http://www.rfc-editor.org/rfc/rfc2476.txt
3. courierfax(8)
[set $man.base.url.for.relative.links]/courierfax.html
4. courier(8)
[set $man.base.url.for.relative.links]/courier.html
5. submit(8)
[set $man.base.url.for.relative.links]/submit.html
6. esmtpd(8)
[set $man.base.url.for.relative.links]/esmtpd.html
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.