1 (edited by Augustinermonch 2024-08-19 18:58:21)

Topic: catcall email for Iredmail

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



Hello, i hope somone can help me.

I need a Catch all email for my Domain.

I found that that on the iredmail site sql.create.catch-all.htm


Here i find the code

in SQL table "vmail.forwardings" like below:

#######
$ mysql -u root -p
sql> USE vmail;
sql> INSERT INTO forwardings (address, forwarding, domain, dest_domain)
                      VALUES ('domain.com', 'dest@example.com', 'domain.com', 'example.com');
######

unfortunately i miss some knowhow in Linux

My Question is where i can find the "vmail.forwardings"

Is this a file like /etc/postfix/main.cf or is it only a line in a Database ?

Thanks

----

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

2

Re: catcall email for Iredmail

Maybe i can help someone else

The Solution

Enter Database

mysql -u root -p

Enter password

SHOW DATABASES;
USE vmail;

SHOW TABLES;
DESC forwardings;
SELECT * from forwardings;

Insert the Catch All Acount

INSERT INTO forwardings (address, forwarding, domain, dest_domain)

->

VALUES ('domain.com', 'dest@example.com', 'domain.com', 'example.com');


If you want to delete a line

DELETE FROM forwardings

->

WHERE id = 32;

Change a line

UPDATE forwardings

->

SET forwarding = "postmaster@domain.de"

->

WHERE id = 9;