fetchmail-friends
[Top] [All Lists]

[fetchmail]Antispam problems - can fetchmail work with sendmail FEATURE(`blacklist_recipients')?

2002-05-13 13:03:33
Hello,

I'm using fetchmail to collect email for my domain, and for the most part it
works wonderfully.  Inevitably, some of the email addresses I've used to
communicate with various organizations have fallen into the hands of spammers,
and I'm trying to use the sendmail access database with
FEATURE(`blacklist_recipients') to reject those recipient addresses.
Unfortunately, while fetchmail handles 550 returns from ruleset check_mail
(the envelope sender) nicely, it seems to have problems when 550 is returned
from ruleset check_rcpt (the envelope recipient).  Specifically, rather than
sending a single bounce and flushing the message, it sends two bounces and
doesn't flush the message.  Since the message wasn't flushed, and wasn't
viewed, the process repeats itself the next time around.  When running
`fetchmail -v`, I see the following in maillog:

May 13 14:36:35 sten fetchmail[23561]: reading message 
stend(_at_)mail(_dot_)sten(_dot_)org:1 of 2 (980 header octets) 
May 13 14:36:35 sten fetchmail[23561]: SMTP< 220 sten.org ESMTP Sendmail; Mon, 
13 May 2002 14:36:35 -0500 
May 13 14:36:35 sten fetchmail[23561]: SMTP> EHLO localhost 
May 13 14:36:35 sten fetchmail[23561]: SMTP< 250-sten.org Hello sten.sten.org 
[127.0.0.1], pleased to meet you 
May 13 14:36:35 sten fetchmail[23561]: SMTP> MAIL 
FROM:<25370110_305_85(_at_)manager(_dot_)sendoutmail(_dot_)com> SIZE=12159 
May 13 14:36:35 sten fetchmail[23561]: SMTP< 250 2.1.0 
<25370110_305_85(_at_)manager(_dot_)sendoutmail(_dot_)com>... Sender ok 
May 13 14:36:35 sten fetchmail[23561]: SMTP> RCPT 
TO:<stend+sandbox(_at_)sten(_dot_)org> 
May 13 14:36:35 sten fetchmail[23561]: SMTP< 550 5.0.0 
<stend+sandbox(_at_)sten(_dot_)org>... Refused - please stop spamming me. 
May 13 14:36:35 sten sendmail[23568]: g4DJaZo23568: ruleset=check_rcpt, 
arg1=<stend+sandbox(_at_)sten(_dot_)org>, relay=sten.sten.org [127.0.0.1], 
reject=550 5.0.0 <stend+sandbox(_at_)sten(_dot_)org>... Refused - please stop 
spamming me.
May 13 14:36:35 sten fetchmail[23561]: SMTP< 220 sten.org ESMTP Sendmail; Mon, 
13 May 2002 14:36:35 -0500 
May 13 14:36:35 sten fetchmail[23561]: SMTP> HELO localhost 
May 13 14:36:35 sten fetchmail[23561]: SMTP< 250 sten.org Hello sten.sten.org 
[127.0.0.1], pleased to meet you 
May 13 14:36:35 sten fetchmail[23561]: SMTP> MAIL 
FROM:<FETCHMAIL-DAEMON(_at_)sten(_dot_)org> 
May 13 14:36:40 sten fetchmail[23561]: SMTP< 250 2.1.0 
<FETCHMAIL-DAEMON(_at_)sten(_dot_)org>... Sender ok 
May 13 14:36:40 sten fetchmail[23561]: SMTP> RCPT 
TO:<25370110_305_85(_at_)manager(_dot_)sendoutmail(_dot_)com> 
May 13 14:36:40 sten fetchmail[23561]: SMTP< 250 2.1.5 
<25370110_305_85(_at_)manager(_dot_)sendoutmail(_dot_)com>... Recipient ok 
May 13 14:36:40 sten fetchmail[23561]: SMTP> DATA 
May 13 14:36:40 sten fetchmail[23561]: SMTP< 354 Enter mail, end with "." on a 
line by itself 
May 13 14:36:40 sten fetchmail[23561]: SMTP: (bounce-message body) 
May 13 14:36:40 sten fetchmail[23561]: SMTP>. (EOM) 
May 13 14:36:40 sten sendmail[23570]: g4DJaZo23570: 
from=<FETCHMAIL-DAEMON(_at_)sten(_dot_)org>, size=1712, class=0, nrcpts=1, 
msgid=<200205131936(_dot_)g4DJaZo23570(_at_)sten(_dot_)org>, proto=SMTP, 
daemon=MTA, relay=sten.sten.org [127.0.0.1]
May 13 14:36:40 sten fetchmail[23561]: SMTP< 250 2.0.0 g4DJaZo23570 Message 
accepted for delivery 
May 13 14:36:40 sten fetchmail[23561]: SMTP> QUIT 
May 13 14:36:40 sten fetchmail[23561]: SMTP< 221 2.0.0 sten.org closing 
connection 
May 13 14:36:40 sten fetchmail[23561]: SMTP listener doesn't like recipient 
address `stend+sandbox(_at_)sten(_dot_)org' 
May 13 14:36:40 sten fetchmail[23561]: SMTP< 220 sten.org ESMTP Sendmail; Mon, 
13 May 2002 14:36:40 -0500 
May 13 14:36:40 sten fetchmail[23561]: SMTP> HELO localhost 
May 13 14:36:40 sten fetchmail[23561]: SMTP< 250 sten.org Hello sten.sten.org 
[127.0.0.1], pleased to meet you 
May 13 14:36:40 sten fetchmail[23561]: SMTP> MAIL 
FROM:<FETCHMAIL-DAEMON(_at_)sten(_dot_)org> 
May 13 14:36:40 sten fetchmail[23561]: SMTP< 250 2.1.0 
<FETCHMAIL-DAEMON(_at_)sten(_dot_)org>... Sender ok 
May 13 14:36:40 sten fetchmail[23561]: SMTP> RCPT 
TO:<25370110_305_85(_at_)manager(_dot_)sendoutmail(_dot_)com> 
May 13 14:36:45 sten fetchmail[23561]: SMTP< 250 2.1.5 
<25370110_305_85(_at_)manager(_dot_)sendoutmail(_dot_)com>... Recipient ok 
May 13 14:36:45 sten fetchmail[23561]: SMTP> DATA 
May 13 14:36:45 sten fetchmail[23561]: SMTP< 354 Enter mail, end with "." on a 
line by itself 
May 13 14:36:45 sten fetchmail[23561]: SMTP: (bounce-message body) 
May 13 14:36:45 sten fetchmail[23561]: SMTP>. (EOM) 
May 13 14:36:45 sten sendmail[23574]: g4DJaeo23574: 
from=<FETCHMAIL-DAEMON(_at_)sten(_dot_)org>, size=1732, class=0, nrcpts=1, 
msgid=<200205131936(_dot_)g4DJaeo23574(_at_)sten(_dot_)org>, proto=SMTP, 
daemon=MTA, relay=sten.sten.org [127.0.0.1]
May 13 14:36:45 sten fetchmail[23561]: SMTP< 250 2.0.0 g4DJaeo23574 Message 
accepted for delivery 
May 13 14:36:45 sten fetchmail[23561]: SMTP> QUIT 
May 13 14:36:45 sten fetchmail[23561]: SMTP< 221 2.0.0 sten.org closing 
connection 
May 13 14:36:45 sten fetchmail[23561]: SMTP> RSET 
May 13 14:36:45 sten sendmail[23568]: g4DJaZo23568: 
from=<25370110_305_85(_at_)manager(_dot_)sendoutmail(_dot_)com>, size=12159, 
class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=sten.sten.org [127.0.0.1]
May 13 14:36:45 sten fetchmail[23561]: SMTP< 250 2.0.0 Reset state 
May 13 14:36:45 sten fetchmail[23561]: IMAP< ) 
May 13 14:36:45 sten fetchmail[23561]: IMAP< A0006 OK FETCH completed 
May 13 14:36:45 sten fetchmail[23561]:  not flushed 

Is there anything I can do to get fetchmail to handle 550 returns on recipient
addresses nicely, or do I need to give up trying to use
FEATURE(`blacklist_recipients')?

        Thanks, Sten

-- 
With Americans wondering just what to do, your House wants to set an example
for you.  When challenged by terror, when challenged by fear, paint your rear
white and run with the deer.                                   -- Ben Sargent
            <http://www.austin360.com/aas/editorial/sargent/1001/101901.html>


<Prev in Thread] Current Thread [Next in Thread>