mdadm - Email Konfiguration

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
jdownloader2
Beiträge: 15
Registriert: 09.07.2013 23:01:21

mdadm - Email Konfiguration

Beitrag von jdownloader2 » 12.07.2013 00:48:30

Hi,

Ich finde nirgends eine funktionierende Erklärung um bei mdadm die E-Mail benachrichtigung zu konfigurieren.
Ich habe ein neu aufgesetztes Debian. Software Raid funktioniert. Jetzt möchte ich einfach noch das meine Testmail ankommt.

Code: Alles auswählen

mdadm --monitor --scan --test --oneshot
Leider kommt bis anhin keine E-Mail an.

E-Mail Konten:
senden.bluewin.ch
empfang.gmx.ch

Ich glaube ihr wisst schon auf was ich hinaus will oder ? Ich möchte mit dem Bluewin Konto die mdadm Nachricht an die empfang.gmx.ch senden.
wenn dies auch ohne das Bluewin Konto funktioniert gut. Nur ich möchte das Passwort des gmx.ch Konto in keiner config eintragen.


1. Reicht das eintragen der "empfang.gmx.ch" in der mdadm.config ?
2. Ist es nötig exim4 zu konfigurieren ?

http://debianforum.de/forum/viewtopic.p ... ilit=mdadm
Habe dies versucht zu Konfigurieren.Hat leider nichts verändert

3. Kann mir sonst jemand ausführlich erklären wie dies zu konfigurieren ist ?

Mfg Jdownloader2

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: mdadm - Email Konfiguration

Beitrag von Cae » 12.07.2013 02:10:33

So im Prinzip wird das Problem schon in [1] behandelt. Ansonsten einfach mal die Forensuche anwerfen nach "ssmtp", das ist naemlich ein Mini-Mail-"Server", der alles an einen vordefinierten Smarthost (in deiner Skizze bluewin) weiterschickt.

Punkt eins reicht nicht aus, weil vermutlich a) dein lokaler Mailer nicht fuer "nach draussen" konfiguriert ist und b) du vermutlich weder statische IP noch Domains mit PTR darauf hast, d.h. andere Mailserver wuerden die Mail nicht annehmen. Beide Probleme umgehst du mit Debianssmtp.

Gruss Cae

[1] viewtopic.php?f=34&t=143581
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

jdownloader2
Beiträge: 15
Registriert: 09.07.2013 23:01:21

Re: mdadm - Email Konfiguration

Beitrag von jdownloader2 » 12.07.2013 13:27:30

Hi Cae

Also habe nun Google verwendet um ein ein eintsprechendes HowTo zu finden :

http://tombuntu.com/index.php/2008/10/2 ... ith-ssmtp/
https://itnoobz.org/wiki/index.php/SSMTP
https://wiki.archlinux.org/index.php/SSMTP

Leider funktioniert dies Trotzdem nicht.

Code: Alles auswählen

sendmail: Cannot open smtpauth.bluewin.ch:587
http://www.swisscom.ch/de/privatkunden/ ... em-pc.html

-------------------------------------------------------ssmtp.conf-----------------------------------------------------------------------------

Code: Alles auswählen

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=test@bluewin.ch

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtpauth.bluewin.ch:587

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=test@bluewin.ch

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=YES

# Username and password for Google's Gmail servers
# From addresses are settled by Mutt's rc file, so
# with this setup one can still achieve multi-user SMTP
AuthUser=test
AuthPass=a2b2c2
"# Username and password for Google's Gmail servers" -> Hat bei der standart config nicht existiert. Habe diesen eintrag einfach eingefügt. Da ich mich bei Bluewin auch mit einem Username/Passwort anmelden muss.


Ich bei Google nichts entsprechendes.... Passwort / Login habe ich 10x Überprüft !

Mfg Jdownloader

Antworten