How can i configuring another Server to relay emails using MIAB

I have a kvm on which I have installed proxmox.
I then created a container and installed MiaB.
so far everything goes great.

I want to relay emails from Proxmox using MIAB SMTP.

Configure Postfix
nano /etc/postfix/main.cf

Added the following lines
relayhost = [box.example.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes

After that I created
nano /etc/postfix/sasl_passwd

Added
[box.example.com]:587 USERNAME@example.com:PASSWORD

Fixed the permission and updated postfix config to use sasl_passwd file:
sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd

Reloaded the postfix
sudo /etc/init.d/postfix reload

Is there any step I missed?

Note: - I’m still using self generated ssl certificate by MIAB.
Do I need to get SSL certificate to resolve this issue?

this is the official instruction

https://mailinabox.email/advanced-configuration.html

Where does it go wrong? You have to send the email with username/password on the client (Proxmus)

I assume since you are asking that it doesn’t work?

What happens when you send an email?
What do the mail logs on both ends say?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.