Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Hide OpenDKIM Filter version in Centos 7
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Hide OpenDKIM Filter version in Centos 7

Hello

I want to hide OPenDKIM version as my client does not want to show in emails for some reason.

DKIM-Filter: OpenDKIM Filter v2.11.0 server.domain.com 3506081C66

He only wants to disable v2.11.0 from end.

Thank You for help in Advance.

Comments

  • akbakb Member

    Instead of trying to customize it, may be you can skip addition of entire "DKIM-Filter:" header by putting:

    SoftwareHeader false

    in your "/etc/opendkim.conf" file?

  • sed -i 's/SoftwareHeader yes/SoftwareHeader no/' /etc/opendkim.conf

    This is part of shell script. I have already did this thing.

  • ZappieZappie Member, Host Rep, LIR

    You cant only remove the version and keep the rest (without recompiling your own little edits), but as @akb said you can disable the full message.

    If you are interested here is the source for the specific part that sets

        if (conf->conf_addswhdr)
       {
               char xfhdr[DKIM_MAXHEADER + 1];
               
               memset(xfhdr, '\0', sizeof xfhdr);
               
               snprintf(xfhdr, DKIM_MAXHEADER, "%s%s v%s %s %s",
                        cc->cctx_noleadspc ? " " : "",
                       DKIMF_PRODUCT, VERSION, hostname,
                        dfc->mctx_jobid != NULL ? dfc->mctx_jobid
                                                : (u_char *) JOBIDUNKNOWN);
                ......
    

    @Hello_World said: sed -i 's/SoftwareHeader yes/SoftwareHeader no/' /etc/opendkim.conf

    Make sure its uncommented that line (remove the #) and then restart OpenDKIM

Sign In or Register to comment.