"Accept unknown recipients" does not work

Hi all, after struggling for days with setting the option “Accept unknown recipients” I want to ask for advice here before I finally decide to quit NS8.
I know to turn off “Add user address from user domain” so I am doing that. After this according to the documentation you can designate a user or an administrator or a mailbox where the mail for unknown users should go. However, this does not work at all. I think I have started over 15 times with a fresh NS8 vm but no success.

In another post about this problem I saw a reference to “GitHub - NethServer/ns8-mail: NS8 Mail module with SMTP, IMAP, Spam/Virus filter.
After entering the command mentioned there “podman exec -ti postfix postconf -n” you get the following response: “Error: no container with name or ID “postfix” found: no such container” so now I am at the end of my possibilities.

Does anyone from the developers or super users have a working solution for this? I would be very happy with it because then we can also initiate the switch from NS7. However, a catch-all is essntional for how we work at our small non-profit organization.
If there is no solution to this problem we will have to continue working with NS7.

There is another, possibly related problem. If you turn off “Add user address from user domain” you can no longer install Roundcube on that domain. That is not very convenient either.

I hope someone has the solution and would like to say thank you in advance if you look into it.

Kind regards, Lisa

1 Like

Good morning and welcome to the Nethserver Forum. Is it the same problem as described here?

Regards…

Uwe

2 Likes

It’s listed as a migration limitation in the documentation so it may be not supported, see also NethServer 7 migration — NS8 documentation
It seems “Accept unknown recipients” in NS8 is used for example for mail domain migration scenarios to still get mails of the old domain, see also Mail — NS8 documentation

There’s a command missing in the documentation.

NS8 uses podman which provides rootless containers running in user environments, so to enter the user environment for the app instance “mail1” you need to run

runagent -m mail1

first. Now the other commands should work.

NS8 postfix uses sqlite, see also ns8-mail/postfix at main · NethServer/ns8-mail · GitHub :

virtual_alias_maps = sqlite:$meta_directory/aliases.cf, sqlite:$meta_directory/wildcards.cf, , ldap:$meta_directory/ldest.cf, sqlite:$meta_directory/userforwards.cf, inline:{{@ns8test.com=@ad.ns8test.com}}

My idea was to insert a catch all entry in the destmap table but without success and I couldn’t list the addresses in the UI anymore.

Enter sqlite:

podman exec -ti postfix sqlite3 /srv/pcdb.sqlite

Insert catchall (DOESN’T WORK, just to get the idea):

INSERT INTO destmap (alocal,domain,dest) VALUES('','ns8test.com','catch-all@ns8test.com');
1 Like

Thank you. Yes it is the same problem.

@mrmarkuz, with all due respect, you sprinkle terminal codes but also say “ DOESN’T WORK” so at this point I don’t know if a catch all is possible or not.

Can you please say it in plain English yes or no ?

Kind regards, Lisa

It seems not supported but it’s just postfix so maybe it could be customized to provide a catchall mail address.
I thought you wanted to customize it as you asked about the commands so I just wanted to give an idea or a starting point.

Sorry, I can’t give a clear answer here.
@davidep @stephdl is it still possible in NS8 to use a catchall address in a mail domain that includes users?

I’m sorry it is not possible.

A domain without users has a complete list of valid addresses, known by Postfix DB, so it can reliably route unknown addresses to the catchall one.

Postfix does not directly connect to LDAP where users are listed. Without a complete list of available mailboxes it doesn’t know if an address corresponds to a user. Hence it cannot route the message to the catchall reliably.

To overcome this known limitation we have to schedule a new feature in future milestones.

Card NethServer · GitHub

4 Likes

That’s too bad. Fortunately, it can be done in postfix in Nethserver 7 so we will keep using that for now anyway.

Thank you all for your thoughts and responses.

Kind regards, Lisa

1 Like