1 (edited by clarknova 2022-06-19 07:44:14)

Topic: no longer able to relay from scanner

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.5.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer?: downloadable
- Linux/BSD distribution name and version: Debian GNU/Linux 11 (bullseye)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MARIADB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

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 ("cannot connect to the SMTP server") immediately when trying to scan to email. On the mail server I see this in the log during the failed send event:

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

No new lines appear in /var/log/iredapd/iredapd.log during the send attempt.

I have this is /opt/iredapd/settings.py:

MYNETWORKS = ['172.30.0.0/22', '172.31.0.0/24', '104.37.148.71']

While searching the log messages I read a lot of pages that don't seem applicable to my situation. I know this isn't really much to go on, but can somebody point me in the right direction for troubleshooting this?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team.

2

Re: no longer able to relay from scanner

I changed the SMTP server on the scanner from the mail server's FQDN (which resolves to a public address), to the server'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 "An error occurred while sending the email. Try sending again".

/var/log/mail.log looks like this:

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

So it looks the same on the server side (other than source IP address, as expected), even if different error on the client side.