Hello,
I am trying to configure SMS forwarding to my email on a RUTX50 router with RUTX_R_00.07.14.2 firmware.
I have correctly configured the email recipient. I get an error when I test sending messages.
After analyzing the logs, I tried to find the cause of the error and manually sent emails via the SMTP server based on the log messages.
I have discovered that the SMTP server probably rejects messages due to the lack of spaces after the “from:” and “to:” fields. After adding these spaces, the message was sent correctly.
Below I am attaching the logs from the device and the communication with the server.
Best regards
39165 Thu May 29 09:55:15 2025 daemon.err uhttpd[7948]: sendmail: send:'NOOP'
39166 Thu May 29 09:55:15 2025 daemon.err uhttpd[7948]: depth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root G2
39167 Thu May 29 09:55:15 2025 daemon.err uhttpd[7948]: verify return:1
39168 Thu May 29 09:55:15 2025 daemon.err uhttpd[7948]: depth=1 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = RapidSSL TLS RSA CA G1
39169 Thu May 29 09:55:15 2025 daemon.err uhttpd[7948]: verify return:1
39170 Thu May 29 09:55:15 2025 daemon.err uhttpd[7948]: depth=0 CN = *.xxxxx.pl
39171 Thu May 29 09:55:15 2025 daemon.err uhttpd[7948]: verify return:1
39172 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: 250 8BITMIME
39173 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250 ok'
39174 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'EHLO RUTX50'
39175 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250-smtp.xxxxx.pl'
39176 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250-PIPELINING'
39177 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250-AUTH=LOGIN PLAIN'
39178 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250-AUTH LOGIN PLAIN'
39179 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250-SIZE'
39180 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250-X-RCPTLIMIT 100'
39181 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250 8BITMIME'
39182 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'AUTH LOGIN'
39183 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'334 VXNlcm5hbWU6'
39184 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:''
39185 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'334 UGFzc3dvcmQ6'
39186 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:''
39187 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'235 go ahead'
39188 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'MAIL FROM:<aaaaa@xxxxx.pl>'
39189 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250 ok'
39190 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'RCPT TO:<aaaaa@xxxxx.pl>'
39191 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'250 ok'
39192 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'DATA'
39193 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'354 go ahead'
39194 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'Content-Type: text/plain; charset="utf-8"'
39195 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'Content-Transfer-Encoding: 8bit'
39196 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'subject:Test email'
39197 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'from:aaaaa@xxxxx.pl'
39198 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'to:aaaaa@xxxxx.pl'
39199 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:''
39200 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'Test email from: RUTX50'
39201 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: send:'.'
39202 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: recv:'554 W polu From:/Sender: uzyles adresu, ktory nie jest przypisany do Twojego konta / From:/Sender: header contents do not match any of your addresses (#5.3.0)'
39203 Thu May 29 09:55:16 2025 daemon.err uhttpd[7948]: sendmail: . failed