1

Topic: Recipient dependent relay host

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

Hi,

I would like to send some emails with a relay host, depending on the recipient email.
For example, every @hotmail.com or @outlook.com would go through smtp.provider.com, the rest can be send directly through iRedmail server.

Is it possible to do that?
Is it supported with the Pro version?

Thanks...

----

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

2

Re: Recipient dependent relay host

there is a guide in the doc for that

3

Re: Recipient dependent relay host

Are you refering to "docs.iredmail.org/relayhost.html" and "docs.iredmail.org/per-account.transport.html" ?

If yes, then I dont want to do that. As far as I understand the doc, it uses a relay based on the iredmail sender email or the sender email domain. Unless I misunderstand or missed something.

For some accounts, I want to send emails to a specific relay based on the recipient domain outside of iRedmail. When a iredmail sender email account send an email to a gmail.com address, I want iredmail to relay through smtp.provider.A.com. When a iredmail sender email account send an email to an outlook.com address I want iredmail to relay though smtp.provider.B.com, and so on...

Thanks...

4

Re: Recipient dependent relay host

it is in transport maps, so you can map a whole domain to an external relay

https://www.postfix.org/transport.5.html