• Bewerte uns auf OMR Reviews: Klick

  • NSP Forum als App inkl. Push Nachrichten (iOS): Klick

  • Wichtige Information für alle, die noch nicht auf v14.0.5.39 sind:

    Cyren Antimalware kann nicht mehr verwendet werden. Unsere Lizenz ist endgültig deaktiviert, so dass der Dienst nicht mehr nutzbar ist.
    Bitte stellt sicher, dass ihr schnellstmöglich auf die aktuelle Version aktualisiert. Bis es so weit ist, empfehlen wir die Cyren Antimalware Aktion zu deaktivieren und mindestens den lokalen Virenscanner zu aktivieren. Sollte kein anderer Scanner als Cyren aktiv sein, kommt es unweigerlich zur Abweisung von E-Mails.

    Zusätzlich raten wir dazu, die Cyren Filter zu deaktivieren, hier ist der Einfluss zwar geringer, solange alle anderen Filter korrekt durchlaufen, aber im Problemfall kommt es ebenfalls zur Abweisung.

     

    Unser Blogbeitrag wird in Kürze ebenfalls aktualisiert.

    Beste Grüße
    Euer NoSpamProxy Team

  • Achtet bitte in den Beiträgen darauf, dass ihr keine Informationen teilt, die der DSGVO unterliegen können. Verpixelt bitte die entsprechenden Stellen in Screenshots, postet hier auf keinen Fall Messagatracks ohne Rücksprache und auch in den Log Files können persönliche oder sensible Daten enthalten sein.

    Macht uns auch bitte per PN darauf aufmerksam wenn ihr etwas seht. Schreibt mich (@sören) einfach direkt an. 

automatische Spam Report

Guten Morgen zusammen,

Kunde hatte die Anfrage gestellt,ob man nicht jeden Montag früh einen Spamreport vom NSP erhalten kann.
Bisher klicke ich mich bei Bedarf durch die Nachrichtenverfolgung:
- Zeitraum festlegen
- Status: alle, bis auf "erfolgreich"
-> Export in CSV

Das Ganze wird dann optisch ein wenig aufbereitet und dem Kunden zur Prüfung via PDF übermittelt.

Wie kann man solche Berichte automatisiert an bestimmte externe + interne Empfänger zustellen lassen?


Danke uind Grüße
Erik
 
[quote='Erik_Nüßle_|]
Guten Morgen zusammen,

Kunde hatte die Anfrage gestellt,ob man nicht jeden Montag früh einen Spamreport vom NSP erhalten kann.
Bisher klicke ich mich bei Bedarf durch die Nachrichtenverfolgung:
- Zeitraum festlegen
- Status: alle, bis auf "erfolgreich"
-> Export in CSV

Das Ganze wird dann optisch ein wenig aufbereitet und dem Kunden zur Prüfung via PDF übermittelt.

Wie kann man solche Berichte automatisiert an bestimmte externe + interne Empfänger zustellen lassen?


Danke uind Grüße
Erik
[/quote]

Hallo Erik,

ja das geht, wir bieten auf Github [klick mich] unterschiedliche Reports an:

[font=-apple-system, BlinkMacSystemFont,]Get-RejectionReport (Database)[/font]

und 

[font=-apple-system, BlinkMacSystemFont,]Send-BlockReportToUsers[/font]

Diese Skripte richtest du ein und nutzt den Windows Task Scheduler um dann zum Beispiel jeden Montag um 00:00:01 einen automatischen Report zu senden ;) 

Im Task Scheduler legst du unter Program dies fest:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

und unter Comand:

-Command "& '[C:\install\database\Get-RejectionReport.ps1]' -SMTPHost [IP des Mailhost] -ReportRecipient [mail@mail.de] -ReportSender [[font=Tahoma, Verdana, Arial, sans-serif]mail@mail.de][/font] -NumberOfDaysToReport 7 -SqlServer [host\datenbank]"

Im Reiter General setzt du noch den Haken, dass das Sktipt auch ausgeführt werden soll, wenn der User auch nicht eingeloggt ist.

Natürlich würde ich dir erst einmal empfehlen, dass du die Skripte per Powershell einmal absetzt und schaust, ob diese auch erfolgreich gelaufen sind.
 
danke für die schnelle Antwort. Für den RejectionReport habe ich folgendes durchgeführt:
* alle Dateien in einem Ordner abgespeichert
* anhand der erfolderichen Befehlen die Eingabe vorbereitet
* Powershell als Admin gestartet und die ps1 Datei zum Ausführen entsperrt via Unblock-File (wird sonst durch die ExecutionPolicy verhindert)
* im Powershell zum Speicherort der runtergeladenen Dateien navigiert und diesen Befehl ausgeführt:
.\Get-RejectionReport.ps1 -SMTPHost [Name vom NSP] -ReportRecipient [meine Mail-Adresse] -ReportSender [Mail-Adresse NSP]

Habe sämtliche Varianten der einzelnen Variablen probiert, auch die Optionalen. Erhalte aber immer diese Fehlermeldung:

****
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:148 char:21
+ Sign up
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:175 char:190
+ ... ata-ga-click="(Logged out) Header, go to Features">Features <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:175 char:261
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:188 char:255
+ ... ogged out) Header, go to Customer stories">Customer stories <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:188 char:326
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:189 char:231
+ ... ata-ga-click="(Logged out) Header, go to Security">Security <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:189 char:302
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:212 char:222
+ ... a-click="(Logged out) Header, go to Explore">Explore GitHub <span cla ...
+ ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:212 char:293
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:215 char:107
+ ... text-normal text-mono f5 mb-2 border-lg-top pt-lg-3">Learn &amp; con ...
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: :)) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed
****

Ich hoffe mal, der NSP kann sich selber als SMTP-Host verwenden.

Danke und Grüße
Erik
 
[quote='Erik_Nüßle_|]
danke für die schnelle Antwort. Für den RejectionReport habe ich folgendes durchgeführt:
* alle Dateien in einem Ordner abgespeichert
* anhand der erfolderichen Befehlen die Eingabe vorbereitet
* Powershell als Admin gestartet und die ps1 Datei zum Ausführen entsperrt via Unblock-File (wird sonst durch die ExecutionPolicy verhindert)
* im Powershell zum Speicherort der runtergeladenen Dateien navigiert und diesen Befehl ausgeführt:
.\Get-RejectionReport.ps1 -SMTPHost [Name vom NSP] -ReportRecipient [meine Mail-Adresse] -ReportSender [Mail-Adresse NSP]

Habe sämtliche Varianten der einzelnen Variablen probiert, auch die Optionalen. Erhalte aber immer diese Fehlermeldung:

****
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:148 char:21
+                Sign&nbsp;up
+                    ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:175 char:190
+ ... ata-ga-click="(Logged out) Header, go to Features">Features <span cla ...
+                                                                ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:175 char:261
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
+                                                                ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:188 char:255
+ ... ogged out) Header, go to Customer stories">Customer stories <span cla ...
+                                                                ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:188 char:326
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
+                                                                ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:189 char:231
+ ... ata-ga-click="(Logged out) Header, go to Security">Security <span cla ...
+                                                                ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:189 char:302
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
+                                                                ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:212 char:222
+ ... a-click="(Logged out) Header, go to Explore">Explore GitHub <span cla ...
+                                                                ~
The '<' operator is reserved for future use.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:212 char:293
+ ... ="Bump-link-symbol float-right text-normal text-gray-light">&rarr;</s ...
+                                                                ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Data\NoSpamProxy\reports\Get-RejectionReport.ps1:215 char:107
+ ...  text-normal text-mono f5 mb-2 border-lg-top pt-lg-3">Learn &amp; con ...
+                                                                ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: :)) [], ParseException
    + FullyQualifiedErrorId : AmpersandNotAllowed
****

Ich hoffe mal, der NSP kann sich selber als SMTP-Host verwenden.

Danke und Grüße
Erik
[/quote]

Moin Erik,

in der Regel ist ja das System von dem man das Skript absetzt ja nur die Intranetrolle, diese hat keinen SMTP Dienst. Wenn auf der gleichen Maschine auch eine Gatewayrolle installiert ist, dann musst du im NSP die 127.0.0.1 als eigenen Mailserver eintragen ;) 

Viele Grüße

Sören
 
Zurück
Oben