Bounce handling

ana-balica avatarana-balica created an issue

Tweak sendmail() func by setting some additional mail headers for receiving DSN


And encode the userid (uid = user.meta['itemid']) in the FROM address of moin - from_mail+$

We need a function for determining if the inbound mail is a DSN. For that we need to check mail headers. A mail is a DSN if:

  • Content-Type: multipart/report; report-type=delivery-status;
  • Action: failed (rfc3464)

How to react on DSN:

Disable the user account (user.meta['disabled'] = True) and on next logins flash a message saying that "Your account was disabled due to some mail address problems. Please verify if the email address you have provided is valid and active."

That implies that we need a form, where the user can introduce his old login and a new email. The account will be activated and a new email will be set. Also we need to inform the admins on the DSN and provide user information. For instance we could email the admins the DSN headers and introduce minimally necessary information about the user.

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.