Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split outgoing email into batches to work around max number of recipients limit in some SMTP providers (infomaniak) #4319

Open
sfindeisen opened this issue Jun 4, 2024 · 3 comments
Labels
type:discuss Your views/opinions are requested type:enhancement Feature Request

Comments

@sfindeisen
Copy link

What would you like to be able to do?

Some Email providers, for example this one: https://www.infomaniak.com/en/support/faq/580/limits-on-the-number-of-e-mail-recipients (a major one in Switzerland, Europe) reject outgoing mail if the number of recipients (including Bcc addresses) is too large (more than 10 in this case). I would like to be able to compose and send my email as usual, and let neomutt make multiple emails out of one on send (with some throttling perhaps?) so as to circumvent this absurd limit.

What needs to change in NeoMutt?

Perhaps a new command like: "split this email into multiple ones and send them one by one, so that the number of recipients in each does not exceed L", where L could either be an argument to the command or perhaps a configuration file parameter. If there are any To: or Cc: addresses, those should be copied over to every copy, but, ideally, in the actual SMTP RCPT TO: commands they should appear only once.

I hope no provider will reject Email based on missing RCPT TO:, as compared to To: or Cc: field contents...

Have you tried any alternative methods?

Not really, what would be the best way?

I agree this feature would be somewhat arcane and so it is worth asking if building it into the neomutt core makes sense and justifies the added complexity. Let's maybe wait and see if there are any other major SMTP providers with this limitation?...

If this can be solved with a macro, hook or a script then I think that should be the preferred way. I am posting this issue anyway with the hope to streamline the discussion.

@sfindeisen sfindeisen added type:discuss Your views/opinions are requested type:enhancement Feature Request labels Jun 4, 2024
@sfindeisen sfindeisen changed the title split outgoing email split outgoing email into batches to work around max number of recipients limit in some SMTP providers Jun 4, 2024
@sfindeisen sfindeisen changed the title split outgoing email into batches to work around max number of recipients limit in some SMTP providers split outgoing email into batches to work around max number of recipients limit in some SMTP providers (infomaniak) Jun 4, 2024
@ossilator
Copy link
Contributor

workarounds:

  • for bccs, you can initially send the mail to only a few people, and then bounce it to the rest in batches.
  • for visible recipients, you could postpone the completed message, then bounce it in batches, and then manually move it to sent. the trick is to prevent mutt from using the to/cc headers for the smtp envelope.

the limit is indeed a bit ridiculous. to prevent abuse, the system should use a cool-off timer over the total amount of deliveries an account generates, not each message.

@sfindeisen
Copy link
Author

I just bounced an email to 2 other addresses of mine, and they're both visible in Resent-To: header field in each of the 2 copies, which defeats the purpose of Bcc. Is there a workaround?...

@gahr
Copy link
Member

gahr commented Jun 10, 2024

I would like to be able to compose and send my email as usual, and let neomutt make multiple emails out of one on send (with some throttling perhaps?) so as to circumvent this absurd limit.

I think something that's missing in your description but is kind of implied by "throttling" is "in the background". NeoMutt is single-threaded, so running this batch-sending in the background would imply a major refactoring.

What I'd look into, is to send emails via some local program instead of SMTP, and do the batching at that level. I'm not aware of an MTA that does that - a cursory glance at sendmail's man page didn't reveal anything - but perhaps there's something out there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:discuss Your views/opinions are requested type:enhancement Feature Request
Projects
None yet
Development

No branches or pull requests

3 participants