iredmail-doc/html_bk/enable.smtp.auth.on.port.25...

54 lines
2.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enable SMTP SASL AUTH on port 25</title>
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="https://www.iredmail.org" target="_blank">
<img alt="iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages. <a href="https://github.com/iredmail/docs">Help translate more</a></p>
<p><a href="./enable.smtp.auth.on.port.25-it_IT.html">Italiano</a> /</p>
</div>
<h1 id="enable-smtp-sasl-auth-on-port-25">Enable SMTP SASL AUTH on port 25</h1>
<p>Since iRedMail-0.9.5, SMTP auth on port 25 is disabled by default, all end
users are forced to send email through port 587 (SMTP over TLS). If you need
to allow insecure SMTP auth on port 25 for some reason, please follow steps
below to enable it.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>If you have just few clients need to send email through port 25, e.g.
network printer, old network devices which don't support secure
connection, you may try another tutorial instead:
<a href="./additional.smtp.port.html">Allow internal network devices to send email with insecure connection</a></p>
</div>
<ul>
<li>Disable postscreen service first: <a href="./enable.postscreen.html#disable-postscreen-service">Disable postscreen service</a>.</li>
<li>Enable smtp authentication by uncommenting settings below in Postfix config
file <code>/etc/postfix/main.cf</code> (Linux/OpenBSD) or
<code>/usr/local/etc/postfix/main.cf</code> (FreeBSD):</li>
</ul>
<pre><code>smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_auth_only = yes
</code></pre>
<ul>
<li>Restart or reload Postfix service.</li>
</ul>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>With <code>smtpd_tls_auth_only = yes</code>, it requires clients to enable STARTTLS
for secure connection, if you don't want this for some reason, please
comment it out.</p>
</div><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">GitHub repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://github.com/iredmail/docs/archive/master.zip">download the latest version</a> for offline reading. If you found something wrong, please do <a href="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div></body></html>