Giter Club home page Giter Club logo

mail's People

Contributors

mortal avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mail's Issues

Port emailtunnel to aiosmtpd

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."

DKIM fejl fordi quotes indsættes i Content-Type charset

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--

Charset issues

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.

Hjælpsom DSN

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  

Sende @TAAGEKAMMERET.dk mail fra personlige mailklienter

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.

Report each exception only once

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.