That is due to wildcards. At my former uni there were emails in the format of [name]@student.[faculty].pw.edu.pl where wildcard would be in the middle, so I figured it might be useful to have here. I can simplify wildcards to check for endswith:
```python
user_domain = post_vars['email'].split("@")[1]
if user_domain == domain:
    continue
else:
    if '*' in domain:
        if user_domain == domain.replace('*.', ''):
            continue
        elif user_domain.endswith(domain.replace('*', '')):
            continue
```
if only simple wildcards (insert everything instead of it) will be enough.