|
Demo
Discussion
|
Forum
Config Examples
Contributions
Vulnerabilities
|
Discussion forum about ELOG |
Not logged in |
 |
|
Conditional Email Notification by a text file, posted by An Thai on Thu Nov 2 14:34:36 2006
|
Re: Conditional Email Notification by a text file, posted by Steve Jones on Thu Nov 2 23:16:11 2006
|
Re: Conditional Email Notification by a text file, posted by An Thai on Fri Nov 3 01:03:33 2006
|
Re: Conditional Email Notification by a text file, posted by Steve Jones on Fri Nov 3 03:42:18 2006
|
Re: Conditional Email Notification by a text file, posted by Stefan Ritt on Thu Nov 9 20:45:32 2006
|
Re: Conditional Email Notification by a text file, posted by An Thai on Thu Nov 9 23:25:15 2006
|
Re: Conditional Email Notification by a text file, posted by Stefan Ritt on Fri Nov 10 07:51:59 2006
|
Re: Conditional Email Notification by a text file, posted by Grant Jeffcote on Sat Nov 11 06:56:16 2006
|
Re: Conditional Email Notification by a text file, posted by Stefan Ritt on Sat Nov 11 18:36:44 2006
|
Re: Conditional Email Notification by a text file, posted by Grant Jeffcote on Sat Nov 11 18:48:48 2006
|
Re: Conditional Email Notification by a text file, posted by Stefan Ritt on Sat Nov 11 18:54:59 2006
|
Re: Conditional Email Notification by a text file, posted by Grant Jeffcote on Sat Nov 11 21:31:33 2006
|
Re: Conditional Email Notification by a text file, posted by Stefan Ritt on Wed Nov 15 20:22:29 2006
|
Re: Conditional Email Notification by a text file, posted by An Thai on Thu Nov 16 14:07:32 2006
|
Re: Conditional Email Notification by a text file, posted by An Thai on Thu Mar 1 15:27:31 2007
|
Re: Conditional Email Notification by a text file, posted by Stefan Ritt on Thu Mar 1 22:10:11 2007
|
Re: Conditional Email Notification by a text file, posted by An Thai on Tue Mar 6 13:49:17 2007
|
Re: Conditional Email Notification by a text file, posted by Stefan Ritt on Tue Mar 6 13:55:15 2007
|
|
Message ID: 2065
Entry time: Thu Nov 9 23:25:15 2006
In reply to: 2055
Reply to this: 2069
|
|
Category: |
Question |
OS: |
Windows |
ELOG Version: |
2.6.2.1723 |
|
Subject: |
Re: Conditional Email Notification by a text file |
|
|
Stefan Ritt wrote: |
Steve Jones wrote: |
An Thai wrote: |
Steve Jones wrote: |
An Thai wrote: | Hello,
I try to email by using a email text file to reduce the admin work.
- MOptions Team = EUROPE, ASIA, AFRICA, AMERICA
- Email Team EUROPE = $shell(type C:\EuropeEmailList.txt)
but i get always Email sent to Shell execution not enabled via -x flag
Is this feature not supported by ELOG or did i use the wrong syntax?
Thank you in advance. |
Quote: | You need to start elogd with the "-x" flag |
|
Yes, i did it. But the problem is still there.
I exactly tried 50 times by submit a new entry and got only 3 times passed. 47 another cases i got:
"Error sending Email via "192.168.2.20": 5.5.2 Need Rcpt command".
I run elogd -v and see:
"Email Team EUROPE to Shell execution not enable via -x flag" |
Steve Jones wrote: |
Well, it looks like you are getting the text "Shell execution not enable via -x flag" put into the EUROPE attribute then the email server is attempting to send email to the email address "Shell execution not enable via -x flag", which is clearly not a valid address thus the "Error sending Email via "192.168.2.20": 5.5.2 Need Rcpt command".
You need to run run "elogd -v -x" then look for the errors. You also might try a more simpler test like "Preset Team EUROPE = = $shell(type C:\EuropeEmailList.txt)" and then see what is returned. It makes it simpler and removes the email error from the equation.
|
|
That's a very interesting idea of setting up mailing lists I never thought about. I tried myself and it works fine. Just as Steve says run "elogd -v -x" to see what happens. Also make sure that EuropeEmailList.txt contains only a single line with comma-separated email addresses, just as you would enter them in the config file. |
I tested many times and find out the problem.
The first opening CMD and running "elogd -v -x". It works perfektly.
Close the CMD: It stops to work.
From this time point it never works again even I try to re-open CMD and run "elogd -v -x"
The computer must be rebooted to get it works. (The CMD for running elogd -x must be always opened !!!) |