tk-it / mail Goto Github PK
View Code? Open in Web Editor NEWTÅGEKAMMERETs mailsystem
TÅGEKAMMERETs mailsystem
Right now, emailtunnel (the base of TK-IT/mail and matfystutor/mail) uses the smtpd from the Python standard library, but that module is deprecated as of Python 3.6 since it uses the old asyncore/asynchat instead of the new asyncio way of making servers.
We should port emailtunnel to aiosmtpd.
Brett Cannon, Sept 5, 2015:
"I should mention one of the motivations behind deprecating smtpd is that no one should be using that module to run an SMTP server and it doesn't provide utility like http.server does and so we probably should drop the code to prevent anyone accidentally using it and not have to maintain it."
Barry A. Warsaw, Feb 22, 2017:
"aiosmtpd is coming along nicely:
http://aiosmtpd.readthedocs.io/en/latest/
We'll soon have a 1.0 release. Still, I don't think it's worth pulling this into the stdlib. But we could silently deprecate it and point to aiosmtpd in the docs."
Exception raised because of this line:
Subject: =?UTF-8?B?UkVBTCBEaWdpdGFsIGNoYXNpbmcgcGF5bWVudCCjNjkxMC40Nw==?=
Når følgende mail kommer gennem mailsystemet er der indsat quotes rundt om utf-8
, og så fejler DKIM verifikation. Input:
Content-Type: multipart/alternative; boundary="JLHV59WCPRHGVBNKIJYKGSO9NATHV6"
Content-Transfer-Encoding: 8bit
--JLHV59WCPRHGVBNKIJYKGSO9NATHV6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8
redacted
--JLHV59WCPRHGVBNKIJYKGSO9NATHV6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8
redacted
--JLHV59WCPRHGVBNKIJYKGSO9NATHV6--
Output:
Content-Type: multipart/alternative; boundary="JLHV59WCPRHGVBNKIJYKGSO9NATHV6"
Content-Transfer-Encoding: 8bit
--JLHV59WCPRHGVBNKIJYKGSO9NATHV6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
redacted
--JLHV59WCPRHGVBNKIJYKGSO9NATHV6
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"
redacted
--JLHV59WCPRHGVBNKIJYKGSO9NATHV6--
Nogle gange genererer vi subject lines på formen [TK] =?unknown-8bit?q?Oplysninger_vedr=F8rende_dit_Apple-id_er_blevet_opdateret?=
, hvilket ikke er gyldigt.
Når vi modtager en subject line med en content-type vi ikke forstår, kaster vi en exception.
Begge dele skal fikses.
Når man sender til en lang liste af aliaser plusset sammen og laver en trykfejl i én af aliaserne, så får man et svar tilbage der ikke er nemt at tyde.
Mailsystemet burde lave en mere hjælpsom fejlmelding når nogle, men ikke alle, aliaser i en plus-liste er ugyldige.
Eksempel på nuværende fejlmelding. Det meste af fejlmeldingen er genereret af Postfix på pulerau, men strengen "550 Requested action not taken: mailbox unavailable" er defineret i mailsystemet.
This is the mail system at host pulerau.scitechtinget.dk.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<[email protected]>: host 127.0.0.1[127.0.0.1] said: 550 Requested action
not taken: mailbox unavailable (in reply to end of DATA command)
<FUUS+OCERM+FUGR+FUMY+OKASS+FUET+OFORM+FUAX+FUNK+FUBI+OSEKR+FUST+GFUAN+FUNL+FURT+FULO+FUZU+FORM+VC+INKA+FUTN+FUON+FUIL+FUHN@taagekammeret.dk>:
host 127.0.0.1[127.0.0.1] said: 550 Requested action not taken: mailbox
unavailable (in reply to end of DATA command)
<[email protected]>: host 127.0.0.1[127.0.0.1] said: 550 Requested action
not taken: mailbox unavailable (in reply to end of DATA command)
Reporting-MTA: dns; pulerau.scitechtinget.dk
X-Postfix-Queue-ID: 2EC06112E80A5
X-Postfix-Sender: rfc822; [email protected]
Arrival-Date: Thu, 15 Jun 2017 17:12:28 +0200 (CEST)
Final-Recipient: rfc822; [email protected]
Original-Recipient: rfc822;[email protected]
Action: failed
Status: 5.0.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 550 Requested action not taken: mailbox unavailable
Final-Recipient: rfc822; FUUS+OCERM+FUGR+FUMY+OKASS+FUET+OFORM+FUAX+FUNK+FUBI+OSEKR+FUST+GFUAN+FUNL+FURT+FULO+FUZU+FORM+VC+INKA+FUTN+FUON+FUIL+FUHN@taagekammeret.dk
Original-Recipient: rfc822;FUUS+OCERM+FUGR+FUMY+OKASS+FUET+OFORM+FUAX+FUNK+FUBI+OSEKR+FUST+GFUAN+FUNL+FURT+FULO+FUZU+FORM+VC+INKA+FUTN+FUON+FUIL+FUHN@taagekammeret.dk
Action: failed
Status: 5.0.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 550 Requested action not taken: mailbox unavailable
Final-Recipient: rfc822; [email protected]
Original-Recipient: rfc822;[email protected]
Action: failed
Status: 5.0.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 550 Requested action not taken: mailbox unavailable
Da http://TÅGEKAMMERET.dk viderestiller til https://TAAGEKMMERET.dk, prøver folk at sende mail til TÅGEKAMMERET.dk, det ser ikke ud til at virke. Jeg mener at enten skal http://TÅGEKAMMERET.dk ikke viderestille, eller så skal vi kunne modtage mail.
BEST og andre vil gerne kunde sende mail med deres @TAAGEKAMMERET.dk mailadresse i From-header fra deres mailklienter. Gmail kunne tidligere gøre det, men kræver nu en SMTP-server at sende det igennem.
Der står en masse på Rizzoma, som ikke rigtigt længere er relevant.
Rav skriver dec 2016:
Nanoramas tekniske ansvarlige har lige spurgt mig hvordan det går med dette. Jeg har sagt at det kommer på sigt.
Keep a data structure in memory (cleared on server restart) of which (file, line, exception type)-tuples have been reported to admin, to limit the amount of spam due to envelope resubmissions in response to SMTP 45x.
b97e80c er et hack for at få det til at virke... Fix det!
EmailMessage
is the new replacement for Message
. It has nicer header handling, so we can probably get rid of emailtunnel's own Message class altogether by switching to EmailMessage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.