Re: Best way to filter mail when using recipient_delimiter

2022-04-01 Thread Matus UHLAR - fantomas

On 31.03.22 20:21, Togan Muftuolu wrote:

As the subject says what is the best strategy or way to filter and in this
case I would rather reject specific mail addresses that are using the format

user+whate...@example.com

So in this case I would like to reject any mail that has the +whatever suffix.


do you mean any accress containing the "+" or just the "+whatever" suffix?
the first should be doable by disabling recipient_delimiter so it's not 
considered delimiter and/or special.


this way you still should be able to create users/aliases with the "+" 
character if you want (or with any character "-", "0", "a" etc.).


the latter can be disabled by calling check_recipient_access 
"user+whate...@example.com	REJECT"


Note that you don't want to disable such expression globally, since there 
are people even in this mailing list using "+" in their mail addresses.



My understanding is

- Relocated doesn't make sense
- virtual can't be because the domain part is not a virtual domain

What I see is access as a possibility but up to now I have thought it as
allowing access to the sender not the receiver.

Am I missing the point here or is there a better way of doing this check and
reject those mails with the certain +whatever part

Thanks


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -- Benjamin Franklin, 1759


Re: Best way to filter mail when using recipient_delimiter

2022-04-01 Thread Togan Muftuoglu
> "Matus" == Matus UHLAR <- fantomas > writes:


Matus> the latter can be disabled by calling check_recipient_access
Matus> "user+whate...@example.com REJECT"

This is what I want to achieve and after reading the documentation at
http://www.postfix.org/RESTRICTION_CLASS_README.html I got the picture.

All is good now thanks for pointing to the right direction.


Matus> Note that you don't want to disable such expression globally, since
Matus> there are people even in this mailing list using "+" in their mail
Matus> addresses.

On various list I do use it, but one of those extensions have become a target
for spammers and I needed to disable that specific one.

Now I have the information I needed it's good to go and after I digest the
info at that page, I will try to use the classes concept.

Thanks again

Togan

--

Life is endless possibilities,
and there is choice!


Re: Best way to filter mail when using recipient_delimiter

2022-04-01 Thread Matus UHLAR - fantomas

"Matus" == Matus UHLAR <- fantomas > writes:

Matus> the latter can be disabled by calling check_recipient_access
Matus> "user+whate...@example.com REJECT"

This is what I want to achieve and after reading the documentation at
http://www.postfix.org/RESTRICTION_CLASS_README.html I got the picture.


restriction classes is the way to allow certain addresses from certain 
places, e.g. limit who can send mail to particular users.


Just take care that this address does not send mail to outside, so nobody 
complains they can't answer you.



Matus> Note that you don't want to disable such expression globally, since
Matus> there are people even in this mailing list using "+" in their mail
Matus> addresses.


On 01.04.22 09:49, Togan Muftuoglu wrote:

On various list I do use it, but one of those extensions have become a target
for spammers and I needed to disable that specific one.


this is perfect example of why to use +extensions.

I used different addresses in my domain to register to particular 
services so after disabling those services they can't mail me further.



Now I have the information I needed it's good to go and after I digest the
info at that page, I will try to use the classes concept.


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
How does cat play with mouse? cat /dev/mouse