1

Topic: SMTP relay with authentication

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: CentOS 8, 64 bit
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- 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.
====

Hello,

How can i configure SMTP relay requires authentication for specific domain?
I am using LDAP backend.

Thank you.

----

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

2

Re: SMTP relay with authentication

bzero wrote:

How can i configure SMTP relay requires authentication for specific domain?

It's not clear what you want to achieve.

Is this tutorial helpful for you?
https://docs.iredmail.org/relayhost.html

3

Re: SMTP relay with authentication

Example, I am using SMTP service from Mailgun, and i'd like all outgoing email which are sent by iRedMail will be proceeded by Mailgun instead of sending directly from my local server.

Not sure if i could make it works for incoming email which means incoming email will be also proceeded by Mailgun and then forward to iRedMail at local server.

I am doing this cause iRedMail is installing at local network without dedicated public IP attached to iRedMail server.

Thank you.

4

Re: SMTP relay with authentication

bzero wrote:

Example, I am using SMTP service from Mailgun, and i'd like all outgoing email which are sent by iRedMail will be proceeded by Mailgun instead of sending directly from my local server.

This is what you need:
https://docs.iredmail.org/relayhost.html

5

Re: SMTP relay with authentication

Right. I can make sending work via SMTP relay. Thanks a lot.

The only thing is relay receiving emails then forward to local mail server.
How could i make it work?

Thanks again.