On 17/03/2025 12:00, exim-users-requ...@lists.exim.org wrote:
My cronjobs downloaded the mail (fetchmail) then passed it (to me)
locally via exim4 (SMTP) ... it fails, and we retry later.
With fetchmail feeding messages in, I don't see the point in a local
exim rejecting anything. By the time you can reject it for any
body-related issue, exim has the whole message. You might as well
deliver it to the spam folder or to /dev/null*.
* I'm not sure that delivering literally to /dev/null actually works.
So, I'm guessing here, right now the message FAILS to be delivered
(by virtue of going to rejectlog) causing retries. What I should make
it do is, SUCCEED in delivering to SPAM-BOX/BADMAIL-BOX
any hints on how/where to do that? (a rule-name and an example rule
would be a good start)
Without knowing how your config does it now, I cannot say what you
need to change.
It's a pretty standard Debian Bookworm setup ..I've added a couple of
extra files
I use spamassassin to score messages in the exim config,
then filter high scoring messages into the spam folder with a rule like:
if $h_X-Spam-Level: contains "*****"
then
seen save $home/Mail/spam
finish
endif
in my ~/.forward file.
I have a "userforward" router in my exim config to ensure that
my ~/.forward is processed.
--
Yes, I have similar , also use spamassassin in that fashion , but do the
redirection in dropmail
I probably wasn't clear, I'm probably asking a lot more simple question
:-). Right now the rule is:
## acl/40_exim4-config_check_data
.ifndef IGNORE_SMTP_LINE_LENGTH_LIMIT
deny
condition = ${if > {$max_received_linelength}{998}}
message = maximum allowed line length is 998octets, \
got $max_received_linelength
.endif
So I can define IGNORE_SMTP_LINE_LENGTH_LIMIT, then it'll get accepted
(and hopefully caught as spam) ...but them I'm just relaxing
a restriction (like I guess gmail did, to cause this issue in the first
place)
What I guess is being suggested is:
{if > {$max_received_linelength}{998}
change "to address" to illegal@home (for example)
But the rules in "40_exim4-config_check_data" are all structured like
deny
if this is true
If I reject (deny?) the message, I get the repeated attempts at
download, so I want accept it , but deliver to an "illegal content" mailbox.
(FYI, the current places where I rewrite "to addresses" are all in
dropmail (before exim/sendmail is invoked) so I'm unsure where this kind
of rewite fits in the exim4 rules (is is ACL? , if so how do a rewrite a
"to address" in here?)
so:
1: Where would thus rule go? (in ACL?)
2: Is there an example of a rule like this , that changes "to address"
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/