Zum Inhalt springen

Swaks: Unterschied zwischen den Versionen

Aus Foxwiki
Die Seite wurde neu angelegt: „<noinclude> <!-- ---- {{Navigation|<zurück>|<nachste>}} ---- --> '''{{BASEPAGENAME}}''' </noinclude> == Beschreibung == == Installation == <syntaxhighlight lang="bash" highlight="1" line copy> </syntaxhighlight> == Aufruf == <syntaxhighlight lang="bash" highlight="1" line copy> </syntaxhighlight> === Optionen === {| class="wikitable sortable options gnu big" |- ! Unix !! GNU !! Parameter !! Beschreibung |- | || || || |- |} === Parameter === === Umg…“
 
 
(39 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 5: Zeile 5:
----
----
-->
-->
'''{{BASEPAGENAME}}'''
'''swaks''' - Swiss Army Knife for SMTP
</noinclude>
</noinclude>


Zeile 12: Zeile 12:
== Installation ==
== Installation ==
<syntaxhighlight lang="bash" highlight="1" line copy>
<syntaxhighlight lang="bash" highlight="1" line copy>
sudo apt install swaks
</syntaxhighlight>
</syntaxhighlight>


Zeile 40: Zeile 41:


== Anwendung ==
== Anwendung ==
=== Ohne Authentifizierung ===
Einfache E-Mail versenden, um die SMTP-Kommunikation zu prüfen
<syntaxhighlight lang="bash" highlight="1" line copy>
<syntaxhighlight lang="bash" highlight="1" line copy>
swaks --to recipient@example.com --from sender@example.com --server mail.example.com
</syntaxhighlight>
</syntaxhighlight>


<!-- output -->
<syntaxhighlight lang="bash" highlight="1" line copy>
<syntaxhighlight lang="bash" highlight="" line>
swaks --server <server_to_test> --from absender@example.com --to empfaenger@example.net
</syntaxhighlight>
 
=== Mit Authentifizierung ===
Bestimmte Ports oder bestimmte Verschlüsselung
 
==== SMTP-Authentifizierung ====
Versand mit SMTP-Authentifizierung
<syntaxhighlight lang="bash" highlight="1" line copy>
swaks --to recipient@example.com --from sender@example.com --server mail.example.com --auth LOGIN --auth-user username --auth-password password
</syntaxhighlight>
 
==== Port 587 mit STARTTLS ====
; SMTP mit Authentifizierung (SUBMISSION auf Port 587)
<syntaxhighlight lang="bash" highlight="1" line copy>
swaks --to recipient@example.com --from sender@example.com --server mail.example.com --port 587 --tls
</syntaxhighlight>
 
<syntaxhighlight lang="bash" highlight="1" line copy>
swaks --server <server_to_test> --from absender@example.com --to empfaenger@example.net --auth --auth-user absender@example.com --auth-password foobar --port 587 -tls
</syntaxhighlight>
 
==== SMTPS auf Port 465 ====
; SMTP mit Authentifizierung (SMTPS auf Port 465)
<syntaxhighlight lang="bash" highlight="1" line copy>
swaks --to recipient@example.com --from sender@example.com --server mail.example.com --port 465 --smtps
</syntaxhighlight>
 
<syntaxhighlight lang="bash" highlight="1" line copy>
swaks --server <server_to_test> --from absender@example.com --to empfaenger@example.net --auth --auth-user absender@example.com --auth-password foobar --port 465 -tlsc
</syntaxhighlight>
 
==== PLAIN ====
<syntaxhighlight lang="bash" highlight="1" line copy>
swaks --server <server_to_test> --from absender@example.com --to empfaenger@example.net --auth --auth-user absender@example.com --auth-password foobar
</syntaxhighlight>
</syntaxhighlight>


=== Problembehebung ===
=== Tipps zur Fehlerbehebung ===
[[Swaks]] liefert detailliertes Feedback zu jedem Schritt der SMTP-Sitzung


== Konfiguration ==
; Beachten
=== Dateien ===
{| class="wikitable options big"
{| class="wikitable options big"
! !!
|-
| DNS-Auflösungsfehler || Falsche MX- oder A-Einträge
|-
|-
! Datei !! Beschreibung
| Authentifizierungsfehler || Falsche Anmeldedaten oder eine deaktivierte SMTP-Authentifizierung
|-
|-
| ||  
| ''Relay denied'' || Server nicht für die Weiterleitung von E-Mails über Ihre IP-Adresse konfiguriert
|-
|-
| ||  
| Ablehnung durch den Zielserver || Suchen Sie nach Hinweisen in der SMTP-Fehlerantwort
|}
|}
; Beispiel für einen Auszugsausschnitt
Empfängeradresse existiert auf dem Ziel-Mailserver nicht
<syntaxhighlight lang="bash" highlight="0">
** 550 5.1.1 <recipient@example.com>: Empfängeradresse abgelehnt: Benutzer unbekannt**
</syntaxhighlight>


<noinclude>
<noinclude>
Zeile 66: Zeile 113:
----
----
-->
-->
== Anhang ==
== Anhang ==
=== Siehe auch ===
=== Siehe auch ===
<div style="column-count:2">
<div style="column-count:2">
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree>
<categorytree hideroot=on mode="pages">E-Mail</categorytree>
</div>
</div>
----
----
Zeile 75: Zeile 123:


=== Dokumentation ===
=== Dokumentation ===
<!--
; Man-Page  
; Man-Page  
# [https://manpages.debian.org/stable/procps/pgrep.1.de.html prep(1)]
# [https://manpages.debian.org/stable/swaks/swaks.1.en.html swaks(1)]
 
; Info-Pages
-->


=== Links ===
=== Links ===
==== Projekt ====
==== Projekt ====
# https://jetmore.org/john/code/swaks/
# https://github.com/jetmore/swaks
==== Weblinks ====
==== Weblinks ====


<!--
{{DEFAULTSORT:swaks}}
{{DEFAULTSORT:new}}
{{DISPLAYTITLE:swaks}}
{{DISPLAYTITLE:new}}
-->


[[Kategorie:E-Mail]]
[[Kategorie:E-Mail]]

Aktuelle Version vom 10. Juli 2026, 10:19 Uhr

swaks - Swiss Army Knife for SMTP


Beschreibung

Installation

sudo apt install swaks

Aufruf

Optionen

Unix GNU Parameter Beschreibung

Parameter

Umgebungsvariablen

Exit-Status

Wert Beschreibung
0 Erfolg
>0 Fehler

Anwendung

Ohne Authentifizierung

Einfache E-Mail versenden, um die SMTP-Kommunikation zu prüfen

swaks --to recipient@example.com --from sender@example.com --server mail.example.com
swaks --server <server_to_test> --from absender@example.com --to empfaenger@example.net

Mit Authentifizierung

Bestimmte Ports oder bestimmte Verschlüsselung

SMTP-Authentifizierung

Versand mit SMTP-Authentifizierung

swaks --to recipient@example.com --from sender@example.com --server mail.example.com --auth LOGIN --auth-user username --auth-password password

Port 587 mit STARTTLS

SMTP mit Authentifizierung (SUBMISSION auf Port 587)
swaks --to recipient@example.com --from sender@example.com --server mail.example.com --port 587 --tls
swaks --server <server_to_test> --from absender@example.com --to empfaenger@example.net --auth --auth-user absender@example.com --auth-password foobar --port 587 -tls

SMTPS auf Port 465

SMTP mit Authentifizierung (SMTPS auf Port 465)
swaks --to recipient@example.com --from sender@example.com --server mail.example.com --port 465 --smtps
swaks --server <server_to_test> --from absender@example.com --to empfaenger@example.net --auth --auth-user absender@example.com --auth-password foobar --port 465 -tlsc

PLAIN

swaks --server <server_to_test> --from absender@example.com --to empfaenger@example.net --auth --auth-user absender@example.com --auth-password foobar

Tipps zur Fehlerbehebung

Swaks liefert detailliertes Feedback zu jedem Schritt der SMTP-Sitzung

Beachten
DNS-Auflösungsfehler Falsche MX- oder A-Einträge
Authentifizierungsfehler Falsche Anmeldedaten oder eine deaktivierte SMTP-Authentifizierung
Relay denied Server nicht für die Weiterleitung von E-Mails über Ihre IP-Adresse konfiguriert
Ablehnung durch den Zielserver Suchen Sie nach Hinweisen in der SMTP-Fehlerantwort
Beispiel für einen Auszugsausschnitt

Empfängeradresse existiert auf dem Ziel-Mailserver nicht

** 550 5.1.1 <recipient@example.com>: Empfängeradresse abgelehnt: Benutzer unbekannt**


Anhang

Siehe auch



Dokumentation

Man-Page
  1. swaks(1)

Projekt

  1. https://jetmore.org/john/code/swaks/
  2. https://github.com/jetmore/swaks