<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=lYCzn1QolK10N8" style="display:none" height="1" width="1" alt="">

Disabling SMTP-AUTH Username Logging

Normally the SMTP-AUTH username (if SMTP-AUTH is used) is logged in the Received header added to the email.

To disable this, set the SUPPRESS_LOGGING_SMTP_AUTH_USERNAME_IN_RECEIVED_HEADER environmental variable. (The value of the does not matter.)

For the different SMTP services, enable this as follows:

smtp service

Add to the following to the end of each allow lines in /var/hvmail/control/smtp.tcp.

,SUPPRESS_LOGGING_SMTP_AUTH_USERNAME_IN_RECEIVED_HEADER=""

For example, the resulting file may be:

127.0.0.1:allow,RELAYCLIENT="",SUPPRESS_LOGGING_SMTP_AUTH_USERNAME_IN_RECEIVED_HEADER=""
:allow,SUPPRESS_LOGGING_SMTP_AUTH_USERNAME_IN_RECEIVED_HEADER=""

Then reload the smtp.tcp file as defined on the SMTP Services page by running this command:

/var/hvmail/bin/hvmail_update_tcprules smtp

Be aware that this may also apply to the smtp2 or smtp3 service, if the /var/hvmail/control/smtp2.tcp and /var/hvmail/control/smtp3.tcp files are not used.

smtp2 and smtp3 services

Add the following line to the /var/hvmail/control/smtp2 or /var/hvmail/control/smtp3 file:

export SUPPRESS_LOGGING_SMTP_AUTH_USERNAME_IN_RECEIVED_HEADER=

Reload the configuration as defined on the SMTP Services page by running:

svc -tu /service/hvmail-qmail-smtpd2

or:

svc -tu /service/hvmail-qmail-smtpd3