mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
smtpsrv: Pass EHLO/HELO domain to the post-data hook
Some utilities might want to access the EHLO/HELO domain in the post-data hook (for example, to do additional SPF validations). This patch implements that support, including sanitizing the EHLO domain on the environment variable to reduce the risk of problems.
This commit is contained in:
@@ -38,6 +38,8 @@ check "RCPT_TO=someone@testserver"
|
||||
check "MAIL_FROM=user@testserver"
|
||||
check "USER=$USER"
|
||||
check "PWD=$PWD/config"
|
||||
check "EHLO_DOMAIN=localhost"
|
||||
check "EHLO_DOMAIN_RAW=localhost"
|
||||
check "FROM_LOCAL_DOMAIN=1"
|
||||
check "ON_TLS=1"
|
||||
check "AUTH_AS=user@testserver"
|
||||
|
||||
Reference in New Issue
Block a user