Mail via Terminal will nicht

T

thunderflash

Hi,
ich in ganz neu hier und seit einiger Zeit fleißiger terminal/unix Lerner unter MacOSX

Ich möchte im terminal mit
Code:
mail -s "subject" ziel@adresse.de

Mails verschicken (für Cronjobs).
Jedoch funktioniert das nicht.
Je nach zeiladresse kommen in der mail.log unterschiedliche Fehlermeldungen.

in mail.log steht z.B.:

Code:
Nov  3 09:32:08 macpro postfix/master[742]: daemon started -- version 2.8.4, configuration /etc/postfix
Nov  3 09:32:08 macpro postfix/qmgr[744]: 40B565A009A: from=<Username@macpro.fritz.box>, size=306, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: 499625A0A37: from=<Username@macpro.fritz.box>, size=304, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: 4ACCD59FAF9: from=<Username@macpro.fritz.box>, size=315, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: 60E345A04F3: from=<Username@macpro.fritz.box>, size=308, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: 6A2E75A0F77: from=<Username@macpro.fritz.box>, size=306, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: 7C3A35A0435: from=<>, size=2834, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: 80C465A04D0: from=<Username@macpro.fritz.box>, size=302, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: 8853F5A0458: from=<Username@dyndns-adresse>, size=313, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: 9D7565A13FD: from=<Username@macpro.fritz.box>, size=301, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: B9DD75A02B0: from=<Username@macpro.fritz.box>, size=304, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: BE66F5A084C: from=<Username@macpro.fritz.box>, size=304, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: D04095A008A: from=<Username@macpro.fritz.box>, size=308, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: D50BD5A0708: from=<Username@macpro.fritz.box>, size=302, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/qmgr[744]: E083759FB45: from=<Username@macpro.fritz.box>, size=307, nrcpt=1 (queue active)
Nov  3 09:32:09 macpro postfix/pickup[743]: F15135A8D1A: uid=501 from=<Username>
Nov  3 09:32:09 macpro postfix/cleanup[745]: F15135A8D1A: message-id=<20111103083209.F15135A8D1A@macpro.fritz.box>
Nov  3 09:32:09 macpro postfix/qmgr[744]: F15135A8D1A: from=<Username@macpro.fritz.box>, size=307, nrcpt=1 (queue active)
Nov  3 09:32:10 macpro postfix/smtp[751]: 60E345A04F3: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=75101, delays=75100/0.23/0.9/0.17, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[747]: 40B565A009A: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=76500, delays=76499/0.33/0.97/0.21, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[749]: 4ACCD59FAF9: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=78403, delays=78402/0.27/0.87/0.2, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[748]: 499625A0A37: to=<Username@ziel-email.de>, orig_to=<Username@ziel-email.de.>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=73411, delays=73410/0.18/0.97/0.2, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[752]: 6A2E75A0F77: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=71697, delays=71696/0.21/0.85/0.21, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[752]: BE66F5A084C: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=74114, delays=74113/0.97/0.14/0.03, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[758]: D04095A008A: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=76555, delays=76554/0.93/0.13/0.03, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[759]: D50BD5A0708: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=74546, delays=74545/0.89/0.12/0.03, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[761]: E083759FB45: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=78304, delays=78303/0.81/0.13/0.03, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[749]: 9D7565A13FD: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=70843, delays=70842/1.1/0.17/0.05, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[751]: 80C465A04D0: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=75155, delays=75154/1.2/0.18/0.04, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:10 macpro postfix/smtp[748]: B9DD75A02B0: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=76004, delays=76003/1.1/0.17/0.04, dsn=4.1.8, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.1.8 <Username@macpro.fritz.box>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Nov  3 09:32:11 macpro postfix/smtp[747]: 8853F5A0458: to=<Username@ziel-email.de>, relay=mail.ziel-email.de[109.237.138.24]:25, delay=75381, delays=75379/1.2/0.17/1.2, dsn=4.2.0, status=deferred (host mail.ziel-email.de[109.237.138.24] said: 450 4.2.0 <Username@ziel-email.de>: Recipient address rejected: Greylisting in action, please come back in 180 seconds (in reply to RCPT TO command))
Nov  3 09:32:13 macpro postfix/smtp[754]: connect to UsernameDynDNS-Adresse.dyndns.org[aktuelle IP]:25: Connection refused
Nov  3 09:32:13 macpro postfix/smtp[754]: 7C3A35A0435: to=<Username@UsernameDynDNS-Adresse.dyndns.org>, relay=none, delay=75423, delays=75419/0.29/4.4/0, dsn=4.4.1, status=deferred (connect to UsernameDynDNS-Adresse.dyndns.org[aktuelle IP]:25: Connection refused)
Nov  3 09:32:19 macpro postfix/smtp[755]: F15135A8D1A: to=<GMAILADRESSE@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.39.26]:25, delay=11, delays=1.4/0.01/8.8/0.69, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[74.125.39.26] said: 550-5.7.1 [aktuelle IP] The IP you're using to send mail is not authorized to 550-5.7.1 send email directly to our servers. Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn more at                          550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336 t13si3182592fah.202 (in reply to end of DATA command))
Nov  3 09:32:19 macpro postfix/cleanup[745]: 71FAA5A8D31: message-id=<20111103083219.71FAA5A8D31@macpro.fritz.box>
Nov  3 09:32:19 macpro postfix/bounce[769]: F15135A8D1A: sender non-delivery notification: 71FAA5A8D31
Nov  3 09:32:19 macpro postfix/qmgr[744]: 71FAA5A8D31: from=<>, size=2804, nrcpt=1 (queue active)
Nov  3 09:32:19 macpro postfix/qmgr[744]: F15135A8D1A: removed
Nov  3 09:32:19 macpro postfix/local[770]: 71FAA5A8D31: to=<Username@macpro.fritz.box>, relay=local, delay=0.13, delays=0/0.07/0/0.05, dsn=2.0.0, status=sent (delivered to mailbox)
Nov  3 09:32:19 macpro postfix/qmgr[744]: 71FAA5A8D31: removed
Nov  3 09:33:08 macpro postfix/master[742]: master exit time has arrived
Nov  3 09:33:08 macpro postfix/scache[760]: statistics: start interval Nov  3 09:32:10
Nov  3 09:33:08 macpro postfix/scache[760]: statistics: domain lookup hits=0 miss=8 success=0%
Nov  3 09:33:08 macpro postfix/scache[760]: statistics: address lookup hits=0 miss=8 success=0%
Nov  3 09:33:08 macpro postfix/scache[760]: statistics: max simultaneous domains=1 addresses=1 connection=8

Und zusätzlich bekomme ich im Terminal die Nachricht, dass eine email angekommen ist,
in der steht:
Code:
Return-Path: <USERNAME@macpro.fritz.box>
Received: by macpro.fritz.box (Postfix, from userid 501)
        id F15135A8D1A; Thu,  3 Nov 2011 09:32:08 +0100 (CET)
To: GMAILADRESSE@gmail.com
:Message 3:
From MAILER-DAEMON  Thu Nov  3 09:32:19 2011
X-Original-To: USERNAME@macpro.fritz.box
Delivered-To: USERNAME@macpro.fritz.box
Date: Thu,  3 Nov 2011 09:32:19 +0100 (CET)
From: MAILER-DAEMON@macpro.fritz.box (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: USERNAME@macpro.fritz.box
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="F15135A8D1A.1320309139/macpro.fritz.box"

This is a MIME-encapsulated message.

--F15135A8D1A.1320309139/macpro.fritz.box
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host macpro.fritz.box.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

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 attached returned message.

                   The mail system

<GMAILADRESSE@gmail.com>: host gmail-smtp-in.l.google.com[74.125.39.26] said:
    550-5.7.1 [AKTUELLE IP ADRESSE] The IP you're using to send mail is not authorized
    to 550-5.7.1 send email directly to our servers. Please use the SMTP relay
    at your 550-5.7.1 service provider instead. Learn more at
    550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336
    t13si3182592fah.202 (in reply to end of DATA command)

--F15135A8D1A.1320309139/macpro.fritz.box
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; macpro.fritz.box
X-Postfix-Queue-ID: F15135A8D1A
X-Postfix-Sender: rfc822; USERNAME@macpro.fritz.box
Arrival-Date: Thu,  3 Nov 2011 09:32:08 +0100 (CET)

Final-Recipient: rfc822; GMAILADRESSE@gmail.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [AKTUELLE IP ADRESSE] The IP you're using to send
    mail is not authorized to 550-5.7.1 send email directly to our servers.
    Please use the SMTP relay at your 550-5.7.1 service provider instead. Learn
    more at                          550 5.7.1
    http://mail.google.com/support/bin/answer.py?answer=10336
    t13si3182592fah.202

--F15135A8D1A.1320309139/macpro.fritz.box
Content-Description: Undelivered Message
Content-Type: message/rfc822

Return-Path: <USERNAME@macpro.fritz.box>
Received: by macpro.fritz.box (Postfix, from userid 501)
        id F15135A8D1A; Thu,  3 Nov 2011 09:32:08 +0100 (CET)
To: GMAILADRESSE@gmail.com
Subject: bla
Message-Id: <20111103083209.F15135A8D1A@macpro.fritz.box>
Date: Thu,  3 Nov 2011 09:32:08 +0100 (CET)
From: USERNAME@macpro.fritz.box (USERNAME)

asdf

--F15135A8D1A.1320309139/macpro.fritz.box--

Ich habe mir jetzt schon alle Tutorials/Forumbeiträge/man-pages/Hilfsseiten angesehen, jedoch hat es entweder nicht geholfen oder war mir aktuell doch noch zu hoch,
um es zu verstehen (irgendwelche Erweiterungen runterzuladen und diese dann im Terminal zu integrieren - aber es sollte ja auch so gehen)

auch main.cf nach dieser Anleitung zu editieren hat nicht geholfen. (wieder original main.cf am alten Platz)
Und in den Mac-Foren ist das Problem wohl doch zu speziell, vielleicht kann mir ja hier jemand zur Lösung helfen :think:
 
Deine Verbindung wird abgelehnt, da du vermutlich nicht über deine (dynamische) IP Zuhause direkt Emails versenden darfst.
Eine Lösung besteht darin, die Email z.B. über deinen Provider zu leiten. Dort musst du dich mit Username und Passwort anmelden, damit das geht.

http://wiki.ubuntuusers.de/Postfix#Besondere-Konfigurationen
 
Zuletzt bearbeitet von einem Moderator:
Völlig richtig was Lord_x schreibt. Stellt dir mal vor jeder dürfte von seinem Rechner aus E-Mails schreiben... Dann wäre das Internet noch mit mehr Spamm verseucht :) .

<GMAILADRESSE@gmail.com>: host gmail-smtp-in.l.google.com[74.125.39.26] said:
550-5.7.1 [AKTUELLE IP ADRESSE] The IP you're using to send mail is not authorized
to 550-5.7.1 send email directly to our servers. Please use the SMTP relay
at your 550-5.7.1 service provider instead. Learn more at
550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336
t13si3182592fah.202 (in reply to end of DATA command)
 

Ähnliche Themen

solved Problem mit smtp (postfix) als send-only mta hinter NAT

CentOS 7.2: Mailversand funktioniert obwohl nicht definiert

Mein Server Ubuntu 14.04.3 LTS versendet spam (postfix/dovecot)

Mein Server versendet SPAM in Massen

dovecot und postfix Konfiguration Problem

Zurück
Oben