Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amavis hostname is set to a wrong value #20

Closed
jeroenrnl opened this issue Jun 4, 2023 · 4 comments
Closed

Amavis hostname is set to a wrong value #20

jeroenrnl opened this issue Jun 4, 2023 · 4 comments
Assignees

Comments

@jeroenrnl
Copy link

A "virus blocked" notification fails with 501 5.5.4 Bad ENVID parameter syntax

This is due to
05-node-id:

$myhostname = `uname -a`.'domain.com';

this should be uname -n

@jeroenrnl
Copy link
Author

The uname -n command also adds a newline that postfix doesn't find amusing 😄. I settled on:

    use strict;

    my $myhost;
    # $myhostname is used by amavisd-new for node identification, and it is
    # important to get it right (e.g. for ESMTP EHLO, loop detection, and so on).

    chomp($myhost = `uname -n`);
    $myhostname = $myhost.'.__AV_MYDOMAIN__';

    1;  # ensure a defined return

@technicalguru technicalguru self-assigned this Jun 5, 2023
@technicalguru
Copy link
Owner

Thanks for the report. Will add it (not before weekend though).

@technicalguru
Copy link
Owner

Released in fix 2.11.1.6

@technicalguru
Copy link
Owner

@jeroenrnl - Thank you for contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants