Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex Whitelist Fails #19

Open
maggyium opened this issue Sep 7, 2024 · 16 comments
Open

Regex Whitelist Fails #19

maggyium opened this issue Sep 7, 2024 · 16 comments

Comments

@maggyium
Copy link

maggyium commented Sep 7, 2024

I want to approve all the email coming into the domain ,
i've added the following regex:
^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$
&
\w*@\w*.\w*
Neither one is working
so i tested the one shown in example image
added \[email protected] and trying the test email function it doesn't show up anything when i enter [email protected]

image
image
Only adding the complete email address seems to work

@maggyium
Copy link
Author

maggyium commented Sep 7, 2024

Its not just the test page tho i'm not receiving emails unless i keep the complete address

@TBXark
Copy link
Owner

TBXark commented Sep 7, 2024

image

It seems that my parameters are written in reverse.

@maggyium
Copy link
Author

maggyium commented Sep 7, 2024

Plus there's another bug , so i have two chat ids one group and another personal, emails do get sent to both but commands only work in personal.

@TBXark
Copy link
Owner

TBXark commented Sep 7, 2024

You must @ the bot in the group for it to take effect.

@TBXark
Copy link
Owner

TBXark commented Sep 7, 2024

Oh, it may not work, I haven't specifically adapted it for groups.

@maggyium
Copy link
Author

maggyium commented Sep 7, 2024

You must @ the bot in the group for it to take effect.

I tried the command with @ tg auto fills that in group it didnt work, tried replying to bot's msg with command, still didn't work tho

@TBXark
Copy link
Owner

TBXark commented Sep 7, 2024

Maybe /start @botname will work, the command must be in front.

@TBXark
Copy link
Owner

TBXark commented Sep 7, 2024

You can create a separate issue and I will specifically adapt the group command for it.

@maggyium
Copy link
Author

maggyium commented Sep 7, 2024

That aside, so with .* regex entry even if test mail fails it should receive the email right ?

@TBXark
Copy link
Owner

TBXark commented Sep 7, 2024

  1. First, test the whitelist.
  2. Then test the blacklist.
  3. The rest can be directly allowed.

@maggyium
Copy link
Author

maggyium commented Sep 7, 2024

I am using "https://sendtestemail.com/" to test if i can receive emails or not , its showing status : bounced(few hrs ago i did receive emails from thsi), and i tried the youtube signup email too, i receive it on my another email but not getting it here.

@TBXark
Copy link
Owner

TBXark commented Sep 7, 2024

You can check the logs in the Cloudflare backend, and it's best to set up FORWARD_LIST for easier testing.

@maggyium
Copy link
Author

maggyium commented Sep 7, 2024

FORWARD_LIST is to fwd the email to another email address for backup am i right ? , is there other process thats needs to be done or i can just add the email to this env var

@TBXark
Copy link
Owner

TBXark commented Sep 7, 2024

Need to add the addresses in FORWARD_LIST to the trusted list in Cloudflare.

@maggyium
Copy link
Author

maggyium commented Sep 7, 2024

Yeah found the issue while doing that , apparently cloudflare had toggled catch-all off by itself :) now its working

@maggyium
Copy link
Author

maggyium commented Sep 7, 2024

want me to close this or just convert this into the grp commands not working issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants