Beiträge von stamcose

    Wegen die nette Unterhaltung bei


    Postfix-Mail und TLS


    Postfix (oder "sendmail") kann man benützen für Serial-Mail. Hier mein Shellscript als "Freeware"!


    Zwei Email in einer Textdatei mit Name "demo"



    Mein Shellscript "mats_mail"



    Benützung

    Code
    mats_mail < demo

    Ich benütze


    OS: Linux 2.6.34-12 desktopi686
    System: openSUSE 11.3(i586)


    Geht wunderbar ausser für diesen jetzt entdeckten YAST-Fehler bei "postfix"


    Welche Vorteile/Nachteile hat 11.3 in vergleich zu dem heutigen Release? Ist es möglicherweise so dass für jeden korrigierten Bug ein neuer dazukommt!


    "postfix" benütze ich zu Versenden von computer-generated individuelle Emails durch einen Shell-Script! Für einen Verein, nicht für SPAM!!

    Es scheint ein YAST-Problem bei SUSE 11.3 zu sein die bei SUSE 11.4 korrigiert wurde! Obwohl ich ein Haken fuer "USE TLS" in YAST fuer SUSE 11.3 setze kriege ich in


    /etc/postfix/main.cf


    Code
    smtp_use_tls = no


    Falls ich mit meinem Editor diese Konfigurations-Datei aendere in


    Code
    smtp_use_tls = yes


    funktioniert es tatsaechlich, Mail geht via

    Code
    securesmtp.t-online.de

    aus!


    Die Kunst war diese Konfigurations-Datei zu finden und ein "diff" zwischen die 11.3 und die 11.4 Version zu machen. Dies war der einzige wesentliche Unterschied!

    Postfix-Mail wirt bei SUSE normalerweise mit YAST installiert. Ich habe zwei Rechner mit SUSE-Linux, der eine 11.3 und der andere 11.4.


    Bei beiden habe ich so weit ich sehen kann Postfix-Mail gleich installiert


    Network Services / Mail Server und dann


    - Standard
    - Permanent


    Outgoing mail server [securesmtp.t-online.de] use &TLS
    Authentication with
    - Outgoing Server: [securesmtp.t-online.de]
    - User name: somebody@t-online.de


    Auf die eine kriege in /var/log/mail:


    Code
    Jan 15 16:11:10 linux-mhid postfix/qmgr[4192]: 0826763529: from=<mats@linux-mhid.site>, size=797, nrcpt=1 (queue active)
    Jan 15 16:11:10 linux-mhid postfix/smtp[6069]: 0826763529: to=<somebody@t-online.de>, relay=securesmtp.t-online.de[194.25.134.110]:25, delay=0.47, delays=0.2/0.07/0.18/0.03, dsn=5.7.0, status=bounced (host securesmtp.t-online.de[194.25.134.110] said: 530 5.7.0 Must issue a STARTTLS command first. (in reply to MAIL FROM command))
    Jan 15 16:11:10 linux-mhid postfix/cleanup[6067]: 7896B6352A: message-id=<20160115151110.7896B6352A@linux-mhid.site>
    Jan 15 16:11:10 linux-mhid postfix/bounce[6070]: 0826763529: sender non-delivery notification: 7896B6352A
    Jan 15 16:11:10 linux-mhid postfix/qmgr[4192]: 7896B6352A: from=<>, size=2687, nrcpt=1 (queue active)
    Jan 15 16:11:10 linux-mhid postfix/qmgr[4192]: 0826763529: removed
    Jan 15 16:11:10 linux-mhid postfix/local[6071]: 7896B6352A: to=<mats@linux-mhid.site>, relay=local, delay=0.19, delays=0.06/0.04/0/0.09, dsn=2.0.0, status=sent (delivered to mailbox)
    Jan 15 16:11:10 linux-mhid postfix/qmgr[4192]: 7896B6352A: removed


    Warum kein STARTTLS Kommando?


    Mit dem anderen Rechner funktioniert alles

    Code
    Jan 15 14:01:34 linux-7bll postfix/qmgr[2547]: 82951121C48: from=<mats@linux-7bll.site>, size=793, nrcpt=1 (queue active)
    Jan 15 14:01:35 linux-7bll postfix/smtp[5189]: certificate verification failed for securesmtp.t-online.de[194.25.134.110]:25: untrusted issuer /C=DE/O=Deutsche Telekom AG/OU=T-TeleSec Trust Center/CN=Deutsche Telekom Root CA 2
    Jan 15 14:01:35 linux-7bll postfix/smtp[5189]: 82951121C48: to=<franziblitz@web.de>, relay=securesmtp.t-online.de[194.25.134.110]:25, delay=1.2, delays=0.2/0.19/0.64/0.17, dsn=2.0.0, status=sent (250 2.0.0 Message accepted. / Nachricht akzeptiert.)
    Jan 15 14:01:35 linux-7bll postfix/qmgr[2547]: 82951121C48: removed


    Hier die Ergebnis von


    find / -name '*postfix*'




    In /etc gibt es


    resolv.conf.netconfig


    und


    resolv.conf


    Die sind identisch aber physisch unabhaenging (nicht 2 links-aliasis)


    In original:


    ### /etc/resolv.conf file autogenerated by netconfig!
    #
    # Before you change this file manually, consider to define the
    # static DNS configuration using the following variables in the
    # /etc/sysconfig/network/config file:
    # NETCONFIG_DNS_STATIC_SEARCHLIST
    # NETCONFIG_DNS_STATIC_SERVERS
    # NETCONFIG_DNS_FORWARDER
    # or disable DNS configuration updates via netconfig by setting:
    # NETCONFIG_DNS_POLICY=''
    #
    # See also the netconfig(8) manual page and other documentation.
    #
    # Note: Manual change of this file disables netconfig too, but
    # may get lost when this file contains comments or empty lines
    # only, the netconfig settings are same with settings in this
    # file and in case of a "netconfig update -f" call.
    #
    ### Please remove (at least) this line when you modify the file!
    search Speedport_W_724V_09011603_00_009
    nameserver 192.168.2.1


    Meine Modifizierung in BEIDE Dateien


    #search Speedport_W_724V_09011603_00_009
    nameserver 8.8.8.8


    Um diese Aenderung durch Re-Boot nicht ueberschreiben zu kriegen muss ich
    aber auch in


    /etc/sysconfig/network/config


    NETCONFIG_DNS_POLICY=''
    setzen (anstatt "auto")


    Jetzt bleibt "8.8.8.8" der einzige Nameserver laut beide Dateien


    ABER ES HILFT ALLES NICHT, DAS PROBLEM BLEIBT BESTEHEN

    Seit ich Speedport W 724V benuetze ist HTTP ueber SUSE-LINUX nicht mehr verwendbar.


    Ping kein Problem:


    mats@linux-7bll:~> ping 192.168.2.1
    PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
    64 bytes from 192.168.2.1: icmp_req=1 ttl=64 time=0.553 ms
    64 bytes from 192.168.2.1: icmp_req=2 ttl=64 time=0.556 ms
    64 bytes from 192.168.2.1: icmp_req=3 ttl=64 time=0.518 ms
    64 bytes from 192.168.2.1: icmp_req=4 ttl=64 time=0.503 ms


    WEB-Browser Konqueror


    The requested operation could not be completed
    Unknown Host


    Details of the Request:
    URL: http://192.168.2.1/html/login/index.html
    Protocol: http
    Date and Time: Tuesday, June 23, 2015 10:00 AM
    Additional Information: speedport.ip
    Description:
    An unknown host error indicates that the server with the requested name, 192.168.2.1, could not be located on the Internet.
    Possible Causes:
    The name that you typed, 192.168.2.1, may not exist: it may be incorrectly typed.
    There may have been a problem with your network connection.
    There may have been a problem with your network configuration. If you have been accessing the Internet with no problems recently, this is unlikely.
    Possible Solutions:
    Check your network connection status.
    Contact your appropriate computer support system, whether the system administrator, or technical support group for further assistance.


    Nach Routereinrichtung ueber Windows-PC und Suche nach "www.google.de" mit Konqueror:


    "The server http://www.google.de refused to allow this computer to make a connection."


    Mit Firefox ist "www.google.de" zu erreichen aber ERST NACH 3,5 MINUTEN waiting-loop mit "CONNECTING" angezeigt


    WELCHE ERFAHRUNGEN HABEN ANDERE LINUX-BENUETZER MIT SPEEDPORT W 724V GEMACHT?


    Mit MS-WINDOWS macht SPEEDPORT W 724V aber keine Probleme!

    Nach relative kurze Zeit war auch mit


    /etc/resolv.conf als


    Code
    nameserver 85.214.20.141


    das Problem wieder da!


    Aber nach einem Reboot des Routers wurde wieder alles OK


    Ich habe jetzt als /etc/resolv.conf


    Code
    nameserver 192.168.2.1
    nameserver 85.214.20.141


    was schnell und gut läuft!


    „Ein Reboot tut immer gut!“


    Komisch ist:


    Speedport und Windows XP – keine Probleme
    Router „Level One“ und SUSE-Linux – keine Probleme
    Speedport und SUSE-Linux – Regelmässige Router-Reboots erforderlich

    Und warum wirt jetzt "/etc/resolv.conf" in Ruhe gelassen obwohl "/etc/sysconfig/network/config" unveränder ist?


    Die Antwort dazu ist in der Kommentar in "/etc/resolv.conf" zu lesen


    Code
    # Note: Manual change of this file disables netconfig too


    Wenn "netconfig" entdeckt eine Änderung in "/etc/resolv.conf" die nicht von "netconfig" selbst stammt (log über Änderungen und "file change time stamp" wahrscheinlich!) wirt "/etc/resolv.conf" in Ruhe gelassen!