1

Topic: 1.0 Catch all not working Ubuntu 18.04

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

I've spent the past 15 hours testing (what I feel like) to be every variable for the SQL Catch All query.
Listed below is the example query going into "USE vmail;"

"INSERT INTO forwardings (address, forwarding, domain, dest_domain)
                      VALUES ('domain.com', 'dest@example.com', 'domain.com', 'example.com');"
                                     
My error log in (var/log/maillog) shows the following result:

"Dec 10 12:50:46 mail postfix/smtpd[8240]: NOQUEUE: reject: RCPT from mail-pg1-f195.google.com[209.85.215.195]: 554 5.7.1 <test2@mydomain.com>: Recipient address rejected: Unknown user; from=<user@gmail.com> to=<test2@mydomain.com> proto=ESMTP helo=<mail-pg1-f195.google.com>"

Once again I am using the new stable release on ubuntu 18.04 my mail incoming/receiving & forwarding is working, filters working, queries for making rules are working everything is good except this single issue I'm having.

I feel stuck, all help is appreciated. Thank you.

----

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

2

Re: 1.0 Catch all not working Ubuntu 18.04

Tested locally and it works for me.

- Does it work if you send from your own webmail?
- Did you upgrade from an old iRedMail release? or this is a fresh installation?

3

Re: 1.0 Catch all not working Ubuntu 18.04

Hello Zhang thank you for the reply.

Yes I can send from webmail.
This is a fresh install.

When I send from gmail I was getting message back error:
"554 5.7.1 <example@domain.com>: Recipient address rejected: Unknown user "

So I went into (postfix/main.cf) and whitelisted *@gmail.com now the result is:
"550 5.1.1 <example@domain.com>: Recipient address rejected: User unknown in local recipient table "

Do I have to configure virtual_mailbox/domain settings here?
                                                                               
I got it to work, but not the way I think you intended.

Only after I manually made the "user@domain.com" would the sql query work to forward, but not working as a catch all.

But it's requiring the recipient address to be made before the mail will come into the local machine. I cannot send mail to "anything@mydomain.com" or else I get the above errors.

Thank you again Zhang!

4

Re: 1.0 Catch all not working Ubuntu 18.04

Confirmed it's a bug of iRedMail-1.0 (not affect earlier iRedMail releases, or the iRedMail Easy platform).
Fix it by appending lines below in /etc/dovecot/dovecot.conf, inside the "plugin {}" block like below:

plugin {
    ...
    # Used by quota-status service.
    quota_status_success = DUNNO
    quota_status_nouser = DUNNO
    quota_status_overquota = "552 5.2.2 Mailbox is full"
    ...
}

Then restart Dovecot service.

iRedMail-1.0 has been repacked with this fix. Sorry about this issue. And thanks very much for the feedback. smile

5 (edited by kawasakiguy 2019-12-11 16:59:47)

Re: 1.0 Catch all not working Ubuntu 18.04

Zhang I got you a coffee earlier but I dont think $5 is enough xD

Fixed, thank you man!

6

Re: 1.0 Catch all not working Ubuntu 18.04

Thank you for the coffee and feedback. smile