|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Sat Aug 23, 2025 05:59 |
Page: 1
Keywords: Mode: All keywords (AND) |
Sun Aug 25, 2013 13:47
|
Jufo: Problem solved, only need disable selinux (I forgot) then smsd.log is without errors.
Thx for help ;)
|
Sat Aug 24, 2013 10:27
|
Jufo: Operating system name and version: CentOS 6.4
Version of smsd: 3.1.15
Smsd installed from: repository
Name and model of a modem / phone: Huawei E122
Interface: USB
I Have some problem with smsd.log, smsmtools works fine but i can see errors in log when smstools sending sms or for example restart service:
2013-08-24 11:56:15,5, smsd: Moved file /var/spool/sms/outgoing/send_tgCHjS to /var/spool/sms/checked
2013-08-24 11:56:15,3, Huawei: Unexpected input: ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0 ^STIN: 0, 0, 0
2013-08-24 11:56:17,3, Huawei: Unexpected input: ^STIN: 0, 0, 0
2013-08-24 11:56:22,5, Huawei: SMS sent, Message_id: 4, To: 48XXXXXXXXX, sending time 7 sec.
Almost this same configuration works fine in another server (difference only hardware in server, except modem), operating and version system is the same.
|
Mon Jul 02, 2012 19:26
|
Jufo:
How can i debug?
Ok, check configuration main.cf, my configuration:
myhostname = "yourservername.domain"
mydomain = "domain"
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, monitoring.local
local_recipient_maps =
mynetworks = "192.168.1.0/24", 127.0.0.0/8
mailbox_transport = smstools
transport_maps = hash:/etc/postfix/transport (transportmaps for other domain for smtp)
transport_destination_recipient_limit = 1
Robert
|
Tue Apr 24, 2012 20:14
|
Jufo: 1. Configuration in postfix:
- In main.cf add line:
mailbox_transport = smstools
transport_destination_recipient_limit = 1
-In master.cf add line:
smstools unix - n n - - pipe
flags= user=smstools argv=/usr/local/bin/email2sms-ucs.pl -n ${user}
2. smstools is default user for smstools, please change permmision for script (to chmod +x /usr/local/bin/email2sms-ucs.pl)
3. Restart postfix service and enjoy ;)
3. To edo, I'll wait for you, in this second rule just changed from To (recipient) on the Subject (only telephone numer). It remains to choose the rules by the sender.
Thx
Robert
|
Tue Apr 24, 2012 07:20
|
Jufo: I's works!
In the evening I'll try to share configuration in this Topic ;)
How do I modify the script to create two rules, the selection by the sender (DeliveredTo) ?:
1. The rule in your script
2. Number phone is the subject, the message content is the content of email sms
Thx
Robert
|
Mon Apr 23, 2012 22:18
|
Jufo: I ran everything on another virtual machine, tomorrow I'll analyze what I broken, I suspect Perl liblary and dns server.
Thank you very much
Robert
|
Mon Apr 23, 2012 21:29
|
Jufo: When you start:
sudo -u smstools /usr/local/bin/email2sms-ucs.pl -n 48XXXXXXXXX < /tmp/SMS-12.04.23-23\:25\:54-tD6g
Log /var/log/smsd/smsd.log is clean (only standard massages - Waiting for messages to send...etc), nothing happens :/
Selftest "sms to gsm" is working (su smstools -c "smssend 48XXXXXXXXX 'The Test GSM module.'") - Then, of course, logs are generated.
|
Mon Apr 23, 2012 19:08
|
Jufo: It is better but no logs in smsd.log and do not get sms :/
Apr 23 21:01:22 swa125 postfix/smtpd[3111]: connect from unknown[172.16.0.123]
Apr 23 21:01:22 swa125 postfix/smtpd[3111]: 17B8FC0811: client=unknown[172.16.0.123]
Apr 23 21:01:22 swa125 postfix/cleanup[3113]: 17B8FC0811: message-id=<C276293C3C994A46B3DCB59E9362F56C@VirtualXP19744>
Apr 23 21:01:22 swa125 postfix/qmgr[2928]: 17B8FC0811: from=<sms@sms.local>, size=663, nrcpt=1 (queue active)
Apr 23 21:01:22 swa125 postfix/smtpd[3111]: disconnect from unknown[172.16.0.123]
Apr 23 21:01:22 swa125 postfix/pipe[3115]: 17B8FC0811: to=<48XXXXXXXXX@sms.local>, relay=smstools, delay=0.37, delays=0.13/0.04/0/0.2, dsn=2.0.0, status=sent (delivered via smstools service)
Apr 23 21:01:22 swa125 postfix/qmgr[2928]: 17B8FC0811: removed
Thx
Robert
|
Mon Apr 23, 2012 17:48
|
Jufo: I added the line in main.cf:
mailbox_transport = smstools
transport_destination_recipient_limit = 1
I set the master cf:
smstools unix - n n - - pipe
flags=DORhu user=smstools argv=/usr/local/bin/email2sms-ucs.pl
Unfortunately it does not work :(, what is the simplest configuration to make it work for postfix?, I'm a novice to set up, please do not send me back to manuals, I'm losing hope it will work ...
Best regards
Robert
|
Mon Apr 23, 2012 15:23
|
Jufo: I did not use the first line in script #!/usr/bin/perl -w, and I have another problem:
Apr 23 17:16:52 swa125 postfix/local[2156]: 7C4B9C0760: to=<sms@sms.local>, relay=local, delay=0.21, delays=0.02/0/0/0.19, dsn=5.3.0, status=bounced (Command died with status 255: "/usr/local/bin/email2sms-ucs.pl". Command output: E-mail to SMS converter with non-latin charsets suppport Usage: /usr/local/bin/email2sms-ucs.pl -n number [-s spool_dir] [-t tmp_dir] [-d] < email-file -n number phone number in international format -s spool_dir outgoing spool directory default: /var/spool/sms/outgoing/ -t tmp_dir temporary directory default: /tmp/ -d dry-run (do not spool message) Designed to be used with smstools (http://smstools3.kekekasvi.com) WARNING! Large e-mail messages can cause DoS. Limit the size of messages on the mail server. )
Apr 23 17:16:52 swa125 postfix/qmgr[1711]: 7C4B9C0760: removed
Thx
Robert
|
Sun Apr 22, 2012 21:13
|
Jufo: Starting with aliases (sms: "| / usr/local/bin/email2sms-ucs.pl") causes errors:
Apr 22 23:04:17 swa125 postfix/local[3403]: 927A9C0811: to=<sms@sms.local>, relay=local, delay=0.05, delays=0/0/0/0.05, dsn=5.3.0, status=bounced (Command died with status 2: "/usr/local/bin/email2sms-ucs.pl". Command output: /usr/local/bin/email2sms-ucs.pl: line 6: my: command not found /usr/local/bin/email2sms-ucs.pl: line 9: our: command not found /usr/local/bin/email2sms-ucs.pl: line 10: our: command not found /usr/local/bin/email2sms-ucs.pl: line 12: sub: command not found /usr/local/bin/email2sms-ucs.pl: line 13: die: command not found /usr/local/bin/email2sms-ucs.pl: line 31: syntax error near unexpected token `}' /usr/local/bin/email2sms-ucs.pl: line 31: `}' )
Apr 22 23:04:17 swa125 postfix/qmgr[3283]: 927A9C0811: removed
What's the problem?
Thx
Robert
|
Sun Apr 22, 2012 15:13
|
Jufo: sms_pipe:
driver = pipe
command = "/usr/local/bin/email2sms-ucs -n $local_part"
How to configure pipe in postfix - master.cf
smstools unix - n n - - pipe ?
flags=DORhu user=smstools argv=/usr/local/bin/email2sms-ucs ?
Thanks
Robert
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|