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

Confuse with configuration file #14

Open
hughwangmail opened this issue Mar 7, 2022 · 2 comments
Open

Confuse with configuration file #14

hughwangmail opened this issue Mar 7, 2022 · 2 comments

Comments

@hughwangmail
Copy link

I am confused with your configuration file:
here is your example:

{
    "sending domains": {
        "mydomain.com": {
            "yahoo.com": "a",
            "google.com": "txt",
            "apple.com": "txt",
            "reddit.com": "txt"
        },
        "myseconddomain.com": {
            "cisco.com": "a",
            "oculus.com": "a"
        }
    },
    "resolvers": [
        "8.8.8.8",
        "8.8.4.4"
    ],
    "email": {
        "to": "[email protected]",
        "from": "[email protected]",
        "subject": "[Change Detected] SPF Records for {zone} have changed.",
        "server": "email_server"
    },
    "output": "sums.json"
}

Here is my configuration without problem

{
    "sending domains": {
        "mydomain.com": {
            "mydomain.com": "txt"
        }
    },
    "resolvers": [
        "8.8.8.8"
    ],
    "email": {
        "to": "[email protected]",
        "from": "[email protected]",
        "subject": "[Change Detected] SPF Records for {zone} have changed.",
        "server": "localhost"
    },
    "output": "sums.json"
}

In my understanding,
"sending domains" is target domain to monitor.
But, what is the function of "myseconddomain.com"?

@cetanu
Copy link
Owner

cetanu commented Mar 7, 2022

sending domains allows for multiple, for circumstances where multiple zones/SPF records need to be maintained.

@hughwangmail
Copy link
Author

Uhhh, Ok got it. However, the "myseconddomain.com" only support A record. If I change "a" to "txt" under "myseconddomain.com", it will pop up an error:
ValueError: too many values to unpack (expected 2)

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