Elektrine lite

← Feed

@sindarina@ngmx.com

Post #2098139

2023-06-24 08:27 UTC

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. 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 have as many unique domain names as you like. 3/ END

Replies (9)

  • @sindarina@ngmx.com 2023-06-24 18:28

    There's always at least one person who doth protest too loudly, whenever they are alerted to bad habits like these 😂

    Open ##2098140

  • @gboussard@mamot.fr 2023-06-25 10:15

    @sindarina 4/ Do not use "/dev/sda" or any valid volume name in an example for a formatting command.

    Open ##2098153

  • @sindarina had to alert my company that we were sending automated emails of sensitive data to an email address at test.com before. whoever owns those domains probably has access to every secret in the country by now...

    Open ##2098156

  • @sindarina And, for the love of god, start using test e-mail infrastructure. It's a 10 minute job to start a greenmail container or something similar. Gazillions of postmasters are sick of seeing your junk in their logs.

    Open ##2098158

  • @w0ger@woof.group 2024-03-03 18:27

    @sindarina a good mock SMTP option is mailtrap.io

    Open ##2098159

  • @mtrnord@mtrnord.blog 2024-12-31 16:30

    @sindarina Reminds me that Grafana sets a default alert contact to every instance which afaik cant be removed using provisioning. Which is annoying as fastmail keeps complaining about unable to send email to example.com :|

    Open ##2098160

  • @raven667@hachyderm.io 2024-12-31 21:17

    @sindarina I set up a little ansible play that adds regex-based virtualhost config to postfix that effectively makes _all_ mail delivered to a local user, for our QA hosts, so all the cron jobs and reporting jobs and whatnot that use /usr/sbin/sendmail have their output captured and *don't* *leak*, because customers _love_ it when they get a bunch of weird reports and errors from random QA systems in various states of broken when testing (so does the helpdesk when fielding their paniced calls).

    Open ##2098162

  • @XenoPhage@infosec.exchange 2025-03-17 15:40

    @sindarina https://github.com/rnwood/smtp4dev is a great tool for this. Works wonderfully in a container.

    Open ##2098164

  • @pixelcode@social.tchncs.de 2024-12-31 16:55

    @sindarina@ngmx.com Also, Germany's Federal Network Agency has defined various “drama numbers” – unassigned phone numbers for use in movies: https://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/mittlg148_2021.pdf?__blob=publicationFile&v=1 Landline: Berlin: 030 23125 000 – 999 Frankfurt a.M.: 069 90009 000 – 999 Hamburg: 040 66969 000 – 999 Cologne: 0221 4710 000 – 999 Munich: 089 99998 000 – 999 Mobile: 0152 28817386 0152 28895456 0152 54599371 0171 39200 00 – 99 0172 9925904 0172 9968532 0172 9973185 0172 9973186 0172 9980752 0174 9091317 0174 9464308 0176 040690 00 – 99

    Open ##3354926