efa mail not filtering just one account

Questions and answers about how to do stuff
Post Reply
efagokan1
Posts: 24
Joined: 28 Mar 2022 05:57

efa mail not filtering just one account

Post by efagokan1 »

Hello

I want to pass several users through no filters.
how can I do that?

Thanks.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: efa mail not filtering just one account

Post by pdwalker »

For incoming, or outgoing mail?
efagokan1
Posts: 24
Joined: 28 Mar 2022 05:57

Re: efa mail not filtering just one account

Post by efagokan1 »

incoming...
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: efa mail not filtering just one account

Post by pdwalker »

Have you tried whitelisting?

[edit]

specifically, under "black and white lists", add in the email addressses you want to whitelist

From: whitelisted@example.com
To: leave this section blank
List: select allowlist
Action: select Add when you are happy

Under the "Allowlist" you should find a new entry that would look like

Code: Select all

From:                    To:
whitelisted@example.com  default
I do not know how long it takes before mailscanner picks up the changes, so I did a "service restart mailscanner" and the updated allowlist is in use.

Send yourself an email from the whitelisted email address and you should see under "recent messages" that that address has a status of "allowlisted" and the background set to green.

If not, check that the email address is correct.
efagokan1
Posts: 24
Joined: 28 Mar 2022 05:57

Re: efa mail not filtering just one account

Post by efagokan1 »

I want it to go to only one account without a filter, no matter what happens in incoming mails. In order to do this, I need to write the recipient address in the "to" part. I need to leave the FROM part blank. But this is not possible.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: efa mail not filtering just one account

Post by pdwalker »

I guess I don't understand exactly what you are trying to do.

Can you explain it differently? Why would you need to rewrite the "To:" address? What exactly are you trying to do?
efagokan1
Posts: 24
Joined: 28 Mar 2022 05:57

Re: efa mail not filtering just one account

Post by efagokan1 »

Example: b@b.com, c@c.com, d@d.com addresses send us e-mails. My email address is a@a.com. No email from me should be filtered, but all other emails from a.com should be filtered.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: efa mail not filtering just one account

Post by pdwalker »

and a.com is the domain behind your efa box?

In otherwords, you want all mail to a@a.com that passes through your efa box to skip the spam checks and just deliver the mail, correct?

If so, I do not know how to do that at this time. I'll have a look around and see if there is a way to bypass all spam checks for a message directed to a particular destination email address.

---

There is a "quick fix" if you like. You could add a rule like this into your spamassassin rules list in /etc/mail/spamassassin/local.cf:

Code: Select all

header      ZZ_ANOSPAM_TEST    To =~ /a\@a\.com/i
score       ZZ_ANOSPAM_TEST    -99
describe    ZZ_ANOSPAM_TEST    testing incoming WL test
This would add a -99 to the spam score to incoming mail to this account and would almost guarantee that all incoming mail, including spam, gets through spamassassin. The spam check is still being done.

I don't recommend this, because spam mail would be treated by EFA as non spam and the bayesian filter might get the wrong idea about what is spam and what is not spam.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: efa mail not filtering just one account

Post by pdwalker »

efagokan1 wrote: 17 May 2023 11:19 Example: b@b.com, c@c.com, d@d.com addresses send us e-mails. My email address is a@a.com. No email from me should be filtered, but all other emails from a.com should be filtered.
Solution:

From: default
To: a@a.com
List: allowlist
Action: Add

Screenshot 2023-05-20 at 18.44 1.png
Screenshot 2023-05-20 at 18.44 1.png (15.07 KiB) Viewed 1294 times
Screenshot 2023-05-20 at 18.45.png
Screenshot 2023-05-20 at 18.45.png (21.11 KiB) Viewed 1294 times
Screenshot 2023-05-20 at 18.44.png
Screenshot 2023-05-20 at 18.44.png (28.13 KiB) Viewed 1294 times
And now all messages to a@a.com are whitelisted and do not get spamchecked.
Post Reply