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

Add domains from mail.tm #465

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

e-nomem
Copy link

@e-nomem e-nomem commented Mar 25, 2024

These domains are used by the temporary email service mail.tm. This PR contains all the domains from #460 and a few more.

The list in this PR can be verified by running the following bash script (it works because all the domains here resolve their MX records to in.mail.tm)

#!/usr/bin/env bash
set -euo pipefail

PR="465"
PROVIDER="mail.tm"
MX_RECORDS=("in.mail.tm.")

while read -r line; do
    echo "Checking $line"
    mx="$(dig +short MX "$line" | cut -d' ' -f2-)"
    grep_args=()
    for search_record in "${MX_RECORDS[@]}"; do
        grep_args+=('-e' "^${search_record//./\.}$")
    done
    grep -q "${grep_args[@]}" <<< "$mx" || echo "$line is not part of $PROVIDER (MX: $(paste -s -d' ' - <<< "${mx:-missing}"))"
done < <(curl -fsSL -o- https://github.com/disposable-email-domains/disposable-email-domains/pull/$PR.diff | grep '^+[^+]' | cut -d'+' -f2-)

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

Successfully merging this pull request may close these issues.

None yet

1 participant