In article <
slrnk8cs24...@xs8.xs4all.nl>,
Rob <
nom...@example.com> wrote:
>Mike Scott <usen...@scottsonline.org.uk.invalid> wrote:
>>> I hoped to still find some sendmail experts here, but it looks
>>> like the group is filled with newbies crossposting from linux
>>> groups.
>>
>> I suspect some would find that sort of comment unhelpful.
>
>It looks like I'm not the only one with this opinion...
>I don't mind people asking questions but it can go too far.
>
>>> Is there anyone who knows how the above can be done?
>>> Maybe with a sendmail invocation with a special-purpose
sendmail.cf?
>>>
>> AFAIAA sendmail won't do this (but I speak as a decided inexpert, so IMBW)
>>
>> However, if you don't mind a 'dirty' solution, how about your periodic
>> checking script sticks the message id's (or some other good identifier)
>> of the "bad" messages into a file somewhere, while a milter picks up on
>> those and forces an immediate failure on the next q run. I suspect it
>> would be easy enough to code a hook for mimedefang to do this, or roll
>> your own milter. Or, come to think of it, possibly just build the whole
>> lot into mimedefang.
>
>Ok is it possible to invoke a milter on a queue run?
>That could be a way...
>
>What I was thinking about when mentioning "a special-purpose
sendmail.cf"
>is to create a
sendmail.cf with a very short maximum queue lifetime and
>then invoke sendmail -q with that cf file.
if it's only about the final error-mail and not about the error-text:
feel free to read the manual-page, especially how to set options like:
'-O Timeout.queuereturn='
and how to call queue-runner based on sender/queue-id/recipient, e.g.:
-qS.......
>However, I probably need
>to move the messages to another mqueue dir and specify that in the .cf
>to be sure it won't return the wrong messages.
If you're able to get the queue-ID for the specific mail something like
this from a shell-script:
/usr/sbin/sendmail -qI<queue-id> -O Timeout.queuereturn=<time>
>Life would be so much easier when those domain harversters/parkers would
>run an SMTP server that refuses all messages.... that should not be
>much effort compared to the websites that they already implement.
Maybe some general queue-runner for error-mails only (started from cron):
/usr/sbin/sendmail -qS<> -O Timeout.queuereturn=12h
regards
winfried
--
Winfried Magerl - Internet Administration
AtoS IT Solutions and Services, 81739 Munich, Germany
Internet-Mail:
winfrie...@atos.net
Phone:
+49 211 39922784