I had some difficulties configuring the server to use a rewrite rule in my session.rcpt config. It seemed to me that the server has ignored my rewrite rule until I've set session.rcpt.script to false in the config.
This has been fixed but in any case the code IfBlock::empty("session.rcpt.") was not causing any issues, it was just setting an incorrect variable name for logging.
What happened?
The current code, https://github.com/stalwartlabs/mail-server/blame/4e7087d33528d1dc145b02e7f195808a4e7ffc01/crates/common/src/config/smtp/session.rs#L611-L612, is:
Should it use
session.rcpt.script
instead?I had some difficulties configuring the server to use a rewrite rule in my
session.rcpt
config. It seemed to me that the server has ignored my rewrite rule until I've setsession.rcpt.script
tofalse
in the config.How can we reproduce the problem?
Use the default
session.rcpt
config.Version
v0.7.x
What database are you using?
None
What blob storage are you using?
None
Where is your directory located?
None
What operating system are you using?
None
Relevant log output
Code of Conduct