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 17th February 2011, 23:27
hli hli is offline
Junior Member
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Amavis SQL-Problem / ISPConfig writes empty fields instead of NULL

Hi everyone

i've a problem with the configuration of amavis:

i would like to use a special quarantine configuration for amavis. So i made an additional config-file /etc/amavis/conf.d/60-myconf, there i defined the different *_quarantine_method's and *_quarantine_to-variables, but it was never observed by amavis...

With $log_level = 4 (amavis) i saw in the logfile (mail.log) that he always takes the *_quarantine_to field from the db, but it was always empty --> No quarantine.
There is the Problem: Amavis takes an empty string as an value too, the field should be NULL, then amavis takes the value from the config file and it works. When i set the value to NULL manually, it works fine... but when i edit the policy in ISPConfig-Panel, it always set value to an empty string "".

some more infos about quarantine-config:
http://www.ijs.si/software/amavisd/a...tml#quarantine

How could i solve this problem? Is it a bug?

Thanks

Matthew
Reply With Quote
Sponsored Links
  #2  
Old 18th February 2011, 00:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,717
Thanks: 840
Thanked 5,593 Times in 4,404 Posts
Default

Please set the variables in ispconfig and not the config file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th February 2011, 00:29
hli hli is offline
Junior Member
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for your fast answer...

Is this really possible? Where can i set the *_quarantine_method-Vars in the Panel? and sql-storage / logging (i.e. the var @storage_sql_dsn)?

thanks
Reply With Quote
  #4  
Old 18th February 2011, 00:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,717
Thanks: 840
Thanked 5,593 Times in 4,404 Posts
Default

You posted above that the variables are in the db and that the are set to an empty string. Every field that is in the db can also be set in the ispconfig interface.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 18th February 2011, 01:00
hli hli is offline
Junior Member
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes thats true, but there are also vars which are not in the db.

As example: the field virus_quarantine_to in the db only allows local mail-aliases or a normal email-address for forwarding the mails. i would like to use local quarantine-dirs with different folders and sql-logging. So... when the field virus_quarantine_to in the db is set (empty string = set), amavis doesn't read the virus_quarantine_method-AND virus_quarantine_to-var out of the config-file, which would let me realize my config desired.

The vars *_quarantine_method couldn't set in the db.

i hope you understand, what i mean...

thanks & good night
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
Problem: DNS Server + ISPConfig Server javierg Installation/Configuration 1 5th July 2010 17:59
ISPconfig 3: can't send or receive messages zogthegreat Installation/Configuration 6 22nd May 2010 15:45
ISPConfig 2 open_basedir problem, PHP 5.2.10/ISPConfig 2.2.35 zetnsh Installation/Configuration 13 1st April 2010 19:00
Hosting multiple websites and webmail dmwcool Installation/Configuration 8 30th March 2010 04:15
Admin Program for Virtual Users and Domains Postfix courier etc...(Ubuntu 8.04)? the1rob HOWTO-Related Questions 11 4th August 2009 05:54


All times are GMT +2. The time now is 04:37.


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