#1 2015-11-11 16:42:11

awise185
Member
Registered: 2015-11-11

Configuring SMTP Settings for custom mail server

What is the best way to configure SMTP for a custom mail server? My report server is hosted on azure but my mail server is hosted on-premises.
When trying to figure it out for myself it either gives me the message 'Mail could not be send' or it will display a 500 error.

Any help with this would be much appreciated!

Offline

#2 2015-11-11 17:23:59

awise185
Member
Registered: 2015-11-11

Re: Configuring SMTP Settings for custom mail server

I will also mention that it doesn't seem as though the mail service that came with ReportServer is listening on any active ports (i.e. 25, 465, 587). Do I need to open them somehow? When I attempt a 'telnet localhost 25' it tells me connection is refused. Same with 'telnet localhost smtp'.

Thanks

Offline

#3 2015-11-12 10:11:21

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: Configuring SMTP Settings for custom mail server

Hi,

can you check the logfiles if there is a more detailed error message? My guess would be that your mailserver is not reachable from the azure server. Did you verify this?

As for a mail service on the azure server itself: as far as I know there isn't one... But you might want to verify this with the bitnami people, who maintain the cloud images. You can contact them using the bitnami community forum at https://community.bitnami.com/c/general

Cheers,
Thorsten

Offline

#4 2015-11-12 14:08:31

awise185
Member
Registered: 2015-11-11

Re: Configuring SMTP Settings for custom mail server

WARNING: Mail could not be send
net.datenwerke.rs.core.service.mail.exceptions.MailerRuntimeException: Mail could not be send
    at net.datenwerke.rs.core.service.mail.MailServiceImpl$MailSupervisorImpl.handleException(MailServiceImpl.java:59)
    at net.datenwerke.rs.core.service.mail.MailServiceImpl.sendMailSync(MailServiceImpl.java:244)
    at net.datenwerke.rs.core.service.mail.MailServiceImpl$1.run(MailServiceImpl.java:267)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: javax.mail.AuthenticationFailedException: 535 Error: authentication failed

    at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:823)
    at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:673)
    at javax.mail.Service.connect(Service.java:317)
    at javax.mail.Service.connect(Service.java:176)
    at javax.mail.Service.connect(Service.java:125)
    at javax.mail.Transport.send0(Transport.java:194)
    at javax.mail.Transport.send(Transport.java:124)
    at net.datenwerke.rs.core.service.mail.MailServiceImpl.sendMailSync(MailServiceImpl.java:234)
    ... 4 more

Offline

#5 2015-11-12 14:24:42

awise185
Member
Registered: 2015-11-11

Re: Configuring SMTP Settings for custom mail server

Also, some/most of the logs indicate that connection times out when trying to hit our on-premises mail server through port 25.

Offline

#6 2015-11-12 14:41:04

Thorsten J. Krause
datenwerke
Registered: 2012-02-15
Website

Re: Configuring SMTP Settings for custom mail server

Hi,

I don't really see how you can get both: A rejected login and a timeout, so I guess one of the error messages must be from a previous test. Assuming the authentication failed error is the real culprit: Did you verify the settings in etc/mail/mail.cf and in particular, did you also remove the <!-- and --> marks that disable the use of the password?

Cheers,
Thorsten

Offline

#7 2015-11-12 14:44:34

awise185
Member
Registered: 2015-11-11

Re: Configuring SMTP Settings for custom mail server

Yeah the authentication error was misleading and doesn't apply here. Is there a way to send the mail locally? I am not having much luck connecting to my on-premises mail server. It is an Ubuntu 14.04 LTS Virtual Machine hosted through Azure.

Offline

#8 2015-11-12 15:10:43

awise185
Member
Registered: 2015-11-11

Re: Configuring SMTP Settings for custom mail server

I figured it out, sorry for any hassle!

Offline

Board footer

Powered by FluxBB