[Postfixbuch-users] "zu Tode gebounced"

Andreas Kotowicz kotoml at mynetix.de
Mi Mai 19 17:40:15 CEST 2004


On Wed, 2004-05-19 at 17:30, Andreas Winkelmann wrote:

> > postfix/pickup[7027]: 9EE84833D: uid=65501 from=<User-Info at gmx.de>
> 
> Die Mail ist über "pickup" reingekommen, das ist eine lokale Mail. Dafür gilt 
> local_recipient_maps nicht.
> 
> Wer hat denn auf deinem Rechner die uid 65501 ?

die hat mein vacation user. bei mir werden die mails zuerst an amavis
weitergereicht und dann an den vacation content filter weitergereicht:

main.cf 
content_filter = smtp-amavis:[127.0.0.1]:10024
max_use = 10

master.cf

smtp-amavis unix -      -       n       -       2  lmtp
    -o lmtp_data_done_timeout=1200
    -o lmtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
                                                                                                                            
localhost:10025 inet n  -       n       -       -  smtpd
        -o content_filter=vacation
        -o myhostname=localhost
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
                                                                                                                            
vacation    unix  -       n       n       -       -       pipe flags=Rq
user=vacation argv=/var/spool/vacation/mail-filter -f ${sender} --
${recipient}


more /var/spool/vacation/mail-filter
----
#!/bin/sh
FILTER_DIR=/var/spool/vacation
SENDMAIL="/usr/sbin/sendmail -i"
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
 
trap "rm -f in.$$" 0 1 2 3 15
 
cd $FILTER_DIR || { echo $FILTER_DIR does not exist; exit $EX_TEMPFAIL;
}
 
cat > in.$$ || { echo Cannot save mail to file; exit $EX_TEMPFAIL; }
 
/var/spool/vacation/vacation.pl < in.$$ || { echo Message content
rejected; exit $EX_UNAVAILABLE; }
 
$SENDMAIL "$@" < in.$$
 
exit $?
----

die frage ist nur, warum postfix beim entgegennehmen der mails nicht
schon die mails ablehnt, bzw warum in meinen logs da nichts darüber
drinnen steht.


andreas




Mehr Informationen über die Mailingliste Postfixbuch-users