<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dirkjanswagerman.nl/index.php?action=history&amp;feed=atom&amp;title=Making_sendmail_send_mail</id>
	<title>Making sendmail send mail - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dirkjanswagerman.nl/index.php?action=history&amp;feed=atom&amp;title=Making_sendmail_send_mail"/>
	<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;action=history"/>
	<updated>2026-10-25T10:13:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;diff=7425&amp;oldid=prev</id>
		<title>Dirkjan at 19:43, 27 August 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;diff=7425&amp;oldid=prev"/>
		<updated>2020-08-27T19:43:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;amp;diff=7425&amp;amp;oldid=6069&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Dirkjan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;diff=6069&amp;oldid=prev</id>
		<title>Dirkjan: Replaced content with &quot;Making sendmail send mail Category:log&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;diff=6069&amp;oldid=prev"/>
		<updated>2020-08-27T19:06:28Z</updated>

		<summary type="html">&lt;p&gt;Replaced content with &amp;quot;Making sendmail send mail &lt;a href=&quot;/index.php?title=Category:Log&quot; title=&quot;Category:Log&quot;&gt;Category:log&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;a href=&quot;https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;amp;diff=6069&amp;amp;oldid=1278&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Dirkjan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;diff=1278&amp;oldid=prev</id>
		<title>Dirkjan: Created page with &quot;yum install sendmail sendmail.mc  yum install cyrus-sasl cyrus-sasl-md5 cyrus-sasl-plain  Make sure that the service saslauthd runs:  chkconfig saslauthd on  open ports: 143:T...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dirkjanswagerman.nl/index.php?title=Making_sendmail_send_mail&amp;diff=1278&amp;oldid=prev"/>
		<updated>2020-08-25T07:47:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;yum install sendmail sendmail.mc  yum install cyrus-sasl cyrus-sasl-md5 cyrus-sasl-plain  Make sure that the service saslauthd runs:  chkconfig saslauthd on  open ports: 143:T...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;yum install sendmail sendmail.mc&lt;br /&gt;
&lt;br /&gt;
yum install cyrus-sasl cyrus-sasl-md5 cyrus-sasl-plain&lt;br /&gt;
&lt;br /&gt;
Make sure that the service saslauthd runs:&lt;br /&gt;
&lt;br /&gt;
chkconfig saslauthd on&lt;br /&gt;
&lt;br /&gt;
open ports:&lt;br /&gt;
143:TCP IMAP&lt;br /&gt;
587:TCP Submission (for sending email from iphone)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/etc/mail/access&lt;br /&gt;
{{{&lt;br /&gt;
# Check the /usr/share/doc/sendmail/README.cf file for a description&lt;br /&gt;
# of the format of this file. (search for access_db in that file)&lt;br /&gt;
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc&lt;br /&gt;
# package.&lt;br /&gt;
#&lt;br /&gt;
# If you want to use AuthInfo with &amp;quot;M:PLAIN LOGIN&amp;quot;, make sure to have the&lt;br /&gt;
# cyrus-sasl-plain package installed.&lt;br /&gt;
#&lt;br /&gt;
# By default we allow relaying from localhost...&lt;br /&gt;
Connect:localhost.localdomain           RELAY&lt;br /&gt;
Connect:localhost                       RELAY&lt;br /&gt;
Connect:127.0.0.1                       RELAY&lt;br /&gt;
Connect:dirkjanswagerman.nl             RELAY&lt;br /&gt;
AuthInfo:mail.chello.nl &amp;quot;U:smmsp&amp;quot; &amp;quot;I:djswagerman&amp;quot; &amp;quot;P:&amp;lt;pwd&amp;gt;&amp;quot; &amp;quot;M: LOGIN PLAIN&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
/etc/mail/domaintable&lt;br /&gt;
{{{&lt;br /&gt;
# The &amp;quot;domain table&amp;quot; can be used to provide domain name mapping.&lt;br /&gt;
# Use of this should really be limited to your own domains.&lt;br /&gt;
# It may be useful if you change names (e.g., your company&lt;br /&gt;
# changes names from oldname.com to newname.com)&lt;br /&gt;
dirkjanswagerman.nl&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
/etc/mail/sendmail.mc&lt;br /&gt;
{{{&lt;br /&gt;
divert(-1)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # This is the sendmail macro config file for m4. If you make changes to&lt;br /&gt;
dnl # /etc/mail/sendmail.mc, you will need to regenerate the&lt;br /&gt;
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is&lt;br /&gt;
dnl # installed and then performing a&lt;br /&gt;
dnl #&lt;br /&gt;
dnl #     make -C /etc/mail&lt;br /&gt;
dnl #&lt;br /&gt;
include(`/usr/share/sendmail-cf/m4/cf.m4&amp;#039;)dnl&lt;br /&gt;
VERSIONID(`setup for Red Hat Linux&amp;#039;)dnl&lt;br /&gt;
OSTYPE(`linux&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # default logging level is 9, you might want to set it higher to&lt;br /&gt;
dnl # debug the configuration&lt;br /&gt;
dnl #&lt;br /&gt;
define(`confLOG_LEVEL&amp;#039;, `16&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # Uncomment and edit the following line if your outgoing mail needs to&lt;br /&gt;
dnl # be sent out through an external mail server:&lt;br /&gt;
dnl #&lt;br /&gt;
define(`SMART_HOST&amp;#039;,`mail.chello.nl&amp;#039;)&lt;br /&gt;
dnl define(`SMART_HOST&amp;#039;,`smtp.localhost&amp;#039;)&lt;br /&gt;
dnl define(`SMART_HOST&amp;#039;,`dirkjanswagerman.nl&amp;#039;)&lt;br /&gt;
dnl define(`RELAY_MAILER_ARGS&amp;#039;, `TCP $h 2525&amp;#039;)&lt;br /&gt;
dnl define(`ESMTP_MAILER_ARGS&amp;#039;, `TCP $h 2525&amp;#039;)&lt;br /&gt;
dnl #&lt;br /&gt;
dnl define(`SMTP_MAILER_FLAGS&amp;#039;, `0&amp;#039;)&lt;br /&gt;
define(`confDEF_USER_ID&amp;#039;,``8:12&amp;#039;&amp;#039;)dnl&lt;br /&gt;
dnl define(`confAUTO_REBUILD&amp;#039;)dnl&lt;br /&gt;
define(`confTO_CONNECT&amp;#039;, `1m&amp;#039;)dnl&lt;br /&gt;
dnl define(`confTRY_NULL_MX_LIST&amp;#039;,true)dnl&lt;br /&gt;
define(`confDONT_PROBE_INTERFACES&amp;#039;,true)dnl&lt;br /&gt;
define(`PROCMAIL_MAILER_PATH&amp;#039;,`/usr/bin/procmail&amp;#039;)dnl&lt;br /&gt;
define(`ALIAS_FILE&amp;#039;, `/etc/aliases&amp;#039;)dnl&lt;br /&gt;
define(`STATUS_FILE&amp;#039;, `/var/log/mail/statistics&amp;#039;)dnl&lt;br /&gt;
define(`UUCP_MAILER_MAX&amp;#039;, `2000000&amp;#039;)dnl&lt;br /&gt;
define(`confUSERDB_SPEC&amp;#039;, `/etc/mail/userdb.db&amp;#039;)dnl&lt;br /&gt;
define(`confPRIVACY_FLAGS&amp;#039;, `authwarnings,novrfy,noexpn,restrictqrun&amp;#039;)dnl&lt;br /&gt;
define(`confAUTH_OPTIONS&amp;#039;, `A&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # The following allows relaying if the user authenticates, and disallows&lt;br /&gt;
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links&lt;br /&gt;
dnl #&lt;br /&gt;
define(`confAUTH_OPTIONS&amp;#039;, `A p&amp;#039;)dnl&lt;br /&gt;
dnl # &lt;br /&gt;
dnl # PLAIN is the preferred plaintext authentication method and used by&lt;br /&gt;
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do&lt;br /&gt;
dnl # use LOGIN. Other mechanisms should be used if the connection is not&lt;br /&gt;
dnl # guaranteed secure.&lt;br /&gt;
dnl # Please remember that saslauthd needs to be running for AUTH. &lt;br /&gt;
dnl #&lt;br /&gt;
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&amp;#039;)dnl&lt;br /&gt;
define(`confAUTH_MECHANISMS&amp;#039;, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # Rudimentary information on creating certificates for sendmail TLS:&lt;br /&gt;
dnl #     cd /usr/share/ssl/certs; make sendmail.pem&lt;br /&gt;
dnl # Complete usage:&lt;br /&gt;
dnl #     make -C /usr/share/ssl/certs usage&lt;br /&gt;
dnl #&lt;br /&gt;
define(`confCACERT_PATH&amp;#039;,`/etc/pki/tls/certs&amp;#039;)&lt;br /&gt;
define(`confCACERT&amp;#039;,`/etc/pki/tls/certs/cacert.pem&amp;#039;)&lt;br /&gt;
define(`confSERVER_CERT&amp;#039;,`/etc/pki/tls/certs/sendmail.pem&amp;#039;)&lt;br /&gt;
define(`confSERVER_KEY&amp;#039;,`/etc/pki/tls/certs/sendmail.pem&amp;#039;)&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP&amp;#039;s&lt;br /&gt;
dnl # slapd, which requires the file to be readble by group ldap&lt;br /&gt;
dnl #&lt;br /&gt;
dnl define(`confDONT_BLAME_SENDMAIL&amp;#039;,`groupreadablekeyfile&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl define(`confTO_QUEUEWARN&amp;#039;, `4h&amp;#039;)dnl&lt;br /&gt;
dnl define(`confTO_QUEUERETURN&amp;#039;, `5d&amp;#039;)dnl&lt;br /&gt;
dnl define(`confQUEUE_LA&amp;#039;, `12&amp;#039;)dnl&lt;br /&gt;
dnl define(`confREFUSE_LA&amp;#039;, `18&amp;#039;)dnl&lt;br /&gt;
define(`confTO_IDENT&amp;#039;, `0&amp;#039;)dnl&lt;br /&gt;
dnl FEATURE(delay_checks)dnl&lt;br /&gt;
FEATURE(`no_default_msa&amp;#039;,`dnl&amp;#039;)dnl&lt;br /&gt;
FEATURE(`smrsh&amp;#039;,`/usr/sbin/smrsh&amp;#039;)dnl&lt;br /&gt;
FEATURE(`mailertable&amp;#039;,`hash -o /etc/mail/mailertable.db&amp;#039;)dnl&lt;br /&gt;
FEATURE(`virtusertable&amp;#039;,`hash -o /etc/mail/virtusertable.db&amp;#039;)dnl&lt;br /&gt;
FEATURE(redirect)dnl&lt;br /&gt;
FEATURE(always_add_domain)dnl&lt;br /&gt;
FEATURE(use_cw_file)dnl&lt;br /&gt;
FEATURE(use_ct_file)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # The following limits the number of processes sendmail can fork to accept &lt;br /&gt;
dnl # incoming messages or process its message queues to 12.) sendmail refuses &lt;br /&gt;
dnl # to accept connections once it has reached its quota of child processes.&lt;br /&gt;
dnl #&lt;br /&gt;
dnl define(`confMAX_DAEMON_CHILDREN&amp;#039;, 12)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # Limits the number of new connections per second. This caps the overhead &lt;br /&gt;
dnl # incurred due to forking new sendmail processes. May be useful against &lt;br /&gt;
dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address &lt;br /&gt;
dnl # limit would be useful but is not available as an option at this writing.)&lt;br /&gt;
dnl #&lt;br /&gt;
dnl define(`confCONNECTION_RATE_THROTTLE&amp;#039;, 3)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # The -t option will retry delivery if e.g. the user runs over his quota.&lt;br /&gt;
dnl #&lt;br /&gt;
FEATURE(local_procmail,`&amp;#039;,`procmail -t -Y -a $h -d $u&amp;#039;)dnl&lt;br /&gt;
FEATURE(`access_db&amp;#039;,`hash -T&amp;lt;TMPF&amp;gt; -o /etc/mail/access.db&amp;#039;)dnl&lt;br /&gt;
FEATURE(`blacklist_recipients&amp;#039;)dnl&lt;br /&gt;
EXPOSED_USER(`root&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # For using Cyrus-IMAPd as POP3/IMAP server through LMTP delivery uncomment&lt;br /&gt;
dnl # the following 2 definitions and activate below in the MAILER section the&lt;br /&gt;
dnl # cyrusv2 mailer.&lt;br /&gt;
dnl #&lt;br /&gt;
dnl define(`confLOCAL_MAILER&amp;#039;, `cyrusv2&amp;#039;)dnl&lt;br /&gt;
dnl define(`CYRUSV2_MAILER_ARGS&amp;#039;, `FILE /var/lib/imap/socket/lmtp&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # The following causes sendmail to only listen on the IPv4 loopback address&lt;br /&gt;
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback&lt;br /&gt;
dnl # address restriction to accept email from the internet or intranet.&lt;br /&gt;
dnl #&lt;br /&gt;
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA&amp;#039;)dnl&lt;br /&gt;
dnl DAEMON_OPTIONS(`Port=smtp,Addr=62.59.236.172, Name=MTA&amp;#039;)dnl&lt;br /&gt;
DAEMON_OPTIONS(`Port=smtp, Name=MTA&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # The following causes sendmail to additionally listen to port 587 for&lt;br /&gt;
dnl # mail from MUAs that authenticate. Roaming users who can&amp;#039;t reach their&lt;br /&gt;
dnl # preferred sendmail daemon due to port 25 being blocked or redirected find&lt;br /&gt;
dnl # this useful.&lt;br /&gt;
dnl #&lt;br /&gt;
DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # The following causes sendmail to additionally listen to port 465, but&lt;br /&gt;
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed&lt;br /&gt;
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can&amp;#039;t&lt;br /&gt;
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS&lt;br /&gt;
dnl # and doesn&amp;#039;t support the deprecated smtps; Evolution &amp;lt;1.1.1 uses smtps&lt;br /&gt;
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # For this to work your OpenSSL certificates must be configured.&lt;br /&gt;
dnl #&lt;br /&gt;
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # The following causes sendmail to additionally listen on the IPv6 loopback&lt;br /&gt;
dnl # device. Remove the loopback address restriction listen to the network.&lt;br /&gt;
dnl #&lt;br /&gt;
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # enable both ipv6 and ipv4 in sendmail:&lt;br /&gt;
dnl #&lt;br /&gt;
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6&amp;#039;)&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # We strongly recommend not accepting unresolvable domains if you want to&lt;br /&gt;
dnl # protect yourself from spam. However, the laptop and users on computers&lt;br /&gt;
dnl # that do not have 24x7 DNS do need this.&lt;br /&gt;
dnl #&lt;br /&gt;
dnl FEATURE(`accept_unresolvable_domains&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl FEATURE(`relay_based_on_MX&amp;#039;)dnl&lt;br /&gt;
dnl # &lt;br /&gt;
dnl # Also accept email sent to &amp;quot;localhost.localdomain&amp;quot; as local email.&lt;br /&gt;
dnl # &lt;br /&gt;
dnl LOCAL_DOMAIN(`localhost.localdomain&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # The following example makes mail from this host and any additional&lt;br /&gt;
dnl # specified domains appear to be sent from mydomain.com&lt;br /&gt;
dnl #&lt;br /&gt;
dnl MASQUERADE_AS(`mydomain.com&amp;#039;)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # masquerade not just the headers, but the envelope as well&lt;br /&gt;
dnl #&lt;br /&gt;
dnl FEATURE(masquerade_envelope)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well&lt;br /&gt;
dnl #&lt;br /&gt;
dnl FEATURE(masquerade_entire_domain)dnl&lt;br /&gt;
dnl #&lt;br /&gt;
dnl MASQUERADE_DOMAIN(localhost)dnl&lt;br /&gt;
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl&lt;br /&gt;
dnl MASQUERADE_DOMAIN(dirkjanswagerman.nl)dnl&lt;br /&gt;
FEATURE(`dnsbl&amp;#039;, `ipwhois.rfc-ignorant.org&amp;#039;,`&amp;quot;550 Mail from &amp;quot; $&amp;amp;{client_addr} &amp;quot; refused. Rejected for bad WHOIS info on IP of your SMTP server - see http://www.rfc-ignorant.org/&amp;quot;&amp;#039;)&lt;br /&gt;
FEATURE(`dnsbl&amp;#039;, `proxies.blackholes.easynet.nl&amp;#039;, `&amp;quot;550 5.7.1 ACCESS DENIED to OPEN PROXY SERVER &amp;quot;$&amp;amp;{client_name}&amp;quot; by easynet.nl DNSBL  (http://proxies.blackholes.easynet.nl/errors.html)&amp;quot;&amp;#039;, `&amp;#039;)dnl&lt;br /&gt;
Spamcop: A spammer blacklist. &lt;br /&gt;
FEATURE(`dnsbl&amp;#039;, `bl.spamcop.net&amp;#039;, `&amp;quot;450 Mail from &amp;quot; $`&amp;#039;&amp;amp;{client_addr} &amp;quot; refused - see http://spamcop.net/bl.shtml&amp;quot;&amp;#039;)&lt;br /&gt;
FEATURE(`dnsbl&amp;#039;,`sbl.spamhaus.org&amp;#039;,`Rejected - see http://spamhaus.org/&amp;#039;)dnl&lt;br /&gt;
INPUT_MAIL_FILTER(`greylist&amp;#039;,`S=local:/var/milter-greylist/milter-greylist.sock&amp;#039;)&lt;br /&gt;
define(`confMILTER_MACROS_CONNECT&amp;#039;, `j, {if_addr}&amp;#039;)&lt;br /&gt;
define(`confMILTER_MACROS_HELO&amp;#039;, `{verify}, {cert_subject}&amp;#039;)&lt;br /&gt;
define(`confMILTER_MACROS_ENVFROM&amp;#039;, `i, {auth_authen}&amp;#039;)&lt;br /&gt;
define(`confMILTER_MACROS_ENVRCPT&amp;#039;, `{greylist}&amp;#039;)&lt;br /&gt;
MAILER(smtp)dnl&lt;br /&gt;
MAILER(procmail)dnl&lt;br /&gt;
MAILER(cyrusv2)dnl&lt;br /&gt;
}}}&lt;br /&gt;
[[Category:log]]&lt;/div&gt;</summary>
		<author><name>Dirkjan</name></author>
		
	</entry>
</feed>