Snawoot / postfix-mta-sts-resolver

Daemon which provides TLS client policy for Postfix via socketmap, according to domain MTA-STS policy
MIT License
120 stars 23 forks source link

add default user-agent to mta-sts policy lookups #21

Closed toxicvengeance closed 5 years ago

toxicvengeance commented 5 years ago

Purpose of proposed changes

add default user-agent to override standard aiohttp user-agent + version info

Essential steps taken

MTA-STS lookup now appear like this in webservers acces.log

1.2.3.4 - - [xxx] "GET /.well-known/mta-sts.txt HTTP/1.1" 200 3727 "-" "postfix-mta-sts-resolver"

before:

1.2.3.4 - - [xxx] "GET /.well-known/mta-sts.txt HTTP/1.1" 200 3727 "-" "Python/3.7 aiohttp/3.5.4"

Snawoot commented 5 years ago

Thank you!

Changes released with v0.4.5