LINUX.ORG.RU
решено ФорумAdmin

Логи Amavisd

 


0

2

Наткнулся на странное сообщение в логе почтовика:

<21>Nov 25 10:32:30 mail amavis[25887]: (25887-11) Passed BAD-HEADER-4 {RelayedInbound}, [172.16.1.1]:53330 [172.16.1.11] <sup@example.com> -> <my@example.net>, Queue-ID: DA98755F01, Message-ID: <f493ea7adf98ebc4b65c6cd217932e04@example.com>, mail_id: 6rNk73HJBUTN, Hits: 1.351, size: 6767, queued_as: 6529B55F02, 5480 ms
<21>Nov 25 10:32:30 mail amavis[25887]: (25887-11) INFO: unfolded 3 illegal all-whitespace continuation lines
Прочитал описание - не могу понять, как так получилось, прошу пояснить.
Спасибо за внимание.

PS.Письмо гОдное, от робота.

★★★★

Ответ на: комментарий от ArcFi

В моём случае, amavisd не «fixes it», а просто дропает письмо.
Вероятно не «allowed to».
Как мне ему помочь в этом?

Yustas ★★★★
() автор топика
Ответ на: комментарий от Yustas
# grep --color -hirC5 all-whitespace $(rpm -ql amavisd-new)
...
- new configuration variable $allow_fixing_improper_header_folding (also
  a member of policy banks) controls fixing improperly folded header fields
  made up entirely of whitespace (prohibited by RFC 2822) by removing
  all-whitespace continuation lines;  defaults to true for backward
  compatibility; fixing such header fields is desirable and can protect
  poorly written mail readers, but may break DomainKeys/DKIM validation of
  messages with illegal header, so if this is of concern, one has a choice
  of turning it off (if local MUAs can't be fixed);
...


Как вариант, сделать проверку заголовков не фатальной:

/etc/amavisd/amavisd.conf:$final_bad_header_destiny = D_PASS;

ArcFi
()
Ответ на: комментарий от ArcFi

Очень круто.
Спасибо за помощь.

Yustas ★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.