Feature #2464

everyone@ mail alias

Added by Davide Principi almost 6 years ago. Updated almost 6 years ago.

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

100%

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

Description

Add an everyone mail alias that delivers messages to all existing users enabled to receive email.

10everyone (469 Bytes) Davide Principi, 12/11/2013 03:03 PM


Related issues

Related to NethServer 6 - Enhancement #2646: Skip migration of builtin mail aliases CLOSED

Associated revisions

Revision 11bacf8d
Added by Giacomo Sanchietti almost 6 years ago

internal_access and virtual templates: add everyone alias. Refs #2464

Revision 28d6c059
Added by Davide Principi almost 6 years ago

Added comments and whitespace to template fragments. Refs #2464

Revision f06ead98
Added by Davide Principi almost 6 years ago

Match "everyone" as user part of mail address. Refs #2464

Without @ the key is matched against the domain part. See "EMAIL
ADDRESS PATTERNS" in access(5) man page for more infos.

History

#1 Updated by Davide Principi almost 6 years ago

10everyone
A working template-custom /etc/e-smith/templates-custom/etc/postfix/virtual/10everyone

#2 Updated by Giacomo Sanchietti almost 6 years ago

  • Assignee set to Giacomo Sanchietti

#3 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from TRIAGED to NEW
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 20 to 0
Some questions about this feature:
  • should be a private or public alias?
  • the alias must be enabled on all domains?
  • can the alias be enabled/disabled?

#4 Updated by Filippo Carletti almost 6 years ago

  • should be a private or public alias?

Private.

  • the alias must be enabled on all domains?

Yes

  • can the alias be enabled/disabled?

no

#5 Updated by Giacomo Sanchietti almost 6 years ago

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

Implementation must follow decisions on previous note.

#6 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#7 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#8 Updated by Giacomo Sanchietti almost 6 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Packages in nethserver-testing:
  • nethserver-mail-server-1.5.0-15.0gitf5263a59.ns6.noarch.rpm
The everyone alias
  • is always enabled
  • is private
  • is valid for all domains
Test case
  • Send an email to everyone@<domain>
  • Check mail is delivered to all users
  • Also check the alias is not usable from external network without SMTPAUTH
  • Also check the alias is valid for all configured domains

#9 Updated by Davide Principi almost 6 years ago

  • Assignee set to Davide Principi

#10 Updated by Davide Principi almost 6 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 20

FAILED

Mail to everyone from external IP address is accepted.

#11 Updated by Davide Principi almost 6 years ago

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

#12 Updated by Davide Principi almost 6 years ago

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

#13 Updated by Davide Principi almost 6 years ago

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

In nethserver-testing:
nethserver-mail-server-1.5.0-21.0gitf06ead98.ns6.noarch.rpm

#14 Updated by Giacomo Sanchietti almost 6 years ago

  • Assignee set to Giacomo Sanchietti

#15 Updated by Giacomo Sanchietti almost 6 years ago

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

Installed nethserver-mail-dev for testing purpose.

Trying to send to everyone:

[root@localhost ~]# smtptest  --to everyone@nethesis.org --from davidem@stronzolo.loc --addr 8.8.8.8 --subject "this is a test"  -f text --port 587 --host localhost
5.7.1 <localhost.localdomain[8.8.8.8]>: Client host rejected: Access denied
[root@localhost ~]# smtptest  --to everyone@nethesis.org --from davidem@stronzolo.loc --subject "this is a test"  -f text --port 587 --host localhost

From maillog:

Feb  3 15:11:09 test postfix/smtpd[20406]: connect from localhost[127.0.0.1]
Feb  3 15:11:09 test postfix/smtpd[20406]: 0BD664257C: client=localhost.localdomain[127.0.0.1]
Feb  3 15:11:09 test postfix/cleanup[20411]: 0BD664257C: message-id=<20140203141109.0BD664257C@test.stronzolo.loc>
Feb  3 15:11:09 test postfix/qmgr[18265]: 0BD664257C: from=<text@test.stronzolo.loc>, size=601, nrcpt=2 (queue active)
Feb  3 15:11:09 test postfix/smtpd[20406]: disconnect from localhost.localdomain[127.0.0.1]
Feb  3 15:11:09 test postfix/smtpd[20414]: connect from localhost[127.0.0.1]
Feb  3 15:11:09 test postfix/smtpd[20414]: 9FA204257E: client=localhost[127.0.0.1], orig_queue_id=0BD664257C, orig_client=localhost.localdomain[127.0.0.1]
Feb  3 15:11:09 test postfix/cleanup[20411]: 9FA204257E: message-id=<20140203141109.0BD664257C@test.stronzolo.loc>
Feb  3 15:11:09 test postfix/qmgr[18265]: 9FA204257E: from=<text@test.stronzolo.loc>, size=941, nrcpt=2 (queue active)
Feb  3 15:11:09 test postfix/smtpd[20414]: disconnect from localhost[127.0.0.1]
Feb  3 15:11:09 test dovecot: lmtp(20419): Connect from local
Feb  3 15:11:09 test dovecot: lmtp(20422): Connect from local
Feb  3 15:11:09 test dovecot: lmtp(20419, davidem): 97d8KHmj71LDTwAAkwWZIQ: sieve: msgid=<20140203141109.0BD664257C@test.stronzolo.loc>: stored mail into mailbox 'INBOX'
Feb  3 15:11:09 test dovecot: lmtp(20419): Disconnect from local: Client quit (in reset)
Feb  3 15:11:09 test postfix/lmtp[20417]: 9FA204257E: to=<davidem@test.stronzolo.loc>, relay=test.stronzolo.loc[/var/run/dovecot/lmtp], delay=0.04, delays=0/0/0/0.03, dsn=2.0.0, status=sent (250 2.0.0 <davidem@test.stronzolo.loc> 97d8KHmj71LDTwAAkwWZIQ Saved)
Feb  3 15:11:09 test dovecot: lmtp(20422, admin): GnMHKXmj71LGTwAAkwWZIQ: sieve: msgid=<20140203141109.0BD664257C@test.stronzolo.loc>: stored mail into mailbox 'INBOX'
Feb  3 15:11:09 test postfix/lmtp[20418]: 9FA204257E: to=<admin@test.stronzolo.loc>, relay=test.stronzolo.loc[/var/run/dovecot/lmtp], delay=0.04, delays=0/0/0/0.03, dsn=2.0.0, status=sent (250 2.0.0 <admin@test.stronzolo.loc> GnMHKXmj71LGTwAAkwWZIQ Saved)
Feb  3 15:11:09 test dovecot: lmtp(20422): Disconnect from local: Client quit (in reset)
Feb  3 15:11:09 test postfix/qmgr[18265]: 9FA204257E: removed
Feb  3 15:11:09 test amavis[16812]: (16812-02) Passed CLEAN {RelayedOutbound}, SUBMISSION/MYNETS LOCAL [127.0.0.1]:39507 [127.0.0.1] <text@test.stronzolo.loc> -> <admin@test.stronzolo.loc>,<davidem@test.stronzolo.loc>, Queue-ID: 0BD664257C, Message-ID: <20140203141109.0BD664257C@test.stronzolo.loc>, mail_id: neiLHNVXp7-f, Hits: -, size: 601, queued_as: 9FA204257E, 489 ms
Feb  3 15:11:09 test postfix/lmtp[20412]: 0BD664257C: to=<admin@test.stronzolo.loc>, orig_to=<everyone@nethesis.org>, relay=127.0.0.1[127.0.0.1]:10587, delay=0.65, delays=0.07/0/0.17/0.41, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9FA204257E)
Feb  3 15:11:09 test postfix/lmtp[20412]: 0BD664257C: to=<davidem@test.stronzolo.loc>, orig_to=<everyone@nethesis.org>, relay=127.0.0.1[127.0.0.1]:10587, delay=0.65, delays=0.07/0/0.17/0.41, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9FA204257E)
Feb  3 15:11:09 test postfix/qmgr[18265]: 0BD664257C: removed

Marking as VERIFIED.

#16 Updated by Davide Principi almost 6 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