Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2016-10-31 20:19:43

bpeikes
Member
Registered: 2016-10-29

Email configuration

Here is the configuation I set up in the mail.cf file under the "File System"  Adminsitration tab:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <smtp>
        <host>mail080-1.exch080.serverdata.net</host>
                <port>465</port>
        <username>auth_user@trlm.com</username>
        <password>xxxxxxxxx</password>
        <ssl>true</ssl>
        <tls>
            <enable>false</enable>
            <require>false</require>
        </tls>
    </smtp>
    <mail>
        <sender>report_server@trlm.com</sender>
        <encryptionPolicy>allow_mixed</encryptionPolicy>
    </mail>
</configuration>

Below is the error message. We use the above settings with a .Net client and it sends emails without issue.
31-Oct-2016 16:10:56.432 WARNING [pool-4-thread-1] net.datenwerke.rs.core.service.mail.MailServiceImpl$1.run 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:58)
    at net.datenwerke.rs.core.service.mail.MailServiceImpl.sendMailSync(MailServiceImpl.java:243)
    at net.datenwerke.rs.core.service.mail.MailServiceImpl$1.run(MailServiceImpl.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1 <bpeikes@trlm.com>: Relay access denied

    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1873)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1120)
    at javax.mail.Transport.send0(Transport.java:195)
    at javax.mail.Transport.send(Transport.java:124)
    at net.datenwerke.rs.core.service.mail.MailServiceImpl.sendMailSync(MailServiceImpl.java:233)
    ... 4 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1 <bpeikes@trlm.com>: Relay access denied

    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1771)
    ... 8 more

Offline

#2 2016-11-01 18:07:52

jalbrecht
Administrator
Registered: 2016-10-21

Re: Email configuration

Hi bpeikes,

that looks odd to me, could you try this:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <smtp>
      <host>mail080-1.exch080.serverdata.net</host>
      <port>465</port>
      <username>auth_user@trlm.com</username>
-->      <password>SOME_PASSWORD</password>
      <ssl>false</ssl>
      <tls>
         <enable>false</enable>
         <require>false</require>
      </tls>
   </smtp>
   <mail>
      <sender>report_server@trlm.com</sender>
      <forceSender>false</forceSender>
      <encryptionPolicy>allow_mixed</encryptionPolicy>
   </mail>
</configuration>

after you changed the pw of course. Just to make sure  ...

wbr

Jan

Offline

#3 2016-11-03 19:51:31

bpeikes
Member
Registered: 2016-10-29

Re: Email configuration

Actually this is working now. I was editing the file in the wrong place. I was trying to directly create a file on my system at:
C:\Bitnami\reportserver-3.0.2-3\apps\reportserver\reportserver-conf\config\mail\mail.cf


I then realized that you have to use the web interface to edit the files in:
/FileServer Root/etc/mail/mail.cf

Do you know how the FileServer Root maps to the filesystem on the machine tomcat is running on?

Offline

#4 2016-11-03 20:17:23

jalbrecht
Administrator
Registered: 2016-10-21

Re: Email configuration

Hi bpeikes, it does not map to the filesystem, it's stored in the database.

wbr jan

Offline

Board footer

Powered by FluxBB