Столкнулся с проблемой, доставки email писем рассылки модуля Email-маркетинг. При отправке тестового письма, выводится сообщение - Успешно отправлено! Проверьте почту. Но письма не приходят, даже в спам.
При проверка лога на сервере .msmtp.log - все отправляется успешно
Aug 01 17:01:00 host=127.0.0.1 tls=off auth=off from=info@domain.ru recipients=mail@gmail.com mailsize=14386 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as 04573268ED' exitcode=EX_OK
Подсказка оказалась в другом логе - /var/log/maillog
Aug 01 17:45:23 server postfix/smtpd[22387]: connect from localhost[127.0.0.1]
Aug 01 17:45:23 server postfix/smtpd[22387]: 529CF268EC: client=localhost[127.0.0.1]
Aug 01 17:45:23 server postfix/cleanup[22391]: 529CF268EC: message-id=<20240823144523.529CF268EC@server.domain.ru>
Aug 01 17:45:23 server opendkim[19893]: 529CF268EC: DKIM-Signature field added (s=server, d=domain.ru)
Aug 01 17:45:23 server postfix/qmgr[20159]: 529CF268EC: from=<info@domain.ru>, size=15097, nrcpt=1 (queue active)
Aug 01 17:45:23 server postfix/smtpd[22387]: disconnect from localhost[127.0.0.1]
Aug 01 17:45:23 server postfix/smtp[22392]: connect to gmail-smtp-in.l.google.com[2a00:1450:4010:c0f::1b]:25: Network is unreachable
Aug 01 17:45:23 server postfix/smtp[22392]: 529CF268EC: to=<mail@gmail.com>, relay=gmail-smtp-in.l.google.com[108.177.14.26]:25, delay=0.34, delays=0.08/0/0.18/0.08, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[108.177.14.26] said: 550-5.7.1 This message is not RFC 5322 compliant. There are multiple To headers. 550-5.7.1 To reduce the amount of spam sent to Gmail, this message has been 550-5.7.1 blocked. For more information, go to 550-5.7.1 https://support.google.com/mail/?p=RfcMessageNonCompliant and review 550 5.7.1 RFC 5322 specifications. 38308e7fff4ca-2f404869ce4si12829741fa.236 - gsmtp (in reply to end of DATA command))
Aug 01 17:45:23 server postfix/cleanup[22391]: A5609268F0: message-id=<20240823144523.A5609268F0@server.domain.ru>
Aug 01 17:45:23 server postfix/qmgr[20159]: A5609268F0: from=<>, size=18348, nrcpt=1 (queue active)
Aug 01 17:45:23 server postfix/bounce[22393]: 529CF268EC: sender non-delivery notification: A5609268F0
Aug 01 17:45:23 server postfix/qmgr[20159]: 529CF268EC: removed
Aug 0117:45:23 server postfix/local[22394]: A5609268F0: to=<root@server.domain.ru>, orig_to=<info@domain.ru>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 23 17:45:23 server postfix/qmgr[20159]: A5609268F0: removed
Подсказкой является строчка - There are multiple To headers.
То есть в письмах заголовок указывающий на получаетля письма указан как минмиум дважды. А дублирование происходит из-за включеной опции в натсройках главного модуля - Дублировать email адрес в заголовок
После того как галочка была убрана, ошибок больше небыло и письма стали доходить до адресата.