Topic: Relaying problem for unknown users on iredmail
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: CENTOS 7
- 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.
Hi, I've been using iRedMail Pro for a while now for various domains but now i'm running into a bit of an issue when trying to add another domain name as the iRedMail server isn't the only server containing mailboxes for this domain name.
Let me try to explain the situation.
On the front end we are using EFA (Mail Scanner), for the domain domainname.com emails are then being routed to our MS Exchange server which check if the mailbox is present, if not there is a send connector which send the email to our SuSe open exchange postfix mail server and iRedmail. The goal is to move away from the SuSe postfix server and migrate them all to iRedMail, however the MS Exchange server will still remain.
For a user on SuSe to be able to send emails to a mailbox on Exchange we had to create every single mailbox present on the MS Exchange server on the SuSe and make a manual rule on the dummy mailbox to forward emails to a domain name only present on the MS Exchange server. I'm hoping I can come up with a solution on how to avoid having all my Exchange users also on iRedadmin and then do manual forwarding to exchange again.
There are a few scenarios that should work.
1. Mail from external
2. Mail from MS Exchange to iRedMail + SuSe
3. Mail from a mailbox on Suse --> mailbox on iRedMail
4. Mail from a mailbox on iRedMail to MS Exchange + SuSe
Scenario 1 and 2 are working due to the send connector on Exchange.
Scenario 3 i'm don't care too much about because this will only be temporary.
Scenario 4 will be very important and is what i'm currently trying to resolve.
When I send an email now from a mailbox on iredmail to a user on exchange i get the error message:
Recipient address rejected: User unknown in virtual mailbox table which makes sense because this user doesn't exist on iredmail. So I've been doing some searching on the forum and found some posts with similar issues.
I've tried to use the relay feature on domain level by relaying received emails back to EFA by using smtp:[example.com]:25
I still get the same error message, user unknown in virtual mailbox table. When I enable the checkbox relay without verifying local recipients I cannot login with any user for this domain on the webmail or connect to this mailbox with outlook.
Anyone has any suggestions on how to find a solution for this?
I know i can simply create every single user that I have on exchange on iredmail and do relaying on a user level, this works.
However I want to avoid creating over 200 dummy mailboxes just for forwarding purposes if in any way possible.