1

Topic: Sender depentent relay host - with auth

Hi,
How do I set up a sender depentent relay host if the relay has SMTP AUTH?
I checked this article:

https://docs.iredmail.org/relayhost.html

I use the MariaDB backend and I executed the queries in the docs.
However, it does not seems to pickup the credentials that I have configured in sasl_password.

As far as I can understand, I have to refer the credentials somehow in the database?

I found this:
https://gist.github.com/zmwangx/2c56aa32be68daf48c2f

But I think it does not really apply to iRedmail, since the sender_dependent_relayhost_maps is located in the database.

Am I wrong?

----

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

2

Re: Sender depentent relay host - with auth

Hi again,

Ofcourse, the reason it failed was because I just was wrong.

MariaDB [vmail]> select * from sender_relayhost;         
+----+---------------------+-------------------------+
| id | account             | relayhost               |  
+----+---------------------+-------------------------+ 
|  1 | postmaster@domain.se | [relay.domain.email]:587
+----+---------------------+-------------------------+                                   

Then I realized that I just have to do as usual when routing emails via other providers.

[relay.domain.email]:587    relay@domain.se:password

3

Re: Sender depentent relay host - with auth

Did you solve the issue now?
You still need to add the credentials in the file specified in "smtp_sasl_password_maps" parameter.

4

Re: Sender depentent relay host - with auth

ZhangHuangbin wrote:

Did you solve the issue now?
You still need to add the credentials in the file specified in "smtp_sasl_password_maps" parameter.

I solved my issue yes!
Sender_dependent_relayhosts is just defined in the database,  smile