1

Topic: Default address for invalid email address for the domain

How can a default address (address to receive all mail) be configured to receive any mail with an invalid email address for the domain?

iredmail on ubuntu server 20.04.

----

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

2 (edited by iwcom 2021-01-20 02:49:16)

Re: Default address for invalid email address for the domain

I saw the article below, but I need to forward mail from all non-existent addresses of a specific domain.
https://docs.iredmail.org/user.alias.address.html

I have ideas but haven't tried them yet. tell me how to do it

USE vmail;
INSERT INTO forwardings (address, forwarding,
                              domain, dest_domain,
                              is_alias, active)
                      VALUES ('*@domain.com', 'my@domain.com',
                              'domain.com', 'domain.com',
                              1, 1);

OR:

INSERT INTO forwardings (address, forwarding,
                              domain, dest_domain,
                              is_alias, active)
                      VALUES ('*', 'my@domain.com',
                              'domain.com', 'domain.com',
                              1, 1);

but in order not to affect the existing addresses

3

Re: Default address for invalid email address for the domain

Hi, I think you need catch all rather than alias, check the link below, it works fine for me:
https://docs.iredmail.org/sql.create.catch-all.html

4

Re: Default address for invalid email address for the domain

thanks a lot, it works