1 (edited by drlogout 2018-04-23 16:31:39)

Topic: catchall forwarding

======== Required information ====
- iRedMail version (0.9.8 MYSQL edition):
- Linux/BSD distribution name and version: Ubuntu 16.04.4 LTS
- Store mail accounts in which backend (MySQL):
- Web server (Nginx):
- Manage mail accounts with iRedAdmin-Pro? No
====

I have created a domain with no mailbox: mydomain.com

For this domain I have one catchall forwarding to tech@myotherdomain.com

tech@myotherdomain.com is a mailbox, and there are 3 forwardings:

alice@myotherdomain.com
bob@myotherdomain.com
john@gmail.com

If I send a mail to e.g. info@mydomain.com only john@gmail.com gets the mail.

But when I send a mail to tech@myotherdomain.com directly every 3 will receive the mail.


I created the forwardings according to the docs:

https://docs.iredmail.org/sql.create.catch-all.html
https://docs.iredmail.org/sql.user.mail.forwarding.html

Does anyone know what might going on here?

Thanks
Chris

----

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

2

Re: catchall forwarding

Show us output of SQL commands below:

SELECT * FROM forwardings WHERE domain='mydomain.com';
SELECT * FROM forwardings WHERE address='tech@myotherdomain.com';

3 (edited by drlogout 2018-04-25 19:13:42)

Re: catchall forwarding

SELECT * FROM forwardings WHERE domain=''mydomain.com';

+-----+----------+----------------+----------+-------------+-------------+---------+---------------+----------+--------+
| id  | address | forwarding | domain | dest_domain | is_maillist | is_list | is_forwarding | is_alias | active |
+-----+----------+----------------+----------+-------------+-------------+---------+---------------+----------+--------+
| 360 | mydomain.com | tech@myotherdomain.com | mydomain.com | myotherdomain.com | 0 | 0 | 0 | 0 | 1 |
+-----+----------+----------------+----------+-------------+-------------+---------+---------------+----------+--------+

SELECT * FROM forwardings WHERE address='tech@myotherdomain.com';

+-----+----------------+---------------------+-----------+-------------+-------------+---------+---------------+----------+--------+
| id  | address | forwarding | domain | dest_domain | is_maillist | is_list | is_forwarding | is_alias | active |
+-----+----------------+---------------------+-----------+-------------+-------------+---------+---------------+----------+--------+
|355|tech@myotherdomain.com|alice@myotherdomain.com|myotherdomain.com|myotherdomain.com|0|0|1|0|1|
|354|tech@myotherdomain.com|bob@myotherdomain.com|myotherdomain.com|myotherdomain.com|0|0|1|0|1|
|356|tech@myotherdomain.com|john@gmail.com|myotherdomain.com|gmail.com|0|0|1|0|1|
|374|tech@myotherdomain.com|tech@myotherdomain.com|myotherdomain.com|myotherdomain.com|0|0|1|0|1|
+-----+----------------+---------------------+-----------+-------------+-------------+---------+---------------+----------+--------+

4

Re: catchall forwarding

SQL records seem fine. Could you please try to send a testing email, and extract all log related to your testing email from Postfix log file?

5

Re: catchall forwarding

Hi Zhang,

everything works fine! After looking for the logs I found out there are no locks, because the mx record for the domain was still pointing to the old server. Hence the gmail forwarding was working the internal not.

We moved a lot mailboxes from ISPconfig to iredMail the last days and forgot this one.

I'm so sorry bothering you.

Thanks a lot!
Chris

6

Re: catchall forwarding

drlogout wrote:

We moved a lot mailboxes from ISPconfig to iredMail the last days and forgot this one.

Would you mind sharing why you moved from ISPconfig to iRedMail?