
Good day!
I am setting up an email list for my local community (just myself right now). Being a nerd, I am using Amazon SES to send and receive emails. I have mailman installed on ec2 (using "pip install mailman") and it is working well enough to send an email to the list with
/opt/mailman/venv/bin/mailman inject -f <somefile>all@mymaillist.org
SES is putting incoming mail into an S3 bucket, one file per email. Using a small python program, I use the above command to send them to the list.
When I add a user (like myself) I get a welcome email from all-request@mymaillist.org. When I respond, the mail arrives in the S3 bucket, but I do not know how to give it to mailman3. The "inject" command will not work because there is no "all-request" mailing list.
How do I feed these administrative mails to mailman3?
Thank you.
I have tried netcat the email to the ?LMTP? port, but it fails:
(venv) [ec2-user@ip-10-0-3-253 mailman]$ nc localhost 8024 < /tmp/pbTw1oqmV1rZtHXV707Jcov264hr 220 ip-10-0-3-253.ec2.internal GNU Mailman LMTP runner 2.0 500 Error: command "RECEIVED-SPF:" not recognized 500 Error: command "AUTHENTICATION-RESULTS:" not recognized 500 Error: command "" not recognized 500 Error: command "" not recognized 502 5.5.1 Too many unrecognized commands, goodbye.
here is what the first few lines of an email file look like. (Some values have been changed)
Received-SPF: pass (spfCheck: domain of lahnakoski.com designates 8.8.8.8 as permitted sender) client-ip=8.8.8.8;envelope-from=kyle@lahnakoski.com; helo=cichlid.ash.relay.mailchannels.net; Authentication-Results: amazonses.com; spf=pass (spfCheck: domain of lahnakoski.com designates 8.8.8.8 as permitted sender) client-ip=8.8.8.8;envelope-from=kyle@lahnakoski.com; helo=cichlid.ash.relay.mailchannels.net; dkim=failheader.i=@lahnakoski.com; dmarc=none header.from=lahnakoski.com; Return-Path:<kyle@lahnakoski.com> Received: from cichlid.ash.relay.mailchannels.net (cichlid.ash.relay.mailchannels.net [8.8.8.8]) by fips.wmjb.mail-manager-smtp.amazonaws.com with ESMTPS id p78l98r6nfp05h5lbb24phnsrovpcomu57smml81 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384) for<all-request@mymaillist.org>; Sun, 09 Mar 2025 15:13:30 +0000 (UTC) ...