CSE505/Project
2024-04-21 23:10:08 -04:00
..
public feat: add README 2024-04-21 23:10:08 -04:00
index.js feat: add frontend 2024-04-17 21:09:55 -04:00
package-lock.json feat: remove unused dependecy and add npm start 2024-04-17 21:18:39 -04:00
package.json feat: remove unused dependecy and add npm start 2024-04-17 21:18:39 -04:00
README.md feat: add README 2024-04-21 23:10:08 -04:00

MailChecker

Requirement

  • swipl: SWI-Prolog version 9.2.3 for x86_64-linux
  • npm: 10.5.2
  • nodejs: v18.18.2

How to run it

npm install
npm start

then visit localhost:3000

Example input

google.com
renge.io
gmail.com
outlook.com
cs.stonybrook.edu

Expected result

a:
[
    "1.1.1.1" //list of IPs the input domain pointed to
]
mx:
[
    //list of mx domain and priority that the domain points to
    {
        "exchange": "example.com",
        "priority": 10
    }
]
spf:
{
    "spf": "v=spf1 mx -all", //spf record of the domain
    "allowedIP4": [
        "1.1.1.1" //lists of ipv4 ips that is allowed to send email from this domain
    ],
    "allowedIP6": [
        "2001:4860:4000::/36" //lists of ipv6 ips that is allowed to send email from this domain
    ]
}