News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - d4rr3ll

#1
Users / Re: How to setup Mailx? (Newbie)
June 17, 2011, 01:43:02 AM
Bump.
#2
Users / Re: How to setup Mailx? (Newbie)
June 13, 2011, 07:21:56 PM
OK, I found template 2120 (Mailx), not sure how I missed it before I'm convinced I stepped through every 'M' in the list, anyway I'm one step further but am now at my next stumbling block. 

Whenever I try to add a mailx command and use the 'Test command' button no email is sent, nothing happens in mail.log, so I had a fish around and found entries like this in /var/log/pluto/webExecLog.log.... (I've remove my email address)

13-06-2011 18:11:55     /usr/pluto/bin/MessageSend dcerouter -targetType device 0 51 1 1075 283 Kitchen camera triggered 282 **hidden**@gmail.com
13-06-2011 18:12:19     /usr/pluto/bin/MessageSend dcerouter -targetType device 0 51 1 1075 283 Kitchen camera triggered 282 **hidden**@gmail.com
13-06-2011 18:14:33     /usr/pluto/bin/MessageSend dcerouter -targetType device 0 51 1 1075 284 Test 283 Kitchen camera triggered 282 **hidden**@gmail.com

So it looks like the 'Test command' does something, but I'm still not seeing anything in the mail.log.... so I cut and paste the above command into a shell (root) and got the following...

darrell@dcerouter:~$ /usr/pluto/bin/MessageSend dcerouter -targetType device 0 51 1 1075 284 Test 283 Kitchen camera triggered 282 **hidden**@gmail.com
01      06/13/11 18:16:06.867           Message constructor malformed with wrong param id 'camera'

So I tried with quotes, i.e.

darrell@dcerouter:~$ /usr/pluto/bin/MessageSend dcerouter -targetType device 0 51 1 1075 284 Test 283 'Kitchen camera triggered' 282 **hidden**@gmail.com

no errors this time, but still nothing in mail.log

Where should I be looking next?






#3
Users / Re: How to setup Mailx? (Newbie)
June 12, 2011, 12:39:15 PM
Thanks Thom for the information but I'm stuck at step 3 - 'select the mailx device', I don't have this in the menu.  Mailx is installed on the box:

darrell@dcerouter:~$ sudo dpkg --get-selections | grep mailx
bsd-mailx               install
mailx                  install

How do I get Mailx to appear in that menu?

Thanks
Darrell
#4
Users / How to setup Mailx? (Newbie)
June 10, 2011, 11:28:50 AM
Hi,

I'm dipping my toe into the world of linuxmce and have it hanging together with a couple of devices (Foscam, and ZWave PIR).  But I'm struggling to figure out how to get Mailx up and running so I can send out alerts.  Searching the forums I can find a couple of mentions about 'adding mailx as a top level device' but how do I actually do that?  I have email configured and the test message is sent to my gmail account, but I'm missing this last piece in the puzzle.

Any help would be appreciated.

Regards
Darrell.