1

Topic: Error 554 5.6.0 with bad header

I use clamav and amavis with posfix.


Sometimes when I sent messages, I received a error message that says:


The message WAS NOT relayed to:
<ninoshkavera[at]cgmed.com.ec>:
  554 5.6.0 Bounce, id=06179-05 - BAD HEADER

This nondelivery report was generated by the program amavisd-new at host srv72.palosanto.com. Our internal reference code for your message is 06179-05/Vn1Ay1dDd7Ga

INVALID HEADER

Missing required header field: "Date"


I would like to know if is there any way of either correct the bad header or to omit this error message?

----

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

2

Re: Error 554 5.6.0 with bad header

Please add below lines in Amavisd config file, restart Amavisd service and try again:

# Selectively disable some of the header checks
#
# Duplicate or multiple occurrence of a header field
$allowed_header_tests{'multiple'} = 0;

# Missing some headers. e.g. 'Date:'
$allowed_header_tests{'missing'} = 0;

It's part of iRedMail-0.9.3, and it's enabled by default.

3 (edited by ahoracioadolfo 2019-11-30 16:26:50)

Re: Error 554 5.6.0 with bad header

Dear people:
I've got the same problem, I read it but I've got amavisd.conf in 2 places, one in /etc/amavisd/amavisd.conf and another in /etc/amavisd.conf . They were installed automatically, I'm using CentOS web panel with Centos 7.7.
Do I must edit these 2 files or I must edit only one? They have diferents KB.

Best regards,
Horacio.

4

Re: Error 554 5.6.0 with bad header

On CentOS 7, it's /etc/amavisd/amavisd.conf. You can check file /etc/systemd/system/multi-user.target.wants/amavisd.service to confirm this.