1

Topic: create mailing lists works sending mail gives "user unknown"

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

Hello, I want to use the Mailing list functionality of my Iredmail server but get a error when sending to the maillist.

I have created a maillist and checked with the pyton3:
python3 maillist_admin.py has_subscriber tt@domain.com test@domain.com
Result: Yes

So in the database a everyting seems allright.

The problem I get is when I send an email to the mailing list, I receive from the mail delivery susyem of Iredmail server that the user ( tt@domain.com) is unknown:

                   The mail system

<tt@domain.com>: user unknown

Has someone got this problem before and help me with this?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team.

2

Re: create mailing lists works sending mail gives "user unknown"

Can you see this member in mailing list profile page with iRedAdmin-Pro?

3 (edited by t.kruse 2022-04-15 22:29:03)

Re: create mailing lists works sending mail gives "user unknown"

Yes I can see the member, see screenshot:

Post's attachments

Schermafbeelding 2022-04-15 162636.jpg 139.69 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

4

Re: create mailing lists works sending mail gives "user unknown"

Seems you missed something in Postfix configuration.
Could you please show me output of command below?

postconf transport_maps

5

Re: create mailing lists works sending mail gives "user unknown"

@ZhangHuangbin
The output is from the following command is:

[root@iredmail ~]# postconf transport_maps
transport_maps = hash:/etc/postfix/transport

The file is present and looks correct. Should there be some specific config in the file?

6

Re: create mailing lists works sending mail gives "user unknown"

Your configuration is wrong. We have 3 SQL lookups in transport_maps, check our default configuration here:
https://github.com/iredmail/iRedMail/bl … f.mysql#L4

Did you have a backup copy of main.cf under /etc/postfix/?

7

Re: create mailing lists works sending mail gives "user unknown"

@ZhangHuangbin

Thanks for the info, I check my main.cf and I noticed that I did not have this code in the file:

transport_maps =
    proxy:mysql:PH_POSTFIX_LOOKUP_DIR/transport_maps_user.cf
    proxy:mysql:PH_POSTFIX_LOOKUP_DIR/transport_maps_maillist.cf
    proxy:mysql:PH_POSTFIX_LOOKUP_DIR/transport_maps_domain.cf

So placed it there with the correct DIR location and the "postconf transport_maps" command also gave me now 3 SQL lookups.

Strage that I completely missed the transport_maps code part...

Thanks for you help,