1

Topic: Bad Header tuning

==== Required information ====
- iRedMail version: 0.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: CentOS 6.3
- Related log if you're reporting an issue:
====

My current setup is bouncing emails from fbo.gov because they are not putting a date field in the header.  What's the best way to let that through?  Where is that defined?  Is there a way to just globally whitelist a domain and skip all the spam checks?

-e

----

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

2

Re: Bad Header tuning

It's better to paste original bounce message here to help troubleshoot.

3

Re: Bad Header tuning

ZhangHuangbin wrote:

It's better to paste original bounce message here to help troubleshoot.

/var/log/maillog:

Sep  4 07:56:13 mail amavis[20287]: (20287-01) Blocked BAD-HEADER, [66.151.109.1] [66.151.109.1] <noreply@fbo.gov> -> <xxx@xxx.com>, quarantine: badh-8TsG1xh4bk66, mail_id: 8TsG1xh4bk66, Hits: -, size: 3535, 250 ms
Sep  4 07:56:13 mail postfix/smtp[20291]: 923512C2A22: to=<xxx@xxx.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=61, delays=61/0/0.01/0.25, dsn=2.5.0, status=sent (250 2.5.0 Ok, id=20287-01, BOUNCE)
Sep  4 07:56:13 mail postfix/qmgr[13663]: 923512C2A22: removed

header snip from example email:

X-Quarantine-ID: <vz5YI2q+41oO>
X-Amavis-Alert: BAD HEADER SECTION Missing required header field: "Date"
X-Spam-Flag: NO

4

Re: Bad Header tuning

You can find below lines in head of /etc/amavisd/amavisd.conf:

# @bypass_virus_checks_maps = (1);  # controls running of anti-virus code
# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code
# $bypass_decode_parts = 1;         # controls running of decoders&dearchivers

Please try add below line after them, then restart Amavisd service:

@bypass_header_checks_maps = (1);

It will bypass all header checks.