Bug #2675

Backup Notification to System administrator fails by default

Added by Alessio Fattorini over 7 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-mail-server
Target version:v6.5-final
Security class: Resolution:
Affected version:v6.5-rc1 NEEDINFO:No

Description

By default backup notification is sended to System administrator, due to #2647 the default recipient is now root@localhost
When I execute backup-data this is the ouput into maillog:

Feb 26 18:25:42 botolo postfix/qmgr[1412]: 272E842183: from=<root@botolo.nethesis.it>, size=724, nrcpt=1 (queue active)
Feb 26 18:25:42 botolo dovecot: lmtp(3543): Connect from local
Feb 26 18:25:42 botolo postfix/lmtp[3542]: 272E842183: to=<root@localhost.nethesis.it>, orig_to=<root@localhost>, relay=botolo.nethesis.it[/var/run/dovecot/lmtp], delay=0.53, delays=0.27/0.1/0.07/0.09, dsn=5.1.1, status=bounced (host botolo.nethesis.it[/var/run/dovecot/lmtp] said: 550 5.1.1 <root@localhost.nethesis.it> User doesn't exist: root@localhost.nethesis.it (in reply to RCPT TO command))
Feb 26 18:25:42 botolo dovecot: lmtp(3543): Disconnect from local: Client quit (in reset)
Feb 26 18:25:42 botolo postfix/cleanup[3539]: 8BF9042184: message-id=<20140226172542.8BF9042184@botolo.nethesis.it>
Feb 26 18:25:42 botolo postfix/bounce[3545]: 272E842183: sender non-delivery notification: 8BF9042184
Feb 26 18:25:42 botolo postfix/qmgr[1412]: 8BF9042184: from=<>, size=2832, nrcpt=1 (queue active)
Feb 26 18:25:42 botolo postfix/qmgr[1412]: 272E842183: removed
Feb 26 18:25:42 botolo dovecot: lmtp(3543): Connect from local
Feb 26 18:25:42 botolo postfix/lmtp[3542]: 8BF9042184: to=<root@botolo.nethesis.it>, relay=botolo.nethesis.it[/var/run/dovecot/lmtp], delay=0.03, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (host botolo.nethesis.it[/var/run/dovecot/lmtp] said: 550 5.1.1 <root@botolo.nethesis.it> User doesn't exist: root@botolo.nethesis.it (in reply to RCPT TO command))

No notification is sended, because user root doesn't have any mail folder.
I think that the problem could be nethserver-mail installed, this is the list of package:

# rpm -qa | grep neth
nethserver-yum-1.3.0-1.ns6.noarch
nethserver-smartd-1.0.1-1.ns6.noarch
nethserver-openssh-1.0.4-1.ns6.noarch
nethserver-mysql-1.0.5-1.ns6.noarch
nethserver-directory-2.0.0-1.ns6.noarch
nethserver-mail-server-1.6.0-1.ns6.noarch
nethserver-samba-1.4.1-1.ns6.noarch
nethserver-lib-2.0.0-1.ns6.noarch
nethserver-hosts-1.0.6-1.ns6.noarch
nethserver-release-6.5-3.beta3.ns6.noarch
nethserver-base-2.0.1-1.ns6.noarch
nethserver-backup-data-1.0.8-4.0gitcc56716a.ns6.noarch
nethserver-antivirus-1.0.6-1.ns6.noarch
nethserver-nethgui-1.3.2-1.ns6.noarch
nethserver-php-1.1.1-1.ns6.noarch
nethserver-ntp-1.0.6-1.ns6.noarch
nethserver-backup-config-1.0.5-1.ns6.noarch
nethserver-httpd-2.2.2-1.ns6.noarch
nethserver-mail-common-1.3.2-1.ns6.noarch
nethserver-roundcubemail-0.0.1-3.0git328a519d.ns6.noarch
nethserver-httpd-admin-1.2.0-1.ns6.noarch
nethserver-grub-1.0.4-1.ns6.noarch
nethserver-mail-filter-1.1.4-1.ns6.noarch

Related issues

Related to NethServer 6 - Feature #2492: Move admin user in LDAP DB CLOSED 12/17/2013 12/19/2013

Associated revisions

Revision 762e63e6
Added by Davide Principi over 7 years ago

Fixed default root key in configuration DB. Refs #2675

Revision 5ce39e6e
Added by Davide Principi over 7 years ago

Fix delivery of root mail to admin's mailbox. Refs #2675

If neither external EmailAddress nor KeepMessageCopy options are
enabled deliver to admin.

History

#2 Updated by Davide Principi over 7 years ago

  • Target version changed from v6.5-rc1 to v6.5-final
  • Affected version set to v6.5-rc1

#3 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#4 Updated by Davide Principi over 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#5 Updated by Davide Principi over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case 1

In a fresh installation test in configuration DB (nethserver-base):
  • root key exists
  • admin key does not exist

Test case 2

After upgrade,

  • Set root's email address in UserProfile module
  • Verify email address is in /etc/postfix/aliases:
       # grep ^root /etc/postfix/aliases
    root    external@example.com, admin
    
  • Verify email delivery to external@example.com and local admin's mailbox
Then
  • Remove external mail address in UserProfile module
  • Verify email address is not in /etc/postfix/aliases:
       # grep ^root /etc/postfix/aliases
    root admin
    

Upgrade notes

Remove the old admin key from configuration DB:

   # config delete admin

#6 Updated by Davide Principi over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-base-2.1.1-1.0git762e63e6.ns6.noarch.rpm
nethserver-mail-server-1.6.2-1.0git5ce39e6e.ns6.noarch.rpm

#7 Updated by Giacomo Sanchietti over 7 years ago

  • Assignee set to Giacomo Sanchietti

#8 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 20

Test case 1

Keys are correctly initialized:

[root@localhost amavisd]# config delete admin
[root@localhost amavisd]# config delete root
[root@localhost amavisd]# signal-event nethserver-base-update 
[root@localhost amavisd]# config show admin
[root@localhost amavisd]# config show root
root=configuration
    EmailAddress=
    FirstName=
    KeepMessageCopy=yes
    LastName=

Test PASSED.

Test case 2

After adding mail address:

[root@localhost amavisd]#  grep ^root /etc/postfix/aliases
root    test@nethesis.it, admin

After removing mail address:

[root@localhost amavisd]#  grep ^root /etc/postfix/aliases
root    admin

Keep attention in this scenario:
  • nethserver-directory installed
  • admin user created but disabled (no password)
  • login into web interface with admin user
  • change mail address from user profile
  • changes are made to the admin key inside the accounts db
  • admin user can access IMAP using root password

Test PASSED.

#9 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

#10 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

#11 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

#13 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-base-2.1.2-1.ns6.noarch.rpm
nethserver-mail-server-1.6.3-1.ns6.noarch.rpm

Also available in: Atom PDF