PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : email per console? bzw /var/mail an pop3 postfach?



DaKeeper32
07.04.04, 16:20
Hallo!

Ist es möglich per bash den inhalt von /var/log/USERNAME an mein pop3 postfach weiterzuleiten? wenn ja, wie?

Geht das auch per console direkt? also sowas wie mail "subject" "empfänger" "text" oder in der art?

thx für eure hilfe

iceface
07.04.04, 17:50
Hallo!

Probiere es mal mit:
cat /var/log/USERNAME | mail -s "meineLogdatei" ich@rechner.domain

DaKeeper32
07.04.04, 17:56
hmmm

linux:/var/mail # cat /var/mail/root | mail -s "meineLogdatei" da***@****nary-alliance.de
linux:/var/mail #

kommt nüscht an :\

:confused:

DaKeeper32
07.04.04, 18:04
hab mal die logs angeguggt

steht folgendes:
his is the Postfix program at host ***.***l.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<dakeeper@the-mercenary-alliance.de>: host mx01.schlund.de[212.227.126.215]
said: 550 rejected: administrative prohibition (in reply to RCPT TO
command)

--BB27ADBF9.1081357168/linux.local
Content-Description: Delivery error report
Content-Type: message/delivery-status

Reporting-MTA: dns; linux.local
Arrival-Date: Wed, 7 Apr 2004 18:59:28 +0200 (CEST)

Final-Recipient: rfc822; d****r@the***-****-****iance.de
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host mx01.schlund.de[212.227.126.215] said: 550
rejected: administrative prohibition (in reply to RCPT TO command)

--BB27ADBF9.1081357168/linux.local
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: by***.**** (Postfix, from userid 0)
id BB27ADBF9; Wed, 7 Apr 2004 18:59:28 +0200 (CEST)
Date: Wed, 07 Apr 2004 18:59:28 +0200

iceface
07.04.04, 18:27
Gib Deine Absenderadresse mit an, dann sollte die mail auch ankommen:

cat /var/mail/root | mail -r da***@****nary-alliance.de -s "meineLogdatei" da***@****nary-alliance.de

iceface
07.04.04, 18:33
Wie mir scheint, so kommt es auf den Mailanbieter an, ob eine Absenderadresse angegeben werden muss oder nicht.

Habe es gerade mit einer Yahoo-Adresse versucht, hier reicht der mail-Befehl ohne Absenderadresse und die Post wird empfangen. Bei GMX wird eine Absenderadresse benötigt (bekomme sonst eine ähnliche Fehlermeldung).