1

Topic: [Feature Request] Add Search and Filtering to SMTP Sessions

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.8.4
- Deployed with iRedMail Easy or the downloadable installer? EE
- Linux/BSD distribution name and version: Debian 12
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? EE
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====



Hello dear Zhang,

First of all, I would like to say that the **SMTP Sessions** feature in iRedMail Enterprise Edition is an extremely useful tool for mail server administrators, particularly for monitoring outgoing mail, investigating suspicious activity, and troubleshooting mail delivery.

However, I believe its usefulness could be significantly improved by adding a **search and filtering function**.

It would be very helpful to search and filter SMTP session records using the following fields:

- **Subject**
- **Authenticated User**
- **From (SMTP MAIL FROM)**
- **From (Header)**
- **Recipients**
- **Action**
- **Client IP**
- **Size**
- **Date**

Ideally, administrators could search by any individual field or combine several filters to narrow down the results.

For example, when investigating a potentially compromised account or unusual outbound activity, an administrator could enter an authenticated username, specify a time range, and immediately find all related SMTP sessions, including their recipients and delivery actions.

Currently, investigating a specific event can require navigating through multiple pages of SMTP session records or manually examining Postfix logs.

A dedicated search/filter interface would make SMTP Sessions a much more effective tool for daily administration, troubleshooting, and security investigations, especially on busy mail servers.

If possible, it would also be useful to support partial matches for email addresses and subjects, as well as filtering by date/time range.

**Environment:**
- iRedMail Enterprise Edition 1.8.4
- Debian 12
- Production mail server

Thank you for the continued development of iRedMail Enterprise Edition. SMTP Sessions is already a valuable feature, and I believe this improvement would make it even more useful for administrators.

Best regards
T

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [Feature Request] Add Search and Filtering to SMTP Sessions

You can click the link-style text inside table cell to filter it, did you try it?
For example, click the email address in column "Authenticated User", then it applies filter and refresh the data in table.

It now supports:

- Authenticated User
- From (SMTP MAIL FROM)
- From (Header)
- Recipients
- Action
- Client IP

3

Re: [Feature Request] Add Search and Filtering to SMTP Sessions

I understand now that clicking on values in the SMTP Sessions table allows filtering by several fields, and I appreciate that this functionality is already available.

However, I would like to clarify the main point of my feature request.

Since this morning alone, my SMTP Sessions table has accumulated over 3,000 pages of records.

If I need to investigate a specific email, authenticated user, recipient, or client IP address, I would potentially have to navigate through thousands of pages just to find a matching record that I can click to apply a filter.

With a dedicated search field, I could simply enter the email address, username, IP address, or other relevant value and immediately locate the corresponding SMTP sessions.

This is particularly important when investigating suspicious outbound activity, where quickly identifying a specific message and its recipients is essential.

The existing clickable filters are useful once a relevant record is visible, but they do not replace the ability to search directly for a value that is not currently displayed.

I would therefore suggest adding a search field above the SMTP Sessions table, ideally supporting:

Direct searches by authenticated user, sender, recipient, and client IP.

Partial text matching.

Searching by message subject.

Date and time range filtering.

Combining multiple search criteria.

The main objective is to make SMTP Sessions practical for administrators managing high-volume production mail servers, where manually navigating through thousands of pages is simply not feasible.

Thank you again for considering this improvement.

ZhangHuangbin wrote:

You can click the link-style text inside table cell to filter it, did you try it?
For example, click the email address in column "Authenticated User", then it applies filter and refresh the data in table.

It now supports:

- Authenticated User
- From (SMTP MAIL FROM)
- From (Header)
- Recipients
- Action
- Client IP