[14:45:33] I would like to send an email from a gitlab CI/CD pipeline [14:45:49] do you know if using `echo something | sendmail` "just works"? :-) [14:46:43] Definitely not [14:47:11] Email... that's a tough one. [14:48:24] Unfortunately I don't have any immediate suggestions on how to deal with that. [14:51:45] dancy: I was naively trying to implement this: [14:51:46] https://gitlab.wikimedia.org/repos/cloud/cloud-vps/networktests-tofu-provisioning/-/blob/main/.gitlab-ci.yml#L33 [15:17:10] arturo: from a WMCS runner I think you should be able to talk to the mx-out-{a,b}.wmcloud.org hosts. https://wikitech.wikimedia.org/wiki/Help:Email_in_Cloud_VPS#Using_Cloud_VPS_smtp_servers [15:19:02] You could also think about making a Phabricator task that would then have Phab notify subscribers or something similar. [15:36:37] bd808: thanks. Also, it would be the cherry on top if that page mentioned a particular `sendmail` command that I could just copy-paste [15:37:12] `sendmail` requires a binary and config that generally we don't put in containers [15:37:57] or maybe bare `mail` ? [15:40:55] I don't know that `mail` can speak SMTP itself either. I think it is usually just a MUA used to hand things off to a local MTA. [15:41:19] MUA=mail user agent; MTA=mail transfer agent [15:41:49] email is a lot of raccoons in a trench coat. [15:44:01] I wonder if python's smtplib has a module entry point for sending messages... [15:45:38] Apparently not, but there is a reasonably short example of how to use it at https://docs.python.org/3/library/smtplib.html#smtp-example [16:59:01] cat < BLABLA [16:59:11] EOF [16:59:37] this is what works in production. but yes, it delivers it to the MTA on localhost [17:00:32] maybe it's helpful regardless. this is the newer "mail" command. as in "mailx". The Debian package is "bsd-mailx" and it replaced the old mail command and sendmail [17:01:45] arturo: nowadays the /usr/bin/mail command is provided by this bsd-mailx package [17:03:19] also "s-nail". apt-cache show s-nail | apt-cache show bsd-mailx [17:05:15] yea, it's actually the s-nail package we installed on prod phab and dumps hosts for this. [23:42:50] 10GitLab (Account Approval), 06Release-Engineering-Team, 07Essential-Work: Requesting GitLab account activation for [Ironblade101] - https://phabricator.wikimedia.org/T391203#10767122 (10thcipriani) [23:43:44] 10GitLab (Project Migration), 10m3api, 06Release-Engineering-Team, 07Essential-Work: Create new GitLab project group: m3api - https://phabricator.wikimedia.org/T392323#10767123 (10thcipriani)