Enhancement #2102

Always deliver mail to local admin user

Added by Davide Principi about 8 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:11/27/2013
Priority:NormalDue date:11/27/2013
Assignee:-% Done:

100%

Category:nethserver-base
Target version:v6.5-beta3
Resolution: NEEDINFO:No

Description

When the personal admin email address (i.e. ) is specified in UserProfile UI module, any message to root is forwarded to that address.

Set ", admin" as admin's alias in /etc/aliases to keep a copy of messages on the local machine.

Associated revisions

Revision 47330fb2
Added by Davide Principi over 7 years ago

Added admin/KeepMessageCopy prop. Refs #2102

Default value is "yes". This prop controls if email messages directed
to root are actually delivered to the local admin user even if an
external mail address (EmailAddress prop) is set.

Revision 90999af4
Added by Davide Principi over 7 years ago

Added "mutt" to nethserver-mail package group. Refs #2102

History

#1 Updated by Filippo Carletti almost 8 years ago

  • Target version changed from ~FUTURE to v6.5-beta3

#2 Updated by Davide Principi over 7 years ago

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

#3 Updated by Davide Principi over 7 years ago

  • Due date set to 11/27/2013
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • Start date set to 11/27/2013
  • % Done changed from 20 to 30
  • Estimated time set to 2.00

#4 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

After upgrade to modified version

  1. From UserProfile UI module set an external mail address for admin user
  2. Send an email to root@localhost

Mail must be delivered the given mail address and to local admin's mailbox (located at /var/mail/admin or /var/lib/nethserver/vmail/admin).

#5 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-1.4.3-12.0git47330fb2.ns6.noarch.rpm

#6 Updated by Giacomo Sanchietti over 7 years ago

  • Assignee set to Giacomo Sanchietti

#7 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

Marking as VERIFIED.

External address set to gmail account:

[root@test ~]# grep admin /etc/aliases
newsadmin:    news
ftpadmin:    ftp
ftp-admin:    ftp
# NethServer: all root mail to admin account
root:        admin
admin:        xxx@gmail.com, admin

Mail delivered to local (/var/mail/admin) and remote account.

From maillog:

Dec  6 16:09:34 test postfix/pickup[4666]: 615D03137: uid=0 from=<root>
Dec  6 16:09:34 test postfix/cleanup[4671]: 615D03137: message-id=<20131206160934.615D03137@test.test.loc>
Dec  6 16:09:34 test postfix/qmgr[4667]: 615D03137: from=<root@test.test.loc>, size=418, nrcpt=1 (queue active)
Dec  6 16:09:34 test postfix/local[4673]: 615D03137: to=<admin@test.test.loc>, orig_to=<root>, relay=local, delay=0.08, delays=0.06/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Dec  6 16:09:34 test postfix/cleanup[4671]: 681713128: message-id=<20131206160934.615D03137@test.test.loc>
Dec  6 16:09:34 test postfix/qmgr[4667]: 681713128: from=<root@test.test.loc>, size=544, nrcpt=1 (queue active)
Dec  6 16:09:34 test postfix/local[4673]: 615D03137: to=<root@test.test.loc>, orig_to=<root>, relay=local, delay=0.13, delays=0.06/0.01/0/0.06, dsn=2.0.0, status=sent (forwarded as 681713128)
Dec  6 16:09:34 test postfix/qmgr[4667]: 615D03137: removed
Dec  6 16:09:35 test postfix/smtp[4674]: 681713128: to=<xxx@gmail.com>, orig_to=<root>, relay=gmail-smtp-in.l.google.com[173.194.65.26]:25, delay=1.4, delays=0.06/0.01/0.48/0.84, dsn=2.0.0, status=sent (250 2.0.0 OK 1386346175 g5si9879557eev.91 - gsmtp)
Dec  6 16:09:35 test postfix/qmgr[4667]: 681713128: removed

#8 Updated by Davide Principi over 7 years ago

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

In nethserver-updates:
nethserver-samba-1.4.0-1.ns6.noarch.rpm
nethserver-directory-1.3.0-1.ns6.noarch.rpm
nethserver-dnsmasq-1.1.0-1.ns6.noarch.rpm
nethserver-shorewall-1.0.3-1.ns6.noarch.rpm
nethserver-mail-server-1.5.0-1.ns6.noarch.rpm
nethserver-mail-filter-1.1.4-1.ns6.noarch.rpm
nethserver-nethgui-1.3.0-1.ns6.noarch.rpm
nethserver-base-1.5.0-1.ns6.noarch.rpm
nethserver-lib-1.4.0-1.ns6.noarch.rpm
nethserver-httpd-admin-1.1.0-1.ns6.noarch.rpm
nethserver-yum-1.2.0-1.ns6.noarch.rpm
nethserver-ntopng-1.1.0-1.ns6.noarch.rpm

Also available in: Atom PDF