Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th March 2010, 11:52
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default how to read the mail.log file via web interface

Good morning all,
I'm using ISPConfig 3.0.1.6 and it's working perfectly.
In the monitor section there is a possibility to read the mail.log file, but just few lines.
I know that I can read it via command line... anyway there is a way to read it with a web interface? Maybe searching for keywords...

Any suggestions?
Thanks
Michele
Reply With Quote
Sponsored Links
  #2  
Old 28th March 2010, 23:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,484
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
Default

Quote:
anyway there is a way to read it with a web interface?
No, as the ispconfig interface can not read the whole log directly. And reading in the whole log file into the ispconfig database continiously uses too much space in the database.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 29th March 2010, 11:12
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Hi till,
I understand the problem...
Anyway do you have an external product that I can install in the system, so that I'll be able to read the log file with a web interface?

Thanks
Michele
Reply With Quote
  #4  
Old 30th March 2010, 15:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Maybe with Webmin, but please note that you should use Webmin only for reading the logs because otherwise it might interfere with ISPConfig.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th March 2010, 15:59
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Hi falko,
that's why I'm scarie to install webmin just to read the log.

I was thinking there was other programs that with a web interface was giving me the opportunity to read the log...
Reply With Quote
  #6  
Old 30th March 2010, 20:49
yoplait yoplait is offline
Senior Member
 
Join Date: Dec 2009
Posts: 144
Thanks: 50
Thanked 14 Times in 11 Posts
Default

Can't you try to do a little script to make an html file with a cron job ?
Reply With Quote
  #7  
Old 12th April 2010, 21:51
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Hi yoplait,
unfortunately I don't think I'll be able to do it...
I'll think about it anyway... but I was thinking that there was already a solution at this problem...
Reply With Quote
  #8  
Old 12th April 2010, 22:02
yoplait yoplait is offline
Senior Member
 
Join Date: Dec 2009
Posts: 144
Thanks: 50
Thanked 14 Times in 11 Posts
Default

I'm really not a good "scripter", but, I think about a thing like :
Code:
#!/bin/bash

INDEX_FILE="/var/www/mydomain.tld/web/securefolder/index.html"
echo "<html> <head><title> My mail logs </title></head>" > $INDEX_FILE
tail -n 1000 /var/log/mail.log >> $INDEX_FILE
echo "</html>" >> $INDEX_FILE
chown userweb:groupweb $INDEX_FILE
...Maybe...
But it could be really better !!

edit :
after that, you have to put a cronjob as you want to launch it.
Reply With Quote
  #9  
Old 19th May 2010, 16:33
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Hi to everybody.
I'm still looking to find a solution to this issue... Anybody can give me an hand?


The webmin installation could be a solution, but sounds like a bit dangerous to try on a live server...

Thanks a lot
Michele
Reply With Quote
  #10  
Old 19th May 2010, 16:52
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,484
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
 
Default

I check my logs always on the shell. have you considered to do it on the shell as well, its quite easy.

1) Connect to your server with a terminal client like putty.

2) To view the logs, use the command tail:

example:

show the last 100 lines:

tail -n 100 /var/log/mail.log

Show all new lines continiously:

tail -f /var/log/mail.log

(to quit this, press [ctrl] + c)

If you like to find lines for a specific recipient, use e.g.:

grep tom@domain.com /var/log/mail.log
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sarg issue while generating reports for squid mail4vij Server Operation 3 31st December 2009 14:12
Samba File server Mac OSX sees files as alias almeister9 Server Operation 12 29th March 2009 04:40
Still errors with Openssl on Etch jake Installation/Configuration 19 8th June 2007 15:14
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
BIND broke adamluz Installation/Configuration 4 2nd June 2006 22:31


All times are GMT +2. The time now is 18:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.