How to see realtime logs when using start as service
SMTP email proxy and relay server
Brought to you by:
graeme_walker
We are grateful for this litlle big app and using it in our production server since ms disabled some features. Thanks again.
Now I want to see live logs when started as service. If I setup "start with login" then I can see a tray icon and if I double click I can monitor realtime logs. But if i "start as service" there are no tray icons and couldn't find a way to watch them. Is there a way to aciheve this?
Thanks in advance
I'm confused by your terminology: the user interface that is accessed from the system tray shows the current connections, but there is no log there (in the sense of a historical record).
When running as a service there is no user interface so you can only monitor things via the rather clunky system event log ("eventvwr") or an emailrelay log file. If you log to file (eg. "--log --verbose --log-file c:/temp/emailrelay-%d.log") then you can 'tail' the file in a console window. I'm not sure how you would do that with native windows tools, but I would use "tail -f" from a "git bash" window. If that's too verbose then pick out what you are interested in by running "tail -f" piped into grep.
Sorry for the confusion. I just wanted to see user interface that shows the current connections while emailrelay runs as a service. Is that possible? I don't care searching in eventlog, just want to take a glance if it is delivering the emails.
No, there's nothing 'out of the box' that can show the current status of the service, but all the information is there in the log file.
For completeness I should add that you can get asynchronous event notifications via the 'admin' interface after using the 'notify' command. These are the same events that are used internally to update the 'status' tab.