wu-lee / exim-disposable-aliases

Exim config and related components for managing spamgourmet-like disposable aliases
Other
7 stars 5 forks source link

remaining count has two subtracted each delivery, not one #2

Open wu-lee opened 8 years ago

wu-lee commented 8 years ago

Check the logs written for each alias. E.g.

2015-12-10 00:07:54     xxx.5.  delivered=4     redacted@redacted      redacted@redacted      t1
2015-12-10 00:08:37     xxx.5.  delivered=2     redacted@redacted      redacted@redacted      t2
2015-12-10 00:19:26     xxx.5.  rejected        redacted@redacted      redacted@redacted      t3
wu-lee commented 8 years ago

The is because the router is run twice, once in verify mode. Both times decrement the counter.

I've discovered Exim 4.85 adds a variable to detect this, however it's rather a recent change and my exim version doesn't support it. I'd rather not rely on something so new, anyway.

There is an option not to run a router in verify mode, no_verify, possibly that's the most widely useful solution to this,

wu-lee commented 8 years ago

Argh, except of course that makes aliases undeliverable. Need a pair of routers, one for verify mode and one for not.