1

Topic: Relayhost per domain

==== Required information ====
- iRedMail version (check /etc/iredmail-release):

iRedMail     v0.9.7
iRedAdmin-Pro     v2.8.0 (MySQL)

- Linux/BSD distribution name and version: Debian
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

We try to use a smtp relay host (mailjet) per domain and we have the following error :

(SASL authentication failed; cannot authenticate to server in-v3.mailjet.com[5.196.43.135]: no mechanism available)

The iredmail version purchased is the latest.

We add the relay host to the domain with the iredadmin panel

[in-v3.mailjet.com]:587

in postfix/main.cf we add :

#sender dependent relay host
smtp_sender_dependent_authentication = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = login
smtp_sasl_security_options = noanonymous

We create the sasl_passwd (example) :

@domain.com aaaaaaaa:aaaaaaaa

And we did :

/usr/sbin/postmap hash:/etc/postfix/sasl/sasl_passwd
service postfix restart

Any idea ?

Thanks

----

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

2 (edited by rflorent 2017-12-03 18:23:28)

Re: Relayhost per domain

The iredmail docs for sender relay is quite ambiguous :

https://docs.iredmail.org/relayhost.html#sender-dependent-relay-host

Do we need to do only this part, or also settings in global relay host part ?

Then add smtp username and password in file /etc/password/sasl_password like below:

user@domain.com smtp_user:smtp_password

Don't forget to run postmap hash:/etc/postfix/sasl_password after modified this file.

Why there is two different files ? /etc/password/sasl_password and /etc/postfix/sasl_password ? mistake ?

None of this possibilities works.

Thanks

3

Re: Relayhost per domain

Package debian libsasl2-modules was missing obviously.

sudo apt-get install libsasl2-modules

It's all good now.
Hope it's will help someone !

The docs should talk about this.

4

Re: Relayhost per domain

rflorent wrote:

Package debian libsasl2-modules was missing obviously.

This should be added by iRedMail by default.

Anyway, i added this package in iRedMail installer moment ago, hope no more similar error in new iRedMail installation.