1

Topic: Bad Headers Checks for outgoing mails.

- iRedMail version (check /etc/iredmail-release)
==> 0.9.9
- Deployed with iRedMail Easy or the downloadable installer?
==>downloadable installer?
- Linux/BSD distribution name and version
==>  Debian Linux 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL)
==> MySQL
- Web server (Apache or Nginx)
==> Nginx
- Manage mail accounts with iRedAdmin-Pro?
==> Yes.
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

In case of bad header checks in amavis for outgoing mails are kept in Quarantine and it is stuck until we forcefully release the same.

Following are the error message

###########################################

X-Amavis-Alert     BAD HEADER SECTION, Improper folded header field made up entirely of whitespace (char 09 hex): References: ...rprd06.prod.outlook.com> <AM5PR0601MB2[...]

###########################################

I want to disable bad header checking for only outgoing emails.


Thanks
Sunil

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Bad Headers Checks for outgoing mails.

RajeshM wrote:

- Manage mail accounts with iRedAdmin-Pro?
==> Yes.
...
I want to disable bad header checking for only outgoing emails.

Login to iRedAdmin-Pro as global admin, go to domain profile page, go to tab "Spam Policy", you can manage it here.

3

Re: Bad Headers Checks for outgoing mails.

ZhangHuangbin wrote:
RajeshM wrote:

- Manage mail accounts with iRedAdmin-Pro?
==> Yes.
...
I want to disable bad header checking for only outgoing emails.

Login to iRedAdmin-Pro as global admin, go to domain profile page, go to tab "Spam Policy", you can manage it here.

Hi,

I hope after disabling bad-headers checks in global Spam Policy still server will checks for incoming bad-headers emails and get Quarantine .

I want to disable only for outgoing mails checks.

Please confirm.

Thanks,
Sunil

4

Re: Bad Headers Checks for outgoing mails.

RajeshM wrote:

I want to disable only for outgoing mails checks.

You need to update Amavisd config file instead:

$policy_bank{'ORIGINATING'} = {
    ...
    bypass_banned_checks_maps => [1],
    ...
};

5

Re: Bad Headers Checks for outgoing mails.

ZhangHuangbin wrote:
RajeshM wrote:

I want to disable only for outgoing mails checks.

You need to update Amavisd config file instead:

$policy_bank{'ORIGINATING'} = {
    ...
    bypass_banned_checks_maps => [1],
    ...
};

HI,

same option is already enable on server this will bypass outgoing mails within server, but not to the outside server e.g. as below.

E.g. abc@abc.com and pqr@abc.com both are my server users and user@xyz.com are outside server user (client of abc.com)

In case of vacation message set on abc@abc.com if pqr@abc.com sends mail to abc@abc.com it will bypass bad-headers check but in case of user@xyz.com(which is outside/external server user) sends email to abc@abc.com mails are stuck in Quarantine.

Thanks
Sunil

6

Re: Bad Headers Checks for outgoing mails.

$policy_bank{'ORIGINATING'} = {
    ...
    bypass_banned_checks_maps => [1],
    ...
};

See if # is there or not . If # is present remove it.

7

Re: Bad Headers Checks for outgoing mails.

kishancrest wrote:

$policy_bank{'ORIGINATING'} = {
    ...
    bypass_banned_checks_maps => [1],
    ...
};

See if # is there or not . If # is present remove it.

Hi,

There is no # same is already removed.

Thanks
Sunil