Koozali.org formerly Contribs.org

Setting Configuration Variable / Question

Setting Configuration Variable / Question
« on: August 10, 2015, 06:30:29 PM »
Hi,

I am configuring my SME9 Server regarding IMAPS Connection and  my blacklist list, here are the commands:


[root@srv~]# db configuration setprop imaps Concurrency 4500
[root@srv~]# config setprop imaps ConcurrencyLimit 4000
[root@srv~]# config setprop imaps ConcurrencyLimitPerIP 2000
[root@srv~]# config setprop qpsmtpd SBLList bogusmx.rfc-ignorant.org:multi.surbl.org:black.uribl.com:rhsbl.sorbs.net:bulk.rhs.mailpolice.com:fraud.rhs.mailpolice.com:porn.rhs.mailpolice.com:adult.rhs.mailpolice.com:ex.dnsbl.org
[root@srv~]# signal-event email-update


At the End, I run signal-event email-update

If I am installing a new "Addons" and then running the command signal-event post-upgrade; signal-event reboot all my configuration (except Concurrency) for IMAPS and QPSMTPD is disapearing:

[root@srv~]# db configuration show imaps
imaps=service
    Concurrency=4500
    TCPPort=993
    access=public
    status=enabled

[root@neomail ~]# db configuration show qpsmtpd
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=bl.spamcop.net:dnsbl-1.uceprotect.net:dnsbl-2.uceprotect.net:psbl.surriel.com:zen.spamhaus.org
    RHSBL=disabled
    RelayRequiresAuth=enabled
    SBLList=multi.surbl.org:black.uribl.com:rhsbl.sorbs.net
    TlsBeforeAuth=1
    access=public
    qplogsumm=disabled
    status=enabled


what Should i do exactly after updating variables for IMAPS and QPSMTPD ?

many thanks

guest22

Re: Setting Configuration Variable / Question
« Reply #1 on: August 11, 2015, 11:49:36 PM »
deleted.

Offline stephdl

  • *
  • 1,507
    • Linux et Geekeries
Re: Setting Configuration Variable / Question
« Reply #2 on: August 12, 2015, 12:34:32 AM »

what Should i do exactly after updating variables for IMAPS and QPSMTPD ?

many thanks
following your question, this is a page relative to db settings and the needed events -> http://wiki.contribs.org/DB_Variables_Configuration

normally a reconfiguration event (post-upgrade/reboot) can't change like this db settings, except if some migrate fragments are done by the developer of your contrib, but in this case I have some doubts.


what is the name of your 'addons' ?
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Re: Setting Configuration Variable / Question
« Reply #3 on: August 12, 2015, 07:21:46 PM »
Hi,
Thank your for your answer.

I have installed the:
-user panel access
-Sogo
-email WBL list (white black list)
-sme9 admin

On my commands here:

[root@srv~]# db configuration setprop imaps Concurrency 4500
[root@srv~]# config setprop imaps ConcurrencyLimit 4000
[root@srv~]# config setprop imaps ConcurrencyLimitPerIP 2000
[root@srv~]# config setprop qpsmtpd SBLList bogusmx.rfc-ignorant.org:multi.surbl.org:black.uribl.com:rhsbl.sorbs.net:bulk.rhs.mailpolice.com:fraud.rhs.mailpolice.com:porn.rhs.mailpolice.com:adult.rhs.mailpolice.com:ex.dnsbl.org
[root@srv~]# signal-event email-update


On the Sme documentation it's written to put at the end a signal-event email-update

If I do a post upgrade and event reboot some configs is missed after reboot,
Is the post upgrade and reboot mandatory ? Or the signal event email is enough ?

If you see on my command lines I did not put "DB " and the second and third lines, Is it the fault ?

Offline stephdl

  • *
  • 1,507
    • Linux et Geekeries
Re: Setting Configuration Variable / Question
« Reply #4 on: August 13, 2015, 08:01:44 AM »
db configuration <=> config

config is a shortcut for the configuration database, all other database need to be initiated by 'db database_name'

you can see all possibilities when you press the tab key (autocompletion)

which configs are missing, can you tell us, please do a state of your configuration before and after a post-upgrade/reboot

Code: [Select]
config show imaps
config show qpsmtpd

the event post-upgrade/reboot is the reconfiguration event, when something goes wrong, you can invoque it to reconfigure in a workable state your server, so all should work after
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Re: Setting Configuration Variable / Question
« Reply #5 on: August 13, 2015, 10:03:25 AM »
Hi, bonjour,

Thanks for the information ,

Please find the result of both commands line:

Imaps:
[root@neomail ~]# config show imaps
imaps=service
    Concurrency=4500
    ConcurrencyLimit=4000
    ConcurrencyLimitPerIP=2000
    TCPPort=993
    access=public
    status=enabled


Qsmtpd:

[root@neomail ~]# config show qpsmtpd
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=combined.njabl.org:psbl.surriel.com:zen.spamhaus.org:bl.spamcop.net
    RHSBL=disabled
    RelayRequiresAuth=enabled
    SBLList=bogusmx.rfc-ignorant.org:multi.surbl.org:black.uribl.com:rhsbl.sorbs.net:bulk.rhs.mailpolice.com:fraud.rhs.mailpolice.com:porn.rhs.mailpolice.com:adult.rhs.mailpolice.com:ex.dnsbl.org
    TlsBeforeAuth=1
    access=public
    qplogsumm=disabled
    status=enabled


Is it something wrong in the config?

guest22

Re: Setting Configuration Variable / Question
« Reply #6 on: August 13, 2015, 10:10:34 AM »
which configs are missing, can you tell us, please do a state of your configuration before and after a post-upgrade/reboot

Re: Setting Configuration Variable / Question
« Reply #7 on: August 13, 2015, 10:40:52 AM »
After having done a
[root@neomail ~]# signal-event post-upgrade; signal-event reboot


On my Imaps:
[root@neomail ~]# config show imaps
imaps=service
    Concurrency=4500
    TCPPort=993
    access=public
    status=enabled

-ConcurrencyLimit and ConcurencyLimitPerIp is missing

On my qsmtpd:
[root@neomail ~]# config show qpsmtpd
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=psbl.surriel.com:zen.spamhaus.org:bl.spamcop.net
    RHSBL=disabled
    RelayRequiresAuth=enabled
    SBLList=multi.surbl.org:black.uribl.com:rhsbl.sorbs.net
    TlsBeforeAuth=1
    access=public
    qplogsumm=disabled
    status=enabled

Sbllist is resetting !and Rbllist also!

So 4 keys configs are disappearing or resetting....



guest22

Re: Setting Configuration Variable / Question
« Reply #8 on: August 13, 2015, 11:47:35 AM »
This qualifies for a bug entry. Can you create a bugzilla entry and move over a summary of this issue please?

Offline stephdl

  • *
  • 1,507
    • Linux et Geekeries
Re: Setting Configuration Variable / Question
« Reply #9 on: August 13, 2015, 01:38:50 PM »
concerning RBLList obsolete are ->

       combined.njabl.org
       list.dsbl.org
       multihop.dsbl.org
       dnsbl.ahbl.org

see /etc/e-smith/db/configuration/migrate/20RBLList

concerning SBLLIST obsolete are ->

       blackhole.securitysage.com
       bulk.rhs.mailpolice.com
       fraud.rhs.mailpolice.com
       porn.rhs.mailpolice.com
       adult.rhs.mailpolice.com
       bogusmx.rfc-ignorant.org
       ex.dnsbl.org

see /etc/e-smith/db/configuration/migrate/20SBLLIST

In fact you try to use obsolete spam lists, the issue is a documentation bug, can you point us which page you used for qpsmtpd
« Last Edit: August 13, 2015, 02:00:08 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,507
    • Linux et Geekeries
Re: Setting Configuration Variable / Question
« Reply #10 on: August 13, 2015, 01:46:18 PM »
for imaps it seems that now we have only one db key for dovecot -> imap

see /etc/e-smith/db/configuration/migrate/ImapsLimits

now for sme9 we need to remove from the db imaps -> ConcurrencyLimit ConcurrencyLimitPerIP ProcessMemoryLimit

same here it is a documentation bug, which wiki page did you use for your settings
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Re: Setting Configuration Variable / Question
« Reply #11 on: August 16, 2015, 01:16:09 PM »
In fact, I used both lists from my old configuration of Sme Server 7 which I Imported.

I will use the list you mention me. Thanks

concerning RBLList obsolete are ->

       combined.njabl.org
       list.dsbl.org
       multihop.dsbl.org
       dnsbl.ahbl.org

see /etc/e-smith/db/configuration/migrate/20RBLList

concerning SBLLIST obsolete are ->

       blackhole.securitysage.com
       bulk.rhs.mailpolice.com
       fraud.rhs.mailpolice.com
       porn.rhs.mailpolice.com
       adult.rhs.mailpolice.com
       bogusmx.rfc-ignorant.org
       ex.dnsbl.org

see /etc/e-smith/db/configuration/migrate/20SBLLIST

In fact you try to use obsolete spam lists, the issue is a documentation bug, can you point us which page you used for qpsmtpd

guest22

Re: Setting Configuration Variable / Question
« Reply #12 on: August 16, 2015, 07:25:40 PM »
same here it is a documentation bug, which wiki page did you use for your settings

Re: Setting Configuration Variable / Question
« Reply #13 on: August 21, 2015, 02:01:24 PM »


Hi, sorry for the late answer, as I say, I use my old configuration from SME7, I read it from there, the 2 lists were implemented by the old it guy.

Re: Setting Configuration Variable / Question
« Reply #14 on: August 21, 2015, 02:05:24 PM »
for imaps it seems that now we have only one db key for dovecot -> imap

see /etc/e-smith/db/configuration/migrate/ImapsLimits

now for sme9 we need to remove from the db imaps -> ConcurrencyLimit ConcurrencyLimitPerIP ProcessMemoryLimit

same here it is a documentation bug, which wiki page did you use for your settings

Hello Steph,

I used this wiki page : http://wiki.contribs.org/DB_Variables_Configuration#IMAPS_.28imaps.29
More that, I copy my old configuration. So for IMAPS limit, I deleted everything and I set only IMAP limit (without S). I did not read carefully that the IMAP limits is enough and no IMAPs limits are required.

here is my configuratin for IMAP and IMAPS now :
[root@neomail ~]# config show imap
imap=service
    ConcurrencyLimit=4000
    ConcurrencyLimitPerIP=2000
    TCPPort=143
    access=private
    status=enabled
[root@neomail ~]# config show imaps
imaps=service
    TCPPort=993
    access=public
    status=enabled