Hello everyone,
Can you help me on below two questions?

1. I did email notification settings for sending emails after job complete or incomplete.
    How can I get whole logs (where are logs?) about email sending process?  I need to debug email sending.

2. I want to use script to control device state periodically. 
   How can I set device to maintenance state using command, like lava-tool command?
   

Thanks in advance.