dma icon indicating copy to clipboard operation
dma copied to clipboard

Support for local-only delivery?

Open kevinoid opened this issue 6 years ago • 5 comments

Great project! I am currently using Exim configured as a local-only MTA and would like to switch to dma. I couldn't find a way to configure dma to disable remote delivery. Is it currently possible? If not, is it a feature which you might be willing to consider? If you are don't plan to implement it, but would accept a PR, any guidelines for the configuration option name etc.?

Thanks for considering, Kevin

kevinoid avatar Mar 12 '19 21:03 kevinoid

how would handle mails with a remote destination? bounce them?

corecode avatar Mar 12 '19 21:03 corecode

Exim delivers an DSN to the local postmaster. For my own uses, it would be fine if sendmail printed an error message and exited non-zero without queuing the message at all. I'd defer to your judgement for whichever is better (or easier to implement).

kevinoid avatar Mar 12 '19 21:03 kevinoid

Fair enough, why don't you submit a patch for a new config setting, say LOCAL_ONLY?

corecode avatar Aug 30 '19 07:08 corecode

I think I will give this a try. Though, I think I will call the setting LOCALONLY to follow the convention of the other config items that do not have underscores. And I can easily subst it if a different name makes more sense.

Great project by the way. As the smallest mail server in Debian, I love it in embedded, and kiosk type setups. I have wished it had local only delivery for a long time.

If you don't see a pull request in a week I probably had to give up.

tedkotz avatar Sep 03 '23 16:09 tedkotz

Actually I just saw this is duplicated by #121.

I'm going to push my change up to my fork, but hold off on making a PR as it will probably be superseded by #125.

tedkotz avatar Sep 03 '23 18:09 tedkotz