Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th January 2007, 08:55
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 179
Thanks: 8
Thanked 15 Times in 7 Posts
Question Tracking mail proccess in logfiles

I need to sometime check the progress of messages through the system using the logfiles but the moment it enters procmail - all logging seem to stop! Can this part be enabled? is it perhaps logged elseware, if so how do I change the logging nt the same logfile.
Extraction of sample out of /var/log/mail/info
Code:
Jan 25 09:15:23 hera postfix/smtpd[28672]: 7D844334C01: client=unknown[sanitized-IP]
Jan 25 09:15:23 hera postfix/cleanup[28674]: 7D844334C01: message-id=<004201c74050$858c1520$930aa8c0@uranus>
Jan 25 09:15:25 hera postfix/qmgr[27827]: 7D844334C01: from=<from@domain.tld>, size=39247, nrcpt=1 (queue active)
Jan 25 09:15:25 hera postfix/smtpd[28672]: disconnect from unknown[sanitized-IP]
Jan 25 09:15:25 hera postfix/local[28677]: 7D844334C01: to=<web33_tegnies@domain.tld>, orig_to=<tegnies@domain.tld>, relay=local, delay=1.8, delays=1.8/0/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Jan 25 09:15:25 hera postfix/qmgr[27827]: 7D844334C01: removed
I can therefore NOT see the spamassasin and results of the clamav!
Reply With Quote
Sponsored Links
  #2  
Old 25th January 2007, 18:05
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 16 Times in 15 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Yes you can. In your mail client, you can view the headers of received emails. You will thus see all the rule hits of spamassasin/clam.

Don't know if you can tweak your procmail settings to make it more verbose
Reply With Quote
  #3  
Old 27th January 2007, 09:22
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 179
Thanks: 8
Thanked 15 Times in 7 Posts
Default

hmmmm, I thought its obvious that Im running the server and not the client! My question is about the total process on the server that needs to be logged and not stop were it passes to procmail!
Reply With Quote
  #4  
Old 27th January 2007, 11:58
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 16 Times in 15 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

It appears procmail has the option to do logging, but the default in ISPConfig is to not log. I'm not procmail expert at all (I'm right now in the proces of starting to use it as a result of my ISPConfig usage).

I did a quick google for 'procmail logging' and got a lot of hits. It requires to modify the .procmailrc file, and thus it will deviate you from the ISPC standards. But it looks doable to customize.

If you want that for all customers by default, you have to edit the file
Code:
/root/ispconfig/isp/conf/procmailrc.master
Sorry, I'm not able to give you more advise/examples here. Anyway, this route may get you into trouble with the next release of ISPConfig. Coming to think of it, I would like to suggest an enhancement to ISPC: create a custom directory, where you can have your own modified templates/masters, which will not be overwritten with an upgrade. So in the /root/ispconfig/isp/conf/ there should be a 'custom' directory. If in this sub-directory a customized file exists, ISPC should use the custom file and not the orginal. Upgrades of ISPC should not touch the 'custom' directory.
Reply With Quote
  #5  
Old 27th January 2007, 12:12
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 179
Thanks: 8
Thanked 15 Times in 7 Posts
Default

I agree on the Customization-ability is not catered for but I'd like my customers to see my logos marketing etc, and each time I have to re-do the logos etc when I upgradce! If we consider this we do need the DB then to have Custom table that keep the links of were to find the custom files etc.

On the Logging - It is extreemly nessesary to log the whole process to faultfind stuff!
Reply With Quote
  #6  
Old 27th January 2007, 15:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,894
Thanks: 693
Thanked 4,189 Times in 3,206 Posts
Default

Quote:
I agree on the Customization-ability is not catered for but I'd like my customers to see my logos marketing etc, and each time I have to re-do the logos etc when I upgradce! If we consider this we do need the DB then to have Custom table that keep the links of were to find the custom files etc.
The problem is as follows. If the installer can not overwrite files, we can not add any new functionality in future releases that change any of the templates and we can not make sure that an update works.

If you modify a template you will yust have to campare your template with the newly installed version.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 27th January 2007, 16:27
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 16 Times in 15 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Quote:
The problem is as follows. If the installer can not overwrite files, we can not add any new functionality in future releases that change any of the templates and we can not make sure that an update works.

If you modify a template you will yust have to campare your template with the newly installed version.
Couldn't we leave that to the user? As soon as the installer finds a updated template in the 'custom' subdirectory, just give a warning to check the difference between the new version and the custom one. Perhaps even showing a diff? That's how the debian and rpm based installers work also.

I agree ISPConfig shouldn't be bothered to be responsible for customizations, but as it is now, people like me will do the customizations anyway, and whenever an update comes along, we have to remember we did a change to a standard template. With a custom directory at least we have a verification. By the way, DirectAdmin uses the 'custom' subdir trick. I'd be very tempted to implement this, but of course you are the lead developer so you decide. I'm just a humble, but happy user for now.
Reply With Quote
  #8  
Old 28th January 2007, 19:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
Default

Quote:
Originally Posted by martinfst
uses the 'custom' subdir trick.
We can keep this solution in mind.
__________________
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
  #9  
Old 2nd February 2007, 09:27
Morons Morons is offline
Senior Member
 
Join Date: Aug 2006
Posts: 179
Thanks: 8
Thanked 15 Times in 7 Posts
 
Default

In the gaming world of World of warcraft they allow "addons" witch is disabled but not removed and the custome can switch them on by means of an config screen and test / modify. Surely if you change any of the customizable items there will / can be an release note informing the user that those changes were made and how its changed so they can re-do or adopt another fix?
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
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 15:13
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
postfix-tls sasl2 mysql courier-authmysql gabrix Server Operation 4 12th January 2007 22:09
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 12:41.


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