Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
mail_autoconfig_revived
Advanced tools
This fork revives mail_autoconfig for my Email-API Sunnybox.io. It has been updated to support the latest Mozilla ISPDB location and format. I plan on adding new features like DNS SRV Records and general DNS lookups. Right now it works as a drop-in replacement.
A ruby gem to detect and parse any Thunderbird autoconfig file for a domain. Includes a copy of the Mozilla ISPDB (Nov 2023).
For general information about autoconf visit (https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration), for the autoconfig schema you should have a look at (https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat).
Although I've tried to keep parsing as accurate as possible, there may be omissions or errors. Please feel free to submit a patch in these cases.
Add this line to your application's Gemfile:
gem 'mail_autoconfig_revived'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mail_autoconfig_revived
Generally, you just want to get any associated configuration for an email address. In this case we'll use 'example@gmail.com'.
client_config = MailAutoconfig::for_address('example@gmail.com')
client_config.short_name
=> "GMail"
outbound_server = client_config.outgoing_servers.first
outbound_server.protocol
=> "smtp"
outnound_server.hostname
=> "smtp.googlemail.com"
When searching for a configuration, autoconfig first looks to it's local database for the domain of the address,
if this fails it will check http://autoconfig.#{domain}/mail/config-v1.1.xml
and then
http://#{domain}/.well-known/autoconfig/mail/config-v1.1.xml
. If both of these fail, Autoconfig will then look up
the MX records for the address, and perform the same searches on the domain of the primary MX record.
You may wish to update the database at some point to fetch the latest from Mozilla's ISPDB,
just run the rake task rake fetch_ispdb
.
git checkout -b my-new-feature
)bundle exec rspec spec
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that mail_autoconfig_revived demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.