Keywords: Mode: All keywords (AND) |
Tue Nov 26, 2013 11:22
|
Batnun: Ok, just tried that:
root@pappsmsgw01:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 pappsmsgw01 ESMTP Postfix (Ubuntu)
helo g
250 pappsmsgw01
mail from: batnun@somewhere
250 2.1.0 Ok
rcpt to: 447512345678@pappsmsgw01
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
To: 447512345678
at least i have chicken
.
250 2.0.0 Ok: queued as 6979B260780
quit
221 2.0.0 Bye
root@pappsmsgw01:~# tail -f /var/log/mail.log
Nov 26 11:15:57 pappsmsgw01 postfix/smtpd[1511]: connect from localhost[127.0.0.1]
Nov 26 11:16:20 pappsmsgw01 postfix/smtpd[1511]: 6979B260780: client=localhost[127.0.0.1]
Nov 26 11:16:34 pappsmsgw01 postfix/cleanup[1515]: 6979B260780: message-id=<20131126111620.6979B260780@pappsmsgw01>
Nov 26 11:16:34 pappsmsgw01 postfix/qmgr[1508]: 6979B260780: from=<batnun@somewhere>, size=377, nrcpt=1 (queue active)
Nov 26 11:16:34 pappsmsgw01 postfix/local[1516]: 6979B260780: to=<smstools@pappsmsgw01>, orig_to=<447512345678@pappsmsgw01>, relay=local, delay=28, delays=28/0/0/0.03, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/email2sms)
Nov 26 11:16:34 pappsmsgw01 postfix/qmgr[1508]: 6979B260780: removed
Nov 26 11:16:37 pappsmsgw01 postfix/smtpd[1511]: disconnect from localhost[127.0.0.1]
But I can see nothing in smsd.log (the service is running) :'(
Thanks!
|
Tue Nov 26, 2013 10:21
|
Batnun: So, to run under root, do I need to change:
main.cf:
inet_interfaces = all
mailbox_transport = root
master.cf:
root unix - n n - - pipe
flags=DORhu user=root argv=/usr/local/bin/email2sms
aliases:
root: | /usr/local/bin/email2sms
447512345678: root
So, changing smstools --> root in all the configuration files?...
Thanks in advance!
|
Mon Nov 25, 2013 16:05
|
Batnun: Hi Mattias,
a. The permissions on the file are 755, and everythig is running under root (include smstools).
b. I tried this already, I have entry on /etc/aliases:
<phone number>: smstools
Seding email to <Phone number>@pappsmsgw01, I can see the following lines in /var/log/mail.log:
Nov 25 15:57:27 pappsmsgw01 postfix/smtpd[18239]: connect from localhost[127.0.0.1]
Nov 25 15:57:50 pappsmsgw01 postfix/smtpd[18239]: EFBFD26077C: client=localhost[127.0.0.1]
Nov 25 15:58:18 pappsmsgw01 postfix/cleanup[18243]: EFBFD26077C: message-id=<20131125155750.EFBFD26077C@pappsmsgw01>
Nov 25 15:58:19 pappsmsgw01 postfix/qmgr[18237]: EFBFD26077C: from=<me@nowhere>, size=376, nrcpt=1 (queue active)
Nov 25 15:58:19 pappsmsgw01 postfix/local[18244]: EFBFD26077C: to=<smstools@pappsmsgw01>, orig_to=<447512345678@pappsmsgw01>, relay=local, delay=41, delays=41/0/0/0, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/email2sms)
Nov 25 15:58:19 pappsmsgw01 postfix/qmgr[18237]: EFBFD26077C: removed
Nov 25 16:01:29 pappsmsgw01 postfix/smtpd[18239]: disconnect from localhost[127.0.0.1]
But nothing in the smstools...
|
Mon Nov 11, 2013 09:20
|
Batnun: Is no one here using smstools + postfix?!
Please help...
|
Wed Nov 06, 2013 11:34
|
Batnun: Operating system name and version: Ubuntu Server 13.10 x64
Version of smsd: 3.1.15
Smsd installed from: sources
Name and model of a modem: Huawei E173
Interface: USB
Hi,
I'm trying in the last few days to configure the smstools email2sms script to work with Postfix, but no luck...
sendsms works without any problem.
I've added these lines to main.cf:
inet_interfaces = all
mailbox_transport = smstools
And these lines to master.cf:
smstools unix - n n - - pipe
flags=DORhu user=smstools argv=/usr/local/bin/email2sms
This is /etc/aliases:
smstools: | /usr/local/bin/email2sms
When I send an email (using telnet to port 25), I can see the following line in the Postfix log file:
Nov 6 10:59:23 pappsmsgw01 postfix/local[2615]: 7C9A426077C: to=<smstools@pappsmsgw01>, orig_to=<44751xxxxxxx@pappsmsgw01>, relay=local, delay=0.09, delays=0.08/0/0/0, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/email2sms
But nothing coming through, and I can't see any activity in the smsd.log...
Please help... Thanks in advance!
|