ON-PREM: Mail server configuration

I followed the installation instructions for Proof-of-Concept Installation and cant configure smtp server. Sent emails are not displayed in mailhog web interface.

My settings

    mail {
        outgoing {
            enabled = enable

            fromAddress = "space@example.com"
            host = "mailhog"
            port = 1025
            protocol = "SMTP"
            login = "space"
            password = "space"
            messageQueuePrefix = "mailQueue"

            aggregationDelaySecs = 900
            rateLimitPerSecond = 3
        }
    }
7 comments
Comment actions Permalink

Ushatpomoyev, please change the config to the following:

    mail {
        outgoing {
          enabled = true
...

There's a mistake in the documentation, we'll fix it soon. Sorry for that.

3
Comment actions Permalink

Thanks, it works now

0
Comment actions Permalink

Pavel Boger I have edited my real smtp server like this. But still not receiving the mails, can you please check this.
My mail server is mail.aimway.de
and user is space@aimway.de
SMTP Port:25

    mail {

        outgoing {

            enabled = true

 

            // SMTP settings

            fromAddress = "space@aimway.de"

            host = "aimway.de"

            port = 25

            protocol = "SMTP"

            login = "space"

            password = "*********"

            messageQueuePrefix = "mailQueue"

 

            // handling properties

            aggregationDelaySecs = 900

            rateLimitPerSecond = 3

        }

    }

0
Comment actions Permalink

Nofilter Bol, may I ask if you see any errors in the main Space container when the email is supposed to be sent? By the way, what is exact email you expect?

0
Comment actions Permalink

I expect an invitation email, I invited some users (my team members). How can i see the errors ?
Thanks for your response.

0
Comment actions Permalink

Nofilter Bol, the Docker Compose installation should produce logs directly in the terminal it's been started from. Please send an invitation once again and check if the main Space container throws any exceptions to the logs.

0
Comment actions Permalink

You may use third party SMTP Server to send mails. I have used https://www.sendinblue.com free service, you may use whatever works best for you. It worked for me. Make sure to update port in docker-compose.yml file like below.

mailhog:
image: mailhog/mailhog
ports:
- 1025:587 # SMTP server port
- 8025:465 # UI port

then Edit space.on-premises.conf file like this.

mail {
outgoing {
enabled = true

// SMTP settings
fromAddress = "space@repo.example.com"
host = "smtp-relay.sendinblue.com"
port = 587
protocol = "SMTP"
login = "smtp_user_id"
password = "smtp_password"
messageQueuePrefix = "mailQueue"

// handling properties
aggregationDelaySecs = 900
rateLimitPerSecond = 3
}
}
1

Please sign in to leave a comment.