<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — no longer able to relay from scanner]]></title>
		<link>https://forum.iredmail.org/topic19072-no-longer-able-to-relay-from-scanner.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic19072.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in no longer able to relay from scanner.]]></description>
		<lastBuildDate>Tue, 04 Oct 2022 01:04:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post84467.html#p84467</link>
			<description><![CDATA[<div class="quotebox"><cite>clarknova wrote:</cite><blockquote><p>So in fixing SMTP for the scanner I broke it for webmail. When trying to send an email from webmail I get the error &quot;SMTP Error (): Authentication failed.&quot; I see this in the log:</p><div class="codebox"><pre><code>Oct  3 11:27:47 mail postfix/submission/smtpd[3049792]: connect from localhost[::1]
Oct  3 11:27:47 mail roundcube: &lt;tiehakn4&gt; PHP Error: SMTP server does not support authentication (POST /mail/?_task=mail&amp;_unlock=loading1664817905899&amp;_framed=1&amp;_action=send)
Oct  3 11:27:47 mail postfix/submission/smtpd[3049792]: disconnect from localhost[::1] ehlo=1 quit=1 commands=2
Oct  3 11:27:47 mail roundcube: &lt;tiehakn4&gt; SMTP Error: Authentication failure: mail.burgess.tech
Oct  3 11:27:47 mail roundcube: PIPELINING
Oct  3 11:27:47 mail roundcube: SIZE 15728640
Oct  3 11:27:47 mail roundcube: ETRN
Oct  3 11:27:47 mail roundcube: STARTTLS
Oct  3 11:27:47 mail roundcube: ENHANCEDSTATUSCODES
Oct  3 11:27:47 mail roundcube: 8BITMIME
Oct  3 11:27:47 mail roundcube: DSN
Oct  3 11:27:47 mail roundcube: SMTPUTF8
Oct  3 11:27:47 mail roundcube: CHUNKING (Code: 250) in /opt/www/roundcubemail-1.5.2/program/lib/Roundcube/rcube.php on line 1795 (POST /mail/?_task=mail&amp;_unlock=loading1664817905899&amp;_framed=1&amp;_action=send)</code></pre></div></blockquote></div><p>Latest roundcube has an issue #8698 on Roundcube Github (Can&#039;t post links)</p><p>I fell into the same trap when I upgraded and couldn&#039;t send mail on webmail anymore. The solution is in the issue but basically the installto.sh script is failing to transfer some files to the roundcube folder.</p>]]></description>
			<author><![CDATA[null@example.com (kysh)]]></author>
			<pubDate>Tue, 04 Oct 2022 01:04:00 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84467.html#p84467</guid>
		</item>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post84466.html#p84466</link>
			<description><![CDATA[<p>The printer is working. I&#039;ve reviewed my changes and I suspect it was the upgrade to iRedMail this morning that broke my ability to send mail. I upgraded thinking it was best not to post asking for help if I wasn&#039;t running the latest stable.</p>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Mon, 03 Oct 2022 22:18:23 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84466.html#p84466</guid>
		</item>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post84465.html#p84465</link>
			<description><![CDATA[<p>PREGREET means, the printer ignores the server HELO and has a very very poorly implemented mail function</p><br /><p><a href="https://www.postfix.org/POSTSCREEN_README.html">https://www.postfix.org/POSTSCREEN_README.html</a></p><p>look at the pregreet section</p><br /><p>iredmail bans pregreets trough fail2ban, so to avaoid that you need to add the printer to the postscreen access list aswell</p><br /><p>and you should revert your other settings and follow the guides</p><br /><br /><p>edit: just use an external solution:</p><p><a href="https://www.smtp2go.com/setupguide/hp-cm2320/">https://www.smtp2go.com/setupguide/hp-cm2320/</a></p>]]></description>
			<author><![CDATA[null@example.com (Cthulhu)]]></author>
			<pubDate>Mon, 03 Oct 2022 19:46:18 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84465.html#p84465</guid>
		</item>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post84464.html#p84464</link>
			<description><![CDATA[<p>So in fixing SMTP for the scanner I broke it for webmail. When trying to send an email from webmail I get the error &quot;SMTP Error (): Authentication failed.&quot; I see this in the log:</p><div class="codebox"><pre><code>Oct  3 11:27:47 mail postfix/submission/smtpd[3049792]: connect from localhost[::1]
Oct  3 11:27:47 mail roundcube: &lt;tiehakn4&gt; PHP Error: SMTP server does not support authentication (POST /mail/?_task=mail&amp;_unlock=loading1664817905899&amp;_framed=1&amp;_action=send)
Oct  3 11:27:47 mail postfix/submission/smtpd[3049792]: disconnect from localhost[::1] ehlo=1 quit=1 commands=2
Oct  3 11:27:47 mail roundcube: &lt;tiehakn4&gt; SMTP Error: Authentication failure: mail.burgess.tech
Oct  3 11:27:47 mail roundcube: PIPELINING
Oct  3 11:27:47 mail roundcube: SIZE 15728640
Oct  3 11:27:47 mail roundcube: ETRN
Oct  3 11:27:47 mail roundcube: STARTTLS
Oct  3 11:27:47 mail roundcube: ENHANCEDSTATUSCODES
Oct  3 11:27:47 mail roundcube: 8BITMIME
Oct  3 11:27:47 mail roundcube: DSN
Oct  3 11:27:47 mail roundcube: SMTPUTF8
Oct  3 11:27:47 mail roundcube: CHUNKING (Code: 250) in /opt/www/roundcubemail-1.5.2/program/lib/Roundcube/rcube.php on line 1795 (POST /mail/?_task=mail&amp;_unlock=loading1664817905899&amp;_framed=1&amp;_action=send)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Mon, 03 Oct 2022 17:53:21 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84464.html#p84464</guid>
		</item>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post84463.html#p84463</link>
			<description><![CDATA[<p>I finally found success by adding this line to my unauthenticated postfix service on port 2525 (/etc/postifx/master.cf):</p><div class="codebox"><pre><code>  -o mynetworks=127.0.0.1,172.30.0.122</code></pre></div><p>per this thread: <a href="https://forum.iredmail.org/post73774.html#p73774">https://forum.iredmail.org/post73774.html#p73774</a></p><p>It might be worth adding this line to the page here:</p><p><a href="https://docs.iredmail.org/additional.smtp.port.html">https://docs.iredmail.org/additional.smtp.port.html</a></p><p>I don&#039;t know why somebody would add an additional listening port to postfix without also adding that line, but there&#039;s a lot I don&#039;t know.</p>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Mon, 03 Oct 2022 17:08:31 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84463.html#p84463</guid>
		</item>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post84462.html#p84462</link>
			<description><![CDATA[<p>I see that I missed the trailing &#039;/&#039; in sender_access.pcre. I tried the following instead:</p><div class="codebox"><pre><code>/^172\.30\.0\./  OK</code></pre></div><p>and</p><div class="codebox"><pre><code>/^172\.30\.0\.122$/     OK</code></pre></div><p>restarting the postfix and testing each time, but the error was the same.</p>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Mon, 03 Oct 2022 16:59:15 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84462.html#p84462</guid>
		</item>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post84461.html#p84461</link>
			<description><![CDATA[<p>Thanks, I didn&#039;t see your response until now. I&#039;ve added the following lines:</p><p>/opt/iredapd/settings.py<br /></p><div class="codebox"><pre><code>MYNETWORKS = [&#039;172.30.0.0/22&#039;, &#039;172.31.0.0/24&#039;, &#039;104.37.148.71&#039;]
ALLOWED_LOGIN_MISMATCH_SENDERS = [&#039;do-not-reply@burgess.tech&#039;]
GREYLISTING_TRAINING_MODE = True
ALLOWED_FORGED_SENDERS = [&#039;do-not-reply@burgess.tech&#039;]</code></pre></div><p>/etc/postfix/master.cf<br /></p><div class="codebox"><pre><code>2525      inet  n       -       -       -       -       smtpd
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_sasl_security_options=noanonymous
  -o smtpd_tls_security_level=may
  -o smtpd_sender_restrictions=permit_mynetworks,permit_sasl_authenticated,reject</code></pre></div><p>/etc/postfix/helo_access.pcre<br /></p><div class="codebox"><pre><code>/^CM2320nf$/ OK</code></pre></div><p>/etc/postfix/sender_access.pcre<br /></p><div class="codebox"><pre><code>/^172\.30\.0\.  OK</code></pre></div><p>After restarting the postfix service and trying again, I see this in the log:<br /></p><div class="codebox"><pre><code>Oct  3 10:46:00 mail postfix/smtpd[3047374]: NOQUEUE: reject: RCPT from unknown[172.30.0.122]: 554 5.7.1 &lt;do-not-reply@burgess.tech&gt;: Sender address rejected: Access denied; from=&lt;do-not-reply@burgess.tech&gt; to=&lt;david@burgess.tech&gt; proto=ESMTP helo=&lt;CM2320nf&gt;
Oct  3 10:46:00 mail postfix/smtpd[3047374]: generic_checks: name=reject status=2
Oct  3 10:46:00 mail postfix/smtpd[3047374]: &gt;&gt;&gt; END Sender address RESTRICTIONS &lt;&lt;&lt;
Oct  3 10:46:00 mail postfix/smtpd[3047374]: &gt; unknown[172.30.0.122]: 554 5.7.1 &lt;do-not-reply@burgess.tech&gt;: Sender address rejected: Access denied</code></pre></div><p>I&#039;ve searched this error and found a few forum threads, but none that appear to match my situation. Where to look next?</p>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Mon, 03 Oct 2022 16:53:25 +0000</pubDate>
			<guid>https://forum.iredmail.org/post84461.html#p84461</guid>
		</item>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post83629.html#p83629</link>
			<description><![CDATA[<p>FYI<br /><a href="https://docs.iredmail.org/allow.send.without.smtp.auth.html">https://docs.iredmail.org/allow.send.wi … .auth.html</a><br /><a href="https://docs.iredmail.org/additional.smtp.port.html">https://docs.iredmail.org/additional.smtp.port.html</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 05 Jul 2022 06:34:35 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83629.html#p83629</guid>
		</item>
		<item>
			<title><![CDATA[Re: no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post83482.html#p83482</link>
			<description><![CDATA[<p>I changed the SMTP server on the scanner from the mail server&#039;s FQDN (which resolves to a public address), to the server&#039;s private IP, which is accessible to the scanner over a VPN. This time when attempting to scan to email, the scanner immediately displays the message &quot;An error occurred while sending the email. Try sending again&quot;.</p><p>/var/log/mail.log looks like this:</p><div class="codebox"><pre><code>Jun 18 17:49:22 mail postfix/postscreen[1866256]: CONNECT from [172.30.0.122]:58645 to [172.31.0.25]:25
Jun 18 17:49:22 mail postfix/postscreen[1866256]: PREGREET 5 after 0 from [172.30.0.122]:58645: EHLO 
Jun 18 17:49:22 mail postfix/postscreen[1866256]: DISCONNECT [172.30.0.122]:58645</code></pre></div><p>So it looks the same on the server side (other than source IP address, as expected), even if different error on the client side.</p>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Sat, 18 Jun 2022 23:50:20 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83482.html#p83482</guid>
		</item>
		<item>
			<title><![CDATA[no longer able to relay from scanner]]></title>
			<link>https://forum.iredmail.org/post83481.html#p83481</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): <strong>1.5.2 MARIADB edition</strong><br />- Deployed with iRedMail Easy or the downloadable installer?: <strong>downloadable</strong><br />- Linux/BSD distribution name and version: <strong>Debian GNU/Linux 11 (bullseye)</strong><br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): <strong>MARIADB</strong><br />- Web server (Apache or Nginx): <strong>Nginx</strong><br />- Manage mail accounts with iRedAdmin-Pro? <strong>No</strong><br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>My HP CM2320nf scanner cannot be configured to authorise to an SMTP server. The only email variables it accepts are Server, Port, From Address and Subject. At one point I was able to point it to my iredmail server on port 25 and send emails from it successfully. Then I lost my config and restarted from scratch. Now I get a generic error from the scanner (&quot;cannot connect to the SMTP server&quot;) immediately when trying to scan to email. On the mail server I see this in the log during the failed send event:</p><div class="codebox"><pre><code>Jun 18 17:24:05 mail postfix/postscreen[1865184]: CONNECT from [104.37.148.71]:27928 to [172.31.0.25]:25
Jun 18 17:24:05 mail postfix/postscreen[1865184]: PREGREET 5 after 0 from [104.37.148.71]:27928: EHLO 
Jun 18 17:24:05 mail postfix/postscreen[1865184]: DISCONNECT [104.37.148.71]:27928</code></pre></div><p>No new lines appear in /var/log/iredapd/iredapd.log during the send attempt.</p><p>I have this is /opt/iredapd/settings.py:</p><div class="codebox"><pre><code>MYNETWORKS = [&#039;172.30.0.0/22&#039;, &#039;172.31.0.0/24&#039;, &#039;104.37.148.71&#039;]</code></pre></div><p>While searching the log messages I read a lot of pages that don&#039;t seem applicable to my situation. I know this isn&#039;t really much to go on, but can somebody point me in the right direction for troubleshooting this?</p>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Sat, 18 Jun 2022 23:40:20 +0000</pubDate>
			<guid>https://forum.iredmail.org/post83481.html#p83481</guid>
		</item>
	</channel>
</rss>
