Mail geht nicht raus - sendmail

Grabber66

New Member
Hallo ich versuche gerade eine Infomail über den vorhanden Spam in meinen Postfächern rauszuschicken.
Code:
#!/bin/sh
#----------------------------------------------------------------------------------------
# send spam mailfolder infomail
# (c) 04/2004 by ff, [email protected]
#----------------------------------------------------------------------------------------
#set -x
version="0.4 0405201035"
mailuser=$1
mailpath="/var/qmail/mailnames/$mailuser/Maildir/.spam/"
checkmaildir="/root/bin/spamcheck/checkmaildir"
listmaildir="/root/bin/spamcheck/listmaildir"
mailhost="localhost"
maildomain="meinedomain.de"
purgetime="7"

if ($checkmaildir $mailpath)
    then
        mailbox_status=`$listmaildir $mailpath`
	# send infomail
	(
	echo "From: <postmaster@$maildomain>"
        echo "To: $mailuser <$mailuser@$mailhost.$maildomain>"
        echo "Subject: Status Ihres Spam-Ordners"
	echo
        echo "Hinweis: E-Mails, die aelter als $purgetime Tage sind, werden geloescht!"
        echo "$mailbox_status"
        echo
    	echo "Bitte pruefen Sie ob evtl. erwuenschte Nachrichten aussortiert wurden."
        echo "Dazu loggen Sie sich entweder per IMAP in Ihr Postfach ein oder"
        echo "verwenden den Webmailer unter http://webmail.$maildomain/"
        echo
        echo
        echo "Mit freundlichen Gruessen"
        echo "postmaster@$maildomain"
        echo
	echo "-- "
	echo "created by spamcheck $version"
    )|/usr/lib/sendmail $mailuser@$mailhost.$maildomain
else
    exit 1
fi

exit 0

Die echo ausgaben sind auch alle korrekt, doch die Mail kommt nicht an.
Kann mir da jemand weiterhelfen. Logs reiche ich nach, wenn ihr mir sagt
welche dafür relevant sind.
 
usr/local/psa/var/log
Code:
Oct 10 21:14:28 h10xxxxx qmail-queue[7682]: scan: the message(drweb.tmp.IgLNv6) sent by [email protected] to [email protected] is passed
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: recipient[3] = '[email protected]'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:28 h10xxxxx qmail: 1223666068.980695 new msg 3573762
Oct 10 21:14:28 h10xxxxx qmail: 1223666068.980760 info msg 3573762: bytes 439 from <[email protected]> qp 7685 uid 0
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: starter: submitter[7685] exited normally
Oct 10 21:14:28 h10xxxxx qmail: 1223666068.990469 starting delivery 9527: msg 3573762 to local [email protected]
Oct 10 21:14:28 h10xxxxx qmail: 1223666068.990527 status: local 1/10 remote 0/20
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: Handlers Filter before-local for qmail started ...
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-local-handlers[7686]: cannot reinject message to '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.004287 delivery 9527: failure:
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: connection from h10xxxxx.serverkompetenz.net [127.0.0.1] at port 39600
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.016845 status: local 0/10 remote 0/20
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: setuid to qmails succeeded
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: processing message (unknown) for qmails:2522
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: clean message (-2.0/3.0) for qmails:2522 in 0.2 seconds, 923 bytes.
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: result: . -1 - AWL,BAYES_00,MISSING_MID,NO_RECEIVED,NO_RELAYS scantime=0.2,size=923,user=qmails,uid=2522,required_score=3.0,rhost=h10xxxxx.serverkompetenz.net,raddr=127.0.0.1,rport=39600,mid=(unknown),bayes=0.000000,autolearn=ham
Oct 10 21:14:29 h10xxxxx spamd[30599]: prefork: child states: II
Oct 10 21:14:29 h10xxxxx qmail-queue[7693]: mail: all addreses are uncheckable - need to skip scanning (by deny mode)
Oct 10 21:14:29 h10xxxxx qmail-queue[7693]: scan: the message(drweb.tmp.m6JQd3) sent by  to [email protected] should be passed without checks, because contains uncheckable addresses
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: from=
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: recipient[3] = '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: starter: submitter[7695] exited normally
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.293028 bounce msg 3573762 qp 7691
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.293080 end msg 3573762
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.295102 new msg 3573780
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.295144 info msg 3573780: bytes 1223 from <> qp 7695 uid 2522
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.300967 starting delivery 9528: msg 3573780 to remote [email protected]
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.301018 status: local 0/10 remote 1/20
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: Handlers Filter before-remote for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: from=
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.322345 delivery 9528: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: connection from h10xxxxx.serverkompetenz.net [127.0.0.1] at port 39601
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.334980 status: local 0/10 remote 0/20
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: setuid to qmails succeeded
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: processing message (unknown) for qmails:2522
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: clean message (-2.0/3.0) for qmails:2522 in 0.3 seconds, 1765 bytes.
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: result: . -1 - AWL,BAYES_00,MISSING_MID,NO_RECEIVED,NO_RELAYS scantime=0.3,size=1765,user=qmails,uid=2522,required_score=3.0,rhost=h10xxxxx.serverkompetenz.net,raddr=127.0.0.1,rport=39601,mid=(unknown),bayes=0.000000,autolearn=ham
Oct 10 21:14:29 h10xxxxx qmail-queue[7700]: mail: all addreses are uncheckable - need to skip scanning (by deny mode)
Oct 10 21:14:29 h10xxxxx qmail-queue[7700]: scan: the message(drweb.tmp.fhfL0q) sent by #@[] to [email protected] should be passed without checks, because contains uncheckable addresses
Oct 10 21:14:29 h10xxxxx spamd[30599]: prefork: child states: II
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: from=#@[]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: recipient[3] = '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: starter: submitter[7702] exited normally
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.702336 bounce msg 3573780 qp 7698
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.702388 end msg 3573780
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.704134 new msg 3573778
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.704205 info msg 3573778: bytes 2065 from <#@[]> qp 7702 uid 2522
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.710285 starting delivery 9529: msg 3573778 to remote [email protected]
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.710329 status: local 0/10 remote 1/20
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: Handlers Filter before-remote for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: from=#@[]
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.731086 delivery 9529: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.731344 status: local 0/10 remote 0/20
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.736635 triple bounce: discarding bounce/3573778
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.741095 end msg 3573778

var/log/mail.err
Code:
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: recipient[3] = '[email protected]'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: starter: submitter[7685] exited normally
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: Handlers Filter before-local for qmail started ...
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-local-handlers[7686]: cannot reinject message to '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: from=
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: recipient[3] = '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: starter: submitter[7695] exited normally
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: Handlers Filter before-remote for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: from=
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: from=#@[]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: recipient[3] = '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: starter: submitter[7702] exited normally
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: Handlers Filter before-remote for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: from=#@[]
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: [email protected]

var/log/mail.warn
Code:
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: recipient[3] = '[email protected]'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: starter: submitter[7685] exited normally
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: Handlers Filter before-local for qmail started ...
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-local-handlers[7686]: cannot reinject message to '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: from=
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: recipient[3] = '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: starter: submitter[7695] exited normally
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: Handlers Filter before-remote for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: from=
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: from=#@[]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: recipient[3] = '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: starter: submitter[7702] exited normally
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: Handlers Filter before-remote for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: from=#@[]
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: [email protected]

var/log/mail.info
Code:
Oct 10 21:14:28 h10xxxxx qmail-queue[7682]: scan: the message(drweb.tmp.IgLNv6) sent by [email protected] to [email protected] is passed
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: recipient[3] = '[email protected]'
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:28 h10xxxxx qmail: 1223666068.980695 new msg 3573762
Oct 10 21:14:28 h10xxxxx qmail: 1223666068.980760 info msg 3573762: bytes 439 from <[email protected]> qp 7685 uid 0
Oct 10 21:14:28 h10xxxxx qmail-queue-handlers[7684]: starter: submitter[7685] exited normally
Oct 10 21:14:28 h10xxxxx qmail: 1223666068.990469 starting delivery 9527: msg 3573762 to local [email protected]
Oct 10 21:14:28 h10xxxxx qmail: 1223666068.990527 status: local 1/10 remote 0/20
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: Handlers Filter before-local for qmail started ...
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: [email protected]
Oct 10 21:14:28 h10xxxxx qmail-local-handlers[7686]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-local-handlers[7686]: cannot reinject message to '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.004287 delivery 9527: failure:
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: connection from h10xxxxx.serverkompetenz.net [127.0.0.1] at port 39600
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.016845 status: local 0/10 remote 0/20
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: setuid to qmails succeeded
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: processing message (unknown) for qmails:2522
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: clean message (-2.0/3.0) for qmails:2522 in 0.2 seconds, 923 bytes.
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: result: . -1 - AWL,BAYES_00,MISSING_MID,NO_RECEIVED,NO_RELAYS scantime=0.2,size=923,user=qmails,uid=2522,required_score=3.0,rhost=h10xxxxx.serverkompetenz.net,raddr=127.0.0.1,rport=39600,mid=(unknown),bayes=0.000000,autolearn=ham
Oct 10 21:14:29 h10xxxxx spamd[30599]: prefork: child states: II
Oct 10 21:14:29 h10xxxxx qmail-queue[7693]: mail: all addreses are uncheckable - need to skip scanning (by deny mode)
Oct 10 21:14:29 h10xxxxx qmail-queue[7693]: scan: the message(drweb.tmp.m6JQd3) sent by  to [email protected] should be passed without checks, because contains uncheckable addresses
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: from=
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: recipient[3] = '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7694]: starter: submitter[7695] exited normally
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.293028 bounce msg 3573762 qp 7691
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.293080 end msg 3573762
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.295102 new msg 3573780
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.295144 info msg 3573780: bytes 1223 from <> qp 7695 uid 2522
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.300967 starting delivery 9528: msg 3573780 to remote [email protected]
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.301018 status: local 0/10 remote 1/20
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: Handlers Filter before-remote for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: from=
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7696]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.322345 delivery 9528: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: connection from h10xxxxx.serverkompetenz.net [127.0.0.1] at port 39601
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.334980 status: local 0/10 remote 0/20
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: setuid to qmails succeeded
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: processing message (unknown) for qmails:2522
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: clean message (-2.0/3.0) for qmails:2522 in 0.3 seconds, 1765 bytes.
Oct 10 21:14:29 h10xxxxx spamd[30546]: spamd: result: . -1 - AWL,BAYES_00,MISSING_MID,NO_RECEIVED,NO_RELAYS scantime=0.3,size=1765,user=qmails,uid=2522,required_score=3.0,rhost=h10xxxxx.serverkompetenz.net,raddr=127.0.0.1,rport=39601,mid=(unknown),bayes=0.000000,autolearn=ham
Oct 10 21:14:29 h10xxxxx qmail-queue[7700]: mail: all addreses are uncheckable - need to skip scanning (by deny mode)
Oct 10 21:14:29 h10xxxxx qmail-queue[7700]: scan: the message(drweb.tmp.fhfL0q) sent by #@[] to [email protected] should be passed without checks, because contains uncheckable addresses
Oct 10 21:14:29 h10xxxxx spamd[30599]: prefork: child states: II
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: Handlers Filter before-queue for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: from=#@[]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: hook_dir = '/var/qmail//handlers/before-queue'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: recipient[3] = '[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: handlers dir = '/var/qmail//handlers/before-queue/recipient/[email protected]'
Oct 10 21:14:29 h10xxxxx qmail-queue-handlers[7701]: starter: submitter[7702] exited normally
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.702336 bounce msg 3573780 qp 7698
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.702388 end msg 3573780
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.704134 new msg 3573778
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.704205 info msg 3573778: bytes 2065 from <#@[]> qp 7702 uid 2522
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.710285 starting delivery 9529: msg 3573778 to remote [email protected]
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.710329 status: local 0/10 remote 1/20
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: Handlers Filter before-remote for qmail started ...
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: from=#@[]
Oct 10 21:14:29 h10xxxxx qmail-remote-handlers[7703]: [email protected]
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.731086 delivery 9529: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.731344 status: local 0/10 remote 0/20
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.736635 triple bounce: discarding bounce/3573778
Oct 10 21:14:29 h10xxxxx qmail: 1223666069.741095 end msg 3573778
 
Ich sehe da drei wesentliche Fehler im Maillog:
qmail-local-handlers[7686]: cannot reinject message to '[email protected]'
...
qmail: 1223666069.322345 delivery 9528: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
...
qmail: 1223666069.731086 delivery 9529: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
Dabei sollte der Augenmerk erstmal auf die letzten Beiden fallen:
Dein Server kann weder die root- noch die postmaster-Emails zustellen.
Du erhälst also niemals Informationen über Deinen Server und fehlerhafte Emails. Und das ist schlecht!
Abhilfe: Mails an root lesen - huschi.net
Beachte "Qmail & Plesk" ganz unten und mach das auch für "postmaster".

Sobald Du das hast, kannst Du nochmal Dein Script starten. In der generierten Bounce-Email steht der Fehler i.d.R. ausführlicher erklärt.

huschi.
 
Danke für die Infos.
Habe nun alles richtig am laufen. Und mit den Tips hier kann ich nun auch per
bashscript mails verschicken.

THX
 
Back
Top