SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Sat Apr 05, 2025 01:08
SMSTools3 Community » Search Bottom

Page:  1

Keywords:
Mode: All keywords (AND)
Fraeco: Hi edo. Thanks for getting back to me. I tried running the script as the Debian-exim user and then it runs. Only when the script is executed via mail the error occurs.
Fraeco: Just another update (I can't edit messages after a certain period of time). I ditched postfix. It's an anoying little **** :-) Using exim now with a config i copied from somewhere on the web. when I run: "email2sms-ucs -n 324xxxxxxxx2 < /usr/local/bin/testmail" from the console I get the sms. I tried running this as the exim user and it works. However, when I email. I can see that exim is pushing the mail towards the script. But it dies with some obscure error. 2013-03-12 18:00:01 1UFSYT-0006UD-7u ** 324xxxxxxxx2@sms.local R=receive_router T=sms_pipe: Child process of sms_pipe transport returned 255 (could mean shell command ended by signal 127 (Unknown signal 127)) from command: /usr/local/bin/email2sms-ucs What am I doing wrong here? exim config: primary_hostname = sms.local domainlist local_domains = localhost:sms.local domainlist relay_to_domains = hostlist relay_from_hosts = 127.0.0.1 received_header_text = Received: by $primary_hostname id $message_exim_id acl_smtp_rcpt = acl_check_rcpt never_users = root host_lookup = * begin acl acl_check_rcpt: accept domains = sms.local accept authenticated = * begin routers receive_router: debug_print = "R: receive_router for $local_part@$domain" driver = accept domains = sms.local transport = sms_pipe no_more begin transports sms_pipe: driver = pipe command = "/usr/local/bin/email2sms-ucs -n $local_part
Fraeco: First I installed MIME::Parser via CPAN, after your post I tried to use the ubuntu/debian package but the issue remains thesame :-/ Running libmime-tools-perl 5.502-1 I found something else. The user HAS to exist in the /etc/aliases of postfix, otherwile postfix will fail with a "Recipient address rejected: User unknown in local recipient table" error. /etc/aliases 324xxxxxxx2: 324xxxxxxx2 Mar 12 09:51:51 smsbak postfix/pipe[16673]: 9CF566034F: to=<324xxxxxxx2@smsbak>, orig_to=<324xxxxxxx2@sms.local>, relay=smstools, delay=0.17, delays=0.01/0.01/0/0.15, dsn=5.3.0, status=bounced (Command died with status 255: "/usr/local/bin/email2sms-ucs.pl". Command output: Can't call method "as_string" on an undefined value at /usr/local/bin/email2sms-ucs.pl line 103, <STDIN> line 64. ) /etc/aliases 324xxxxxxx2: user Mar 12 09:50:41 smsbak postfix/pipe[16673]: AE64660033: to=<user@smsbak>, orig_to=<324xxxxxxx2@sms.local>, relay=smstools, delay=0.15, delays=0.02/0.01/0/0.13, dsn=5.3.0, status=bounced (Command died with status 25: "/usr/local/bin/email2sms-ucs.pl". Command output: Bad number 'user'? ) Again, I would be perfectly happy if you can tell me how to setup exim4. I really don't care all that much about the mailserver :) It just has to accept mail for EVERY address (phonenumber) and push it out to smstools.
Fraeco: Ok, I made some progress. I added "sms.local" to the mydestination line in the main.cf but now I'm getting Mar 11 15:27:44 smsbak postfix/pipe[13902]: D966C6256E: to=<324xxxxxxxx2@smsbak>, orig_to=<324xxxxxxxx2@sms.local>, relay=smstools, delay=0.14, delays=0.01/0.01/0/0.12, dsn=5.3.0, status=bounced (Command died with status 255: "/usr/local/bin/email2sms-ucs.pl". Command output: Can't call method "as_string" on an undefined value at /usr/local/bin/email2sms-ucs.pl line 103, <STDIN> line 100. ) What's the last piece I'm missing? :-)
Fraeco: I'm having some issues getting email2sms to work on an Ubuntu 12.04 with Postfix. This system will have to do one thing. Accept mails in the format <number>@some.domain and push them out as SMS-messages. I looked at exim as the threadstarted stated, but I can only find exim4 as package and I have no clue where to put the config directive. As for postfix, from what I figure it's not pushing the emails in the pl script. When I manually run the script there are no errors. Mails are fed into the system via Exchange2010 with a transport rule that's relaying all mail send to "sms.local" to the IP of the SMS gateway. Any help would be greatly appriciated. Mar 11 14:32:15 smsbak postfix/smtpd[12048]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Mar 11 14:32:16 smsbak postfix/smtpd[12048]: connect from 2012-mail.domain.tld[10.5.1.55] Mar 11 14:32:16 smsbak postfix/smtpd[12048]: 082806256E: client=2012-mail.domain.tld[10.5.1.55] Mar 11 14:32:16 smsbak postfix/cleanup[12052]: 082806256E: message-id=<C1577ABCDD5A5B4AA1DF8D1013893F7101A77CA0@2008-MAIL.ad.purna.be> Mar 11 14:32:16 smsbak postfix/qmgr[12046]: 082806256E: from=<me@domain.tld>, size=3296, nrcpt=1 (queue active) Mar 11 14:32:16 smsbak postfix/smtpd[12048]: disconnect from 2012-mail.domain.tld[10.5.1.55] Mar 11 14:32:16 smsbak postfix/smtp[12053]: 082806256E: to=<324xxxxxxxx2@sms.local>, relay=none, delay=0.02, delays=0.01/0.01/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=sms.local type=AAAA: Host not found) Mar 11 14:32:16 smsbak postfix/cleanup[12052]: 0DE7262570: message-id=<20130311133216.0DE7262570@smsbak> Mar 11 14:32:16 smsbak postfix/qmgr[12046]: 0DE7262570: from=<>, size=5107, nrcpt=1 (queue active) Mar 11 14:32:16 smsbak postfix/bounce[12054]: 082806256E: sender non-delivery notification: 0DE7262570 Mar 11 14:32:16 smsbak postfix/qmgr[12046]: 082806256E: removed Mar 11 14:32:16 smsbak postfix/smtp[12053]: 0DE7262570: to=<me@domain.tld>, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=domain.tld type=AAAA: Host found but no data record of requested type) Mar 11 14:32:16 smsbak postfix/qmgr[12046]: 0DE7262570: removed main.cf smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = smsbak #alias_maps = hash:/etc/aliases #alias_database = hash:/etc/aliases mydestination = smsbak, localhost.localdomain, , localhost relayhost = mynetworks = 127.0.0.0/8 10.5.1.0/24 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all smstools_destination_recipient_limit = 1 mailbox_transport = smstools master.cf # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} smstools unix - n n - - pipe flags=DORhu user=smstools argv=/usr/local/bin/email2sms-ucs.pl -n ${user}

Page:  1

SMSTools3 Community » Search Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.