Automic Workload Automation

 View Only
  • 1.  Mail und SMTP Authentifizierung

    Posted Mar 22, 2017 06:51 AM
    Es gab bei einem Kunden das Problem, dass der Mail-Versand unter Verwendung unserer Skript-Funktion SEND_MAIL nicht funktionierte. Der Server verlangt antwortete immer mit:

    U00050028 SMTP-Server 'abc.company.com' hat Empfänger abgelehnt: 'sender@company.com'

    Was ist hier nötig um Mails zu senden?
    Es gibt auch spezielle MIAL-Traces, wo man die Kommunikation mit dem Mailserver sieht:
    • Am WP setzt man TCP/IP auf 7
    • Auf Windows- und Linux-Agenten gibt es einen eigenen Trace-Parameter MAIL
    Ein Beispiel:

    20170310/085204.985 - Before call ucsmtp_sendMail2
    20170310/085205.032 - SMTP recv: 220 mail1.automic.com ESMTP Ready
    20170310/085205.032 - SMTP send: EHLO vwgsupxy
    20170310/085205.032 - SMTP recv: 250-mail1.automic.com Hello vwgsup18 (192.168.123.123)
    20170310/085205.032 - SMTP recv: 250 SIZE
    20170310/085205.032 - SMTP send: MAIL FROM:<support@automic.com>
    20170310/085205.032 - SMTP recv: 250 sender ok <support@automic.com>
    20170310/085205.032 - SMTP send: RCPT TO:<jac@automic.com>
    20170310/085205.047 - SMTP recv: 250 recipient ok <xyz@automic.com>
    20170310/085205.047 - SMTP send: DATA
    20170310/085205.047 - SMTP recv: 354 send the mail data, end with .
    20170310/085205.047 - SMTP send: Date: Fri, 10 Mar 2017 08:52:04 +0100
    20170310/085205.047 - SMTP send: From: <support@automic.com>
    20170310/085205.047 - SMTP send: To: <jac@automic.com>
    20170310/085205.047 - SMTP send: Subject: Betreff
    20170310/085205.047 - SMTP send:
    20170310/085205.047 - SMTP send: Text
    20170310/085205.047 - SMTP send: .
    20170310/085205.266 - SMTP recv: 250 B58c25b250000 Message accepted for delivery
    20170310/085205.266 - SMTP send: QUIT
    20170310/085205.266 - SMTP recv: 221 mail1.automic.com closing connection
    20170310/085205.266 - After call ucsmtp_sendMail2


  • 2.  Mail und SMTP Authentifizierung

    Posted Mar 23, 2017 05:34 AM
    Noch eine Ergänzung: Die CALL Objekte werden immer über den Server geschickt.

    Und unten noch ein Beispiel einer erfolgreichen Übermittlung mit Authentifizierung. Die Zeile

    SMTP recv: 250-AUTH LOGIN

    zeigt z.B. an, welche Authentifizierung der SMTP-Server erwartet. D.h., wenn man sich nicht sicher ist, was erwartet wird, kann man es mit den oben erwähnten Trace-Flags herausfinden.

    20170321/134247.721 - Before call ucsmtp_sendMail2
    20170321/134247.723 - SMTP recv: 220 f843de531aaD.company.com Microsoft ESMTP MAIL Service ready at Tue, 21 Mar 2017 13:42:46 +0100
    20170321/134247.723 - SMTP send: EHLO s1597aeap001
    20170321/134247.724 - SMTP recv: 250-f843de531aaD.company.com Hello [12.34.56.12]
    20170321/134247.724 - SMTP recv: 250-SIZE 10485760
    20170321/134247.724 - SMTP recv: 250-PIPELINING
    20170321/134247.724 - SMTP recv: 250-DSN
    20170321/134247.724 - SMTP recv: 250-ENHANCEDSTATUSCODES
    20170321/134247.724 - SMTP recv: 250-STARTTLS
    20170321/134247.724 - SMTP recv: 250-X-ANONYMOUSTLS
    20170321/134247.724 - SMTP recv: 250-AUTH LOGIN
    20170321/134247.724 - SMTP recv: 250-X-EXPS GSSAPI NTLM
    20170321/134247.724 - SMTP recv: 250-8BITMIME
    20170321/134247.724 - SMTP recv: 250-BINARYMIME
    20170321/134247.724 - SMTP recv: 250-CHUNKING
    20170321/134247.724 - SMTP recv: 250-XEXCH50
    20170321/134247.724 - SMTP recv: 250-XRDST
    20170321/134247.724 - SMTP recv: 250 XSHADOW
    20170321/134247.724 - SMTP send: AUTH LOGIN
    20170321/134247.725 - SMTP recv: 334 *******************
    20170321/134247.725 - SMTP send: ***********************
    20170321/134247.725 - SMTP recv: 334 *******************
    20170321/134247.725 - SMTP send: ***********************
    20170321/134247.813 - SMTP recv: 235 2.7.0 Authentication successful
    20170321/134247.813 - SMTP send: MAIL FROM:<de-aedev@company.com>
    20170321/134247.813 - SMTP recv: 250 2.1.0 Sender OK
    20170321/134247.813 - SMTP send: RCPT TO:<test@company.com>
    20170321/134247.814 - SMTP recv: 250 2.1.5 Recipient OK
    20170321/134247.814 - SMTP send: DATA
    20170321/134247.814 - SMTP recv: 354 Start mail input; end with <CRLF>.<CRLF>
    20170321/134247.814 - SMTP send: Date: Tue, 21 Mar 2017 13:42:47 +0100
    20170321/134247.814 - SMTP send: From: <de-aedev@company.com>
    20170321/134247.814 - SMTP send: To: <de-testdaniela@company.com>
    20170321/134247.814 - SMTP send: Reply-To: <operation-center@company.com>
    20170321/134247.814 - SMTP send: Subject: Betreff
    20170321/134247.814 - SMTP send:
    20170321/134247.814 - SMTP send: Text
    20170321/134247.814 - SMTP send: .
    20170321/134248.387 - SMTP recv: 250 2.6.0 <74272a81-8ea6-47d5-9f0d-79894fb15673@f843de531aaD.company.com> [InternalId=4098493] Queued mail for delivery
    20170321/134248.387 - SMTP send: QUIT
    20170321/134248.388 - SMTP recv: 221 2.0.0 Service closing transmission channel
    20170321/134248.388 - After call ucsmtp_sendMail2

    Danke CarstenBerberich606460 für den Hinweis und die Daten.