Feature #2042

Mail-common: email queue management

Added by Filippo Carletti about 8 years ago. Updated about 8 years ago.

Status:CLOSEDStart date:07/26/2013
Priority:NormalDue date:07/29/2013
Assignee:-% Done:

100%

Category:nethserver-mail-common
Target version:v6.4-beta2
Resolution: NEEDINFO:No

Description

The messages queue tab (mail menu) shows emails held in queue and also permits to flush the queue (retry to send all messages).
I propose to add a button next to every email to delete it from the queue.
And, maybe, a button to remove all messages from the queue (dangerous).

Associated revisions

Revision fa764fa1
Added by Davide Principi about 8 years ago

Mail Queue UI module: use LazyLoaderAdapter. Refs #2042

Revision 93be8703
Added by Davide Principi about 8 years ago

/etc/sudoers template (20postfix): enabled postqueue and postsuper commands. Refs #2042

Revision 716b9e39
Added by Davide Principi about 8 years ago

Mail Queue UI module: added Delete action, to expunge a single message from postfix queue. Refs #2042

Revision f8270acc
Added by Davide Principi about 8 years ago

Mail Queue UI module: added DeleteAll action. Refs #2042

Revision e430b141
Added by Davide Principi about 8 years ago

Mail Queue UI: check external postfix commands exit status. Refs #2042

History

#1 Updated by Davide Principi about 8 years ago

  • Subject changed from email queue management to Mail-common: email queue management
  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20
  • Estimated time set to 8.00

#2 Updated by Davide Principi about 8 years ago

  • Due date set to 07/29/2013
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • Start date set to 07/26/2013
  • % Done changed from 20 to 30

#3 Updated by Davide Principi about 8 years ago

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

Test case

  • Install nethserver-mail-common from nethserver-testing repository
  • Create a relay domain relay.tld pointing to some non-existing IP address. This will cause Postfix to queue any messages addressed to relay.tld
  • Send some messages:
       # for I in 2 3 4 5 6 7 8 9 10; do echo test$I | mail -s "Test$I" rcpt$I@relay.tld; done
    
  • Test the Mail > Queue management UI module works as expected:
    1. Refresh
    2. Attempt to send
    3. Delete all
    4. Delete (on single message)

#4 Updated by Davide Principi about 8 years ago

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

In nethserver-testing:
nethserver-mail-common-1.3.0-1.ns6.noarch.rpm

#5 Updated by Giacomo Sanchietti about 8 years ago

  • Assignee set to Giacomo Sanchietti

#6 Updated by Giacomo Sanchietti about 8 years ago

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

It requires at least nethserver-nethgui-1.2.2-1.ns6, otherwise an error occurs in web UI (LazyLoaderAdapter.php class not found).

Tested creating a badrely.com domain:

[root@test ~]# db domains show
badrely.loc=domain
    Description=
    DisclaimerStatus=disabled
    RelayHost=10.0.0.2
    RelayPort=25
    TransportType=Relay

After sending a bounce of mail, extract from /var/log/maillog:

...
Jul 29 14:47:35 localhost postfix/qmgr[16347]: 3B22313BE: from=<root@test.test.loc>, size=418, nrcpt=1 (queue active)
Jul 29 14:47:35 localhost postfix/cleanup[16377]: A9E591166: message-id=<20130729144735.A9E591166@test.test.loc>
Jul 29 14:47:35 localhost postfix/qmgr[16347]: A9E591166: from=<root@test.test.loc>, size=418, nrcpt=1 (queue active)
Jul 29 14:47:35 localhost postfix/pickup[16348]: B1A3011B4: uid=0 from=<root>
Jul 29 14:47:35 localhost postfix/cleanup[16377]: B1A3011B4: message-id=<20130729144735.B1A3011B4@test.test.loc>
Jul 29 14:47:35 localhost postfix/qmgr[16347]: B1A3011B4: from=<root@test.test.loc>, size=418, nrcpt=1 (queue active)
Jul 29 14:47:35 localhost postfix/pickup[16348]: B79AB13D5: uid=0 from=<root>
...

After deleting a single message from web UI:

Jul 29 14:52:59 localhost postfix/postsuper[16493]: 9307111B6: removed
Jul 29 14:52:59 localhost postfix/postsuper[16493]: Deleted: 1 message

Also works using button "Delete all" which empties the queue.

Marking as VERIFIED

#7 Updated by Davide Principi about 8 years ago

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

Moved to nethserver-updates repository

Also available in: Atom PDF