Software Center does not reflect installed modules


#1

NethServer Version: NethServer release 7.5.1804 (final)
Module: SoftwareCenter

After Upgrade to Release 7.5.1804 the SoftwareCenter does not show the installed packages correctly.

yum output:
[root@homeserver1 log]# rpm -qa | grep nethserver
nethserver-backup-config-2.2.0-1.ns7.noarch
nethserver-mysql-1.1.3-1.ns7.noarch
nethserver-nextcloud-1.2.4-1.ns7.noarch
nethserver-mail-common-1.6.7-1.ns7.noarch
nethserver-spamd-1.0.1-1.ns7.noarch
nethserver-httpd-3.2.7-1.ns7.noarch
nethserver-mail-filter-1.4.5-1.ns7.noarch
nethserver-httpd-virtualhosts-3.2.7-1.ns7.noarch
nethserver-httpd-admin-2.3.4-1.ns7.noarch
nethserver-cgp-2.1.3-1.ns7.noarch
nethserver-diagtools-1.0.2-1.ns7.noarch
nethserver-lang-en-1.2.14-1.ns7.noarch
nethserver-dnsmasq-1.6.6-1.ns7.noarch
nethserver-phonehome-1.3.0-1.ns7.noarch
nethserver-smartd-1.1.0-1.ns7.noarch
nethserver-mail-server-1.12.4-1.ns7.noarch
nethserver-getmail-1.0.4-1.ns7.noarch
nethserver-p3scan-1.1.3-1.ns7.noarch
nethserver-duc-1.4.4-1.ns7.noarch
nethserver-libvirt-1.1.0-1.ns7.noarch
nethserver-yum-1.4.1-1.ns7.noarch
nethserver-lang-it-1.2.14-1.ns7.noarch
nethserver-mail-disclaimer-1.6.7-1.ns7.noarch
nethserver-release-7-8.ns7.noarch
nethserver-base-3.4.4-1.ns7.noarch
nethserver-firewall-base-ui-3.4.2-1.ns7.noarch
nethserver-directory-3.3.0-1.ns7.noarch
nethserver-net-snmp-1.1.0-1.ns7.noarch
nethserver-rh-php71-php-fpm-1.0.0-1.ns7.noarch
nethserver-memcached-1.1.0-1.ns7.noarch
nethserver-postgresql-1.1.0-1.ns7.noarch
nethserver-rh-php56-php-fpm-1.0.0-1.ns7.noarch
nethserver-sssd-1.4.1-1.ns7.noarch
nethserver-nut-1.3.2-1.ns7.noarch
nethserver-unbound-1.1.0-1.ns7.noarch
nethserver-unixODBC-1.0.0-1.ns7.noarch
nethserver-hosts-1.2.2-1.ns7.noarch
nethserver-letsencrypt-1.1.6-1.ns7.noarch
nethserver-ntp-1.1.3-1.ns7.noarch
nethserver-backup-data-1.4.0-1.ns7.noarch
nethserver-antivirus-1.2.1-1.ns7.noarch
nethserver-sogo-1.7.6-1.ns7.noarch
nethserver-firewall-base-3.4.2-1.ns7.noarch
nethserver-httpd-proxypass-3.2.7-1.ns7.noarch
nethserver-nethforge-release-7-2.ns7.noarch
nethserver-lib-2.2.8-1.ns7.noarch
nethserver-php-1.2.0-1.ns7.noarch
nethserver-restore-data-1.2.5-1.ns7.noarch
nethserver-lsm-1.2.3-1.ns7.noarch
nethserver-vsftpd-1.1.1-1.ns7.noarch
nethserver-webtop5-1.2.6-1.ns7.noarch
nethserver-collectd-3.0.7-1.ns7.noarch
nethserver-mail-smarthost-1.0.1-1.ns7.noarch
nethserver-openssh-1.2.2-1.ns7.noarch

Shown packages in Software center: (under “installed” tab)

  • Backup
  • Basic Firewall
  • FTP server
  • Italian language
  • MariaDB (MySQL) server
  • Nextcloud
  • Reverse proxy
  • SNMP server
  • SOGo groupware
  • Statistics
  • UPS support
  • Web server

Various packages which are installed (e.g. WebTop5, Email, pop3 connector, ) are not showing in the “installed” tab but are listed in the “available” tab.
Actually I use WebTop and email daily and they can be also fully configures (e.g. pop3 connector) from the Nethserver Admin Gui.

Is there any option to resnyc Software Center with the actually installed package status?
Thanks


Show all parts of installed packages at softwarecenter
(Michael Träumner) #2

At the softwarecenter it’s a module with different packages, you have to install every package of one module to be shown as installed in softwarecenter. WebTop5 for example is

nethserver-webtop5, nethserver-mail2-server

but you have installed

nethserver-webtop5-1.2.6-1.ns7.noarch, nethserver-mail-server-1.12.4-1.ns7.noarch

You don’t have updated to mail-server 2.


(Davide Principi) #3

Great catch @m.traeumner! We’ve an open discussion about Automatic upgrade to mail2 that would implicitly fix this Software Center issue.


#4

Hello, thanks a lot for the hint.
I understood I have to execute one of the commands described in http://docs.nethserver.org/en/v7/mail2.html. As I use pop3 connector I guess it is the part from “From POP3 connector module” - correct?

However, reading quickly the docs I could not find a hint if all email settings currently included will be preserved after upgrade to Mail2?
E.g. Smarthost settings, all Pop3 connector information, SMTP settings…
Will this be ensured?

I also use actually some tweaking of the postfix files via the e-smith system (e.g. sender dependent smart host (relay host) with multiple smarthosts and sender dependent authentication - BTW would be a nice feature to configure such topic directly in nethserver :slight_smile: , some small other changes in postfix config). I understood postfix is still be used in Mail2 system, so I guess my tweaks should work also in Mail2 (as the the config files should be generated again via e-smith templates).

And to be honest I’m still hesitating starting the upgrade having read of some issues while upgrading to Mail2, e.g. https://community.nethserver.org/t/problems-with-mail2-update/10147. Hope they are solved :slight_smile:

Thanks again…


(Mark Verlinde) #5

Hi,

Do not know if it gives relief, the malfunction you are experience is optical.
It is inflicted by the composition of the groups which include the mail2 packages to be sure the mail2 stack is installed on a fresh install.

The new configuration of postfix is on places different from the former mail(1) package, you may have to refactor your tweaks a little bit to mach this.

Maybe it a good idea to share your tweaks before upgrading to see where conflicts can be expected. Of cause no promises or guarantees could helpful to get prepared. :sunglasses:


#6

Hi, basically I’m doing something similar like https://wiki.nethserver.org/doku.php?id=howto:how_to_configure_nethserver_for_mail_configuration_with_office365_multiple_mailaccounts with some additional small items:

(All changes done via e-smith template system - no direct change in files - but I do show below only the essential content of the various template files)

  1. change /etc/postfix/main.cf
header_checks = regexp:/etc/postfix/header_checks
# add always the correct headers (especially for some internal mailer which misses the date field)`
always_add_missing_headers = yes`
> sender_canonical_maps = hash:/etc/postfix/sender_canonical
> sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relayhost
> 
> # 
> #
> {
>     if($postfix{SmartHostStatus} ne 'enabled') {
> 	return "\n";
>     }
> 
>     if(! ($postfix{SmartHostName} && $postfix{SmartHostPort} ) ) {
> 	die("Missing required database value");
>     }
> 
>     my $auth_enable = $postfix{SmartHostAuthStatus} eq 'enabled' ? 'yes' : 'no';
>     my $options = $postfix{SmartHostAuthStatus} eq 'enabled' ? 'noanonymous' : '';
> 	
>     return <<FRAGMENT
>     > 
> # next line modifed by to always enable SMTP authentication (as required by
> # some mail server. Reason is also that the parameter SmartHostAuthStatus is never set apparently
> # see bug http://dev.nethserver.org/issues/2979
> # thus also the parameter $auth_enable is not set (see beginning of this file)
> # smtp_sasl_auth_enable = ${auth_enable}
> smtp_sasl_auth_enable = yes
> 
> # #START  
> # #to allow sender dependent authentication
> # #authentication map is stored in file sender_passwd
> smtp_sasl_password_maps = hash:/etc/postfix/sender_passwd
> smtp_sender_dependent_authentication = yes
> 
> 
> #  modifed 9 to always set security options (as required by
> # some mail server. Reason is also that the parameter SmartHostAuthStatus is never set appearently
> # see bug http://dev.nethserver.org/issues/2979
> # thus also the parameter $options is not set (see beginning of this file)
> # smtp_sasl_security_options = $options
> #
> #specific TLS security options --- required for some mail server Mail sending 
> # see: http://www.postfix.org/SASL_README.html#client_sasl_policy
> # see: http://www.postfix.org/TLS_README.html#client_tls_may
> 
> smtp_sasl_security_options = noanonymous,noplaintext
> smtp_sasl_tls_security_options = noanonymous     
> 
> # next line comment out 
> # smtp_sasl_security_options = $options
> 
> # Please notice also the change in the tls_policy file
> smtp_tls_policy_maps = hash:/etc/postfix/tls_policy
> 
> 
  1. add new configfile /etc/postfix/sender_relayhost (including the per-user smtp-servers)

  2. add new config /etc/postfix/sender_canoncial (including the per user email-mapping (from inside to outside mail address

  3. add new configfile /etc/postfix/sender_passwd

  4. I add new config for /etc/postfix/header_checks

  5. Modify tls_policy

     > #
     > # 10smarthost-policy-user
     > #
     > # to add all sender dependent smarthost configurations and the relevant TLS policy for that
     > #
     > {
     >     if($postfix{SmartHostStatus} ne 'enabled') {
     > 	return "\n";
     >     }
     > 
     >     if(! ($postfix{SmartHostName} && $postfix{SmartHostPort} ) ) {
     > 	die("Missing required database value");
     >     }
     > 
     > 
     >     return <<FRAGMENT
     > 
     > 
     > # add user defined TLS policy, see http://www.postfix.org/TLS_README.html#client_tls_may
     > #
     > # for xxx.xxx.xxx mail use opportunistic TLS
     > xxx.xxx.xxx:587            may
     > # for xxx.net mail we use mandatory TLS encryption
     > xxx.xxx.net:25         encrypt
     > # for xx.xxx.xxx email
     > xxx.xxx.xxx:25       encrypt
     > # for xxx.xxx.xxx  email
     > xxx.xxx.xxx:25    encrypt
     >    
     > FRAGMENT
     > } 
    
  6. Use Custom SMTP HELO Name

/sbin/e-smith/config setprop postfix HeloHost localhost
/sbin/e-smith/signal-event nethserver-mail-common-save
  1. Standard Pop3 Fetch settings as per Nethserver GUI (for different users different pop3 fetch settings)

  2. Whitelist settings as per Nethserver Email/Filter/Rules GUI

I hope I did not miss something, but this are the main changes.

Thanks for your help!