mjl- / mox

modern full-featured open source secure mail server for low-maintenance self-hosted email
https://www.xmox.nl
MIT License
3.55k stars 100 forks source link

Config option to disable "greylisting" / first time sender slow down #144

Closed kbrgmn closed 5 months ago

kbrgmn commented 6 months ago

Hello, is it somehow possible to disable the "greylisting" / slowing down of SMTP transactions of first-time senders for 15 seconds?

mjl- commented 6 months ago

I happened to implement this last week! See https://github.com/mjl-/mox/commit/8b2c97808d8875a817e4de0eab66ffd9ed408201. The config option will be "NoFirstTimeSenderDelay: true" in an Account in domains.conf. Example:

Accounts:
    gopher:
        Destinations:
            gopher@gopherwatch.org: nil
        NoFirstTimeSenderDelay: true

See https://www.xmox.nl/b/#8b2c97808d8875a817e4de0eab66ffd9ed408201 for running this version. Should be safe to run, no risky commits have happened between v0.0.10 and this commit.

Curious: why would you need this? I implemented it for faster automated processing of incoming email (signup emails). I'm working on more changes in that area.

mjl- commented 5 months ago

hi @kbrgmn, i'm closing this issue, since i think it is solved. but feel free to reopen if the suggested solution doesn't work or there are other questions.