Post ARi4WV2DF6K44fdWyW by sindarina@mastodon.lol
(DIR) More posts by sindarina@mastodon.lol
(DIR) Post #ARi4WTFxr08OYk3U8G by sindarina@mastodon.lol
2023-01-16T13:25:04Z
3 likes, 7 repeats
Since I just saw yet another developer use '1.2.3.4' in an example configuration, a reminder that you MUST NOT use publicly routable addresses that you do not control in your code.Instead, use one of the available 'TEST-NET' IPv4 or IPv6 ranges documented in RFC 6890, such as;192.0.2.0/24198.51.100.0/24203.0.113.0/24❌ 1.2.3.4✅ 192.0.2.4Pass it on to all of your fellow developers, documentation writers, and so forth.Full RFC is here;https://datatracker.ietf.org/doc/rfc6890/
(DIR) Post #ARi4WV2DF6K44fdWyW by sindarina@mastodon.lol
2023-01-16T13:35:55Z
2 likes, 2 repeats
The same goes for domain names; do NOT use a public domain name you do not control in your configuration, documentation, or UI language.Instead, use one of the available reserved domain names documented in RFC 2606, such as 'example.com', 'example.net', or the .example top-level domain.❌ test.com❌ yourdomain.com✅ example.com✅ yourdomain.examplePass it on to your fellow developers, designers, documentation writers, and so forth.Full RFC text is here;https://datatracker.ietf.org/doc/html/rfc2606
(DIR) Post #ARi4WWnOh9ezXIijA0 by sindarina@mastodon.lol
2023-01-16T13:39:31Z
0 likes, 0 repeats
Oh, and please, if you are sending email, don't make up random addresses for your app to test with. Only send mail to addresses you know are valid, and for which you have permission to send mail.If you need to test SMTP while developing software, use a mock SMTP server that drops all outgoing email in a local directory, so you can inspect it without dumping a metric ton of email in your upstream's SMTP queue.
(DIR) Post #ARi4WYa03w8F4KT3YW by sindarina@mastodon.lol
2023-01-16T13:45:10Z
0 likes, 0 repeats
If you absolutely must generate unique email addresses for testing, either register a domain for that purpose and set up mail handling for it, or use the .test TLD, and knock yourself out with as many unique domain names and addresses as you like.Seriously, though; mock SMTP server. Don't be spewing your test noise onto the wider internets.
(DIR) Post #ARi4gm1WvtGrf1DTqi by meso@asbestos.cafe
2023-01-16T19:09:20.516853Z
0 likes, 0 repeats
@sindarina but it's owned by APNIC
(DIR) Post #ARiFczkR3yyGYycaCu by jeff@federated.fun
2023-01-16T21:11:51.479051Z
0 likes, 0 repeats
@xssfox @sindarina @parisba those users are triumphs of science tbh