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 2017-08-22 10:44:48

GauravKumar
Member
Registered: 2017-05-26

Coudn't send mail directly or through scheduler.

Hi Team,
            I am using ReportServer in UAT environment. Used the same configuration as in DEV Environment but couldn't send mail directly or through scheduler.
           Also note I am able to send the activation mail to the concerned users succesfully.
Following is my mail.cf file:


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <smtp>
      <host>*.*.*.*</host>     <!------ this is my SMTP IP Address ----->
      <port>25</port>
      <!--<username>rs@datenwerke.net</username>
      <password></password>
      -->
      <ssl>false</ssl>
      <tls>
         <enable>false</enable>
         <require>false</require>
      </tls>
   </smtp>
   <mail>
      <sender>kumargaurav.jagannath@rblbank.com</sender>
      <forceSender>false</forceSender>
      <encryptionPolicy>allow_mixed</encryptionPolicy>
   </mail>
</configuration>






The following error pops in the scheduler :

java.lang.RuntimeException: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay

    at net.datenwerke.rs.scheduler.service.scheduler.mail.MailReportAction$1.handleException(MailReportAction.java:133)
    at net.datenwerke.rs.core.service.mail.MailServiceImpl.sendMailSync(MailServiceImpl.java:243)
    at net.datenwerke.rs.scheduler.service.scheduler.mail.MailReportAction.doExecute(MailReportAction.java:124)
    at net.datenwerke.scheduler.service.scheduler.entities.AbstractAction.execute(AbstractAction.java:59)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.executeAction(SchedulerTask.java:495)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.executeActions(SchedulerTask.java:385)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.safeCall(SchedulerTask.java:209)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.call(SchedulerTask.java:101)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.call(SchedulerTask.java:1)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
Caused by: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay

    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)
    ... 11 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay

    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1724)
    ... 15 more

Offline

#2 2017-08-23 08:00:27

jalbrecht
Administrator
Registered: 2016-10-21

Re: Coudn't send mail directly or through scheduler.

Hi Gaurav,

just to get it right:
- the scheduler functionality works in the DEV environment
- the mail.cf in the post is the mail.cf from your DEV Environment
- the mail.cf in the post is reused in the UAT environment
- the scheduler functionality does not work in the UAT environment

Is that correct ?

wbr jan

Offline

#3 2017-08-23 11:18:31

GauravKumar
Member
Registered: 2017-05-26

Re: Coudn't send mail directly or through scheduler.

- yes
- yes
- yes
- yes
scheduler is working fine i guess , its just that mail service which is not working directly or through scheduler

Offline

#4 2017-08-28 12:10:51

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Coudn't send mail directly or through scheduler.

Hi Gaurav,

something is strange with your mail.cf file:

<host>*.*.*.*</host>     <!------ this is my SMTP IP Address ----->
      <port>25</port>
      <!--<username>rs@datenwerke.net</username>
      <password></password>
      -->

Your SMTP IP Address is *.*.*.* ? I don't quite understand this. For testing, first try with a mail server like gmail, so you can check if there is something with this. Your host should be something like mail.datenwerke.net.
You also don't have a username and password for your mail server. These are empty and commented out.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB