1 (edited by doekia 2024-06-20 00:53:10)

Topic: exclude per domain relay when recipient domain matches sender domain

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- version 1.6.8
- downloadable installer
- Debian 12
- Store mail accounts in MySQL
- Apache2
- Manage mail accounts with iRedAdmin-Pro? NO
====
Hi,

When using the  sender_dependant_relayhost_maps (transport_maps_domain.cf) I have a relay for domain alice.com.
This works fine.
However the 3rd party relay (for security reason) refuse mails that have the same domain as recipient and sender:
alice@alice.com -> someone@example.com WORKS
alice@alice.com -> bob@alice.com REJECTED

How to I exclude relaying when recipient is from any of my virtual email domain.
I have try to add local: or :  as a transport filter transport_maps but to no avail;

Please advise

Thanks for your responses

----

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