playSMS Forum

Error when forwarding SMS by Mail

Hello to everybody!

I installed playsms according to the excellent howto and things are working fine so far.

But there is a problem with forwarding a recieved sms by email:

I installed postfix on localhost, so I could leave the SMTP-Part of ./web/config.php untouched. Postfix ist working right. I tested writing mails via telnet on port 25. This works well for user “komodo”, who starts the playsms-server.

But forwarding sms via mail ends with an error-message in playsms.log. The following log shows what happens, when I use the menu-item “simulate incoming sms” in playsms:

192.168.10.130 192.168.10.18 2020-07-31 16:39:47 PID5f242d33d78a3 admin L3 recvsms # isrecvsmsd:1 dt:2020-07-31 16:39:21 sender:017012345678 m:This is just a test receiver:1234 smsc:dev
192.168.10.130 192.168.10.18 2020-07-31 16:39:47 PID5f242d33d78a3 admin L3 dev__incoming # Array (     [0] => Sender ID: 017012345678     [1] => Receiver number: 1234     [2] => Sent: 2020-07-31 16:39:21     [3] => Message: This is just a test ) 
- - 2020-07-31 16:39:49 PID5f242c29592fa - L3 recvsmsd # id:35 dt:2020-07-31 16:39:21 sender:017012345678 m:This is just a test receiver:1234 smsc:dev
- - 2020-07-31 16:39:49 PID5f242c29592fa - L3 recvsms_process # dt:2020-07-31 16:39:21 sender:017012345678 m:This is just a test receiver:1234 smsc:dev
- - 2020-07-31 16:39:49 PID5f242c29592fa - L3 recvsms_process # unhandled datetime:2020-07-31 16:39:21 sender:017012345678 receiver:1234 message:This is just a test
- - 2020-07-31 16:39:49 PID5f242c29592fa - L3 incoming__recvsms_intercept_after # sandbox to user start u:info dt:2020-07-31 16:39:21 s:017012345678 r:1234 m:[This is just a test]
- - 2020-07-31 16:39:49 PID5f242c29592fa - L2 recvsms_inbox_add # saving sender:017012345678 receiver:1234 target:info reference_id:
- - 2020-07-31 16:39:49 PID5f242c29592fa - L2 recvsms_inbox_add # saved id:25 sender:017012345678 receiver:1234 target:info
- - 2020-07-31 16:39:49 PID5f242c29592fa - L3 recvsms_inbox_add # send email from:info@doom.de to:info@doom.de message:[This is just a test]
- - 2020-07-31 16:39:49 PID5f242c29592fa - L2 sendmail # start from:info@doom.de to:info@doom.de subject:Message from 017012345678
- - 2020-07-31 16:39:49 PID5f242c29592fa - L2 sendmail # end with error:it was not specified a valid From header
- - 2020-07-31 16:39:49 PID5f242c29592fa - L3 recvsms_inbox_add # sent email from:info@doom.de to:info@doom.de
- - 2020-07-31 16:39:49 PID5f242c29592fa - L3 incoming__recvsms_intercept_after # sandbox to user end u:info

Does anybody have an idea why this error is generated by module smtp_message.php?

What does “sendmail # end with error:it was not specified a valid From header” mean?

Thanks for your help and ideas, community.

Cheers, Jens.

In the meantime I tested different userrights/groups.
I also tested different “From”-Adresses, but nothing changed the behaviour. The error-message still appears.

Any hints? Any ideas? Do you need futher information?

Cheers, Jens