Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st March 2006, 13:14
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default loggin data use to several set IP's?

Is there anyway of logging data use to several set IP's?

I'm coding a small mail forward script, that also needs to keep track of the ammount of data send to the owners IP's

I guess it needs to do the logging through the firewall.

Can it be done?

The OS here is Fedora RC4 with (at the moment) the firewall from ISPconfig.
Reply With Quote
Sponsored Links
  #2  
Old 31st March 2006, 18:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you explain in more details what you want to do with this script?
__________________
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
  #3  
Old 31st March 2006, 20:14
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default

Quote:
Originally Posted by falko
Can you explain in more details what you want to do with this script?
Basicly it's like this:

Owner of mailserver with domain A (with a static IP, that I know) can see howmuch data (bandwith) of mail has been forwarded to his server within one month.

Owner of mailserver with domain B (with a static IP, that I know) can see howmuch data (bandwith) of mail has been forwarded to his server within one month.

Owner of mailserver with domain C (with a static IP, that I know) can see howmuch data (bandwith) of mail has been forwarded to his server within one month.

ect ect ect.

The mail forward script will make use of the 'postfix' transport table, so the user / owner of (domain a, domain b, domain c) do not really exist on the server. They are 'hard coded' in the transport file

Last edited by edge; 31st March 2006 at 20:45.
Reply With Quote
  #4  
Old 1st April 2006, 12:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

So you have 4 servers: one that does the forwarding, and three servers for three customers?

The easiest might be to parse the mail log on the forwarding server. Maybe it's also possible to implement a filter in /etc/postfix/master.cf that does the accounting...
__________________
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 2nd April 2006, 13:34
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
 
Default

Quote:
Originally Posted by falko
So you have 4 servers: one that does the forwarding, and three servers for three customers?

The easiest might be to parse the mail log on the forwarding server. Maybe it's also possible to implement a filter in /etc/postfix/master.cf that does the accounting...
I found this nice little script (pflogsumm.pl) doing exactly what I need :-)
http://jimsun.linxnet.com/postfix_contrib.html
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
Data upload from CSV file Accura Programming/Scripts 14 11th June 2006 12:52
Data base size limitation through ISP config gimhan90 Installation/Configuration 3 31st March 2006 11:47
ISP Client Page Data nok Installation/Configuration 0 27th February 2006 22:41
Determining server bandwidth required in data center Gary Server Operation 2 28th January 2006 12:39
Replicate Data jernis Installation/Configuration 5 14th December 2005 20:41


All times are GMT +2. The time now is 09:35.


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