1

Topic: Easiest way to forward administrative addresses

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====

What is the easiest way to forward administrative addresses (postmaster, dmarc, for example)? Would the "Set mail forwarding with SQL command line” document apply to a non-Pro iRedMail installation?

Thanks!

----

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

2

Re: Easiest way to forward administrative addresses

Fastidious wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====

What is the easiest way to forward administrative addresses (postmaster, dmarc, for example)? Would the "Set mail forwarding with SQL command line” document apply to a non-Pro iRedMail installation?

Thanks!

Hi,

I use free iRedMail. All user has a backup account. I use forwarding SQL to do that, but I write the SQL command from excel formulas, paste the result into putty terminal. For inspection, I use HeidiSQL with proxy connection from putty. I am sure some of SQL command work directly from HeidiSQL, but account creation need to build password that cannot done inside HeidiSQL.

All still great and pleasure work.

Regards,

3

Re: Easiest way to forward administrative addresses

ralfino wrote:

[…]I use forwarding SQL to do that […]

Hi there, thanks for your reply. So, to summarise, use the document I referred to, correct? Thanks!

4

Re: Easiest way to forward administrative addresses

Just as a follow up. Yes, the document at https://docs.iredmail.org/sql.user.mail.forwarding.html worked perfectly.

5

Re: Easiest way to forward administrative addresses

Related to this. Is there a way to forward (as I am already doing) and delete?

6

Re: Easiest way to forward administrative addresses

I am not sure if a more elegant solution exist, but I have managed to expunge mail from mailbox using doveadm on crontab, like so:

@daily doveadm expunge -u postmaster@example.com mailbox '*' before 2d

7

Re: Easiest way to forward administrative addresses

"doveadm expunge" might be the best option. smile