Enhancement #2499

Override mail system /etc/aliases

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

Status:CLOSEDStart date:01/03/2014
Priority:NormalDue date:01/03/2014
Assignee:-% Done:

100%

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

Description

The /etc/aliases file overrides our mail delivery rules.

For instance if a fax user account is created, it will not receive any mail until the fax: root line in /etc/aliases is removed.


Related issues

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

Associated revisions

Revision d51dd547
Added by Davide Principi over 7 years ago

Override system default /etc/aliases DB with our template. Refs #2499

Revision b669b034
Added by Davide Principi over 7 years ago

Deliver root's mail to admin. Refs #2492 #2499

Revision ce9acc58
Added by Davide Principi over 7 years ago

List accounts to override /etc/aliases settings. Refs #2499

Added 40accounts fragment. If an account has no mail forward address
defined, set an identity forward value to override /etc/aliases.

History

#1 Updated by Davide Principi over 7 years ago

  • Description updated (diff)

Set accounts and give priority to /etc/postfix/aliases towards /etc/aliases

OR

Implement an action that removes/comments out conflicting lines in /etc/aliases when an user account has prop MailStatus=enabled.

#2 Updated by Davide Principi over 7 years ago

  • Due date set to 01/03/2014
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • Start date set to 01/03/2014
  • % Done changed from 20 to 30
  • Estimated time set to 2.00

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

#4 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-lib-1.4.0-3.0gitce8e11f1.ns6.noarch.rpm
nethserver-base-1.5.0-11.0git12b07501.ns6.noarch.rpm
nethserver-directory-1.3.0-12.0git01b2300a.ns6.noarch.rpm
nethserver-nethgui-1.3.0-5.0gitb985d576.ns6.noarch.rpm
nethserver-mail-server-1.5.0-8.0git7757599e.ns6.noarch.rpm
nethserver-samba-1.4.0-3.0git4fc31495.ns6.noarch.rpm
nethserver-ejabberd-1.0.2-3.0git6fec4e8d.ns6.noarch.rpm
nethserver-hylafax-1.0.3-2.0git1b8d9075.ns6.noarch.rpm
nethserver-httpd-admin-1.1.0-9.0git9b2daa63.ns6.noarch.rpm

#5 Updated by Giacomo Sanchietti over 7 years ago

  • Assignee set to Giacomo Sanchietti

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

Create user fax and sent mail to it:

[root@test ~]# mail -s test1 fax@nethesis.org < text

[root@test ~]# tail -f /var/log/maillog
Feb  4 16:25:55 test dovecot: lmtp(25171): Disconnect from local: Client quit (in reset)
Feb  4 16:25:55 test postfix/qmgr[25045]: 710BB3F460: removed
Feb  4 16:26:20 test postfix/pickup[25044]: 72BC23F45F: uid=0 from=<root>
Feb  4 16:26:20 test postfix/cleanup[25165]: 72BC23F45F: message-id=<20140204152620.72BC23F45F@test.stronzolo.loc>
Feb  4 16:26:20 test postfix/qmgr[25045]: 72BC23F45F: from=<root@test.stronzolo.loc>, size=431, nrcpt=1 (queue active)
Feb  4 16:26:20 test dovecot: lmtp(25171): Connect from local
Feb  4 16:26:20 test dovecot: lmtp(25171, fax): sOG4LYMG8VJTYgAAkwWZIQ: sieve: msgid=<20140204152620.72BC23F45F@test.stronzolo.loc>: stored mail into mailbox 'INBOX'
Feb  4 16:26:20 test postfix/lmtp[25170]: 72BC23F45F: to=<fax@test.stronzolo.loc>, orig_to=<fax@nethesis.org>, relay=test.stronzolo.loc[/var/run/dovecot/lmtp], delay=0.12, delays=0.02/0/0/0.09, dsn=2.0.0, status=sent (250 2.0.0 <fax@test.stronzolo.loc> sOG4LYMG8VJTYgAAkwWZIQ Saved)
Feb  4 16:26:20 test dovecot: lmtp(25171): Disconnect from local: Client quit (in reset)
Feb  4 16:26:20 test postfix/qmgr[25045]: 72BC23F45F: removed

[root@test ~]# ll /var/lib/nethserver/vmail/fax/Maildir/new/1391527580.M496478P25171.test.stronzolo.loc\,S\=662\,W\=680 
-rw-------. 1 vmail vmail 662 Feb  4 16:26 /var/lib/nethserver/vmail/fax/Maildir/new/1391527580.M496478P25171.test.stronzolo.loc,S=662,W=680

[root@test ~]# cat /var/lib/nethserver/vmail/fax/Maildir/new/1391527580.M496478P25171.test.stronzolo.loc\,S\=662\,W\=680 
Return-Path: <root@test.stronzolo.loc>
Delivered-To: <fax@test.stronzolo.loc>
Received: from test.stronzolo.loc
    by test.stronzolo.loc (Dovecot) with LMTP id sOG4LYMG8VJTYgAAkwWZIQ
    for <fax@test.stronzolo.loc>; Tue, 04 Feb 2014 16:26:20 +0100
Received: by test.stronzolo.loc (Postfix, from userid 0)
    id 72BC23F45F; Tue,  4 Feb 2014 16:26:20 +0100 (CET)
Date: Tue, 04 Feb 2014 16:26:20 +0100
To: fax@nethesis.org
Subject: test1
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20140204152620.72BC23F45F@test.stronzolo.loc>
From: root@test.stronzolo.loc (root)

hi

Marking as VERIFIED.

#7 Updated by Davide Principi over 7 years ago

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

Released in nethserver/6.5/base repository.

Also available in: Atom PDF