1

Topic: Active directory auth working but user unkown issue.

- iRedMail version 1.5.1

Hi, I have followed the "Integrate Microsoft Active Directory for user authentication" and authentication works ok.

- Sending emails works with no issue at all.

- Receiving emails gets a 550 error 5.1.1 Recipient address rejected: User Unknown.

The Ad server domain is: example.com

The iredmail domain is: mail.example.com

So incoming emails look like   user@mail.example.com and maybe that's why it gives the user unkown error. But I can't figure out a solution to this.

----

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

2

Re: Active directory auth working but user unkown issue.

Try using address masquerading

/etc/postfix/main.cf:
    masquerade_domains = example.com

    masquerade_classes = envelope_sender, envelope_recipient,
        header_sender, header_recipient

Be careful though, a gateway mail system may no longer know where to deliver a message that was originally addressed to user@foo.example.com once it has been rewritten as user@example.com

Read here for more info: http://www.postfix.org/ADDRESS_REWRITIN … masquerade

3

Re: Active directory auth working but user unkown issue.

Thanks for your tip but I already tried that with no success.

The mail log looks like this (masquerading makes no effect):

13:56:35 linux postfix/smtpd[2456]: NOQUEUE: reject: RCPT from unknown[172.26.0.139]: 550 5.1.1 <user@mail.example.com>: Recipient address rejected: User unknown; from=<xxxxx> to=<user@mail.example.com> proto=ESMTP helo=<xxxx>




Try using address masquerading

/etc/postfix/main.cf:
    masquerade_domains = example.com

    masquerade_classes = envelope_sender, envelope_recipient,
        header_sender, header_recipient

Be careful though, a gateway mail system may no longer know where to deliver a message that was originally addressed to user@foo.example.com once it has been rewritten as user@example.com

4

Re: Active directory auth working but user unkown issue.

I think your problem has been encountered before: https://forum.iredmail.org/topic15548-e … ation.html

5 (edited by laboratorio 2022-02-17 22:28:25)

Re: Active directory auth working but user unkown issue.

Thanks, that point me into the right direction.



thedethwalker wrote:

I think your problem has been encountered before: https://forum.iredmail.org/topic15548-e … ation.html