[GH-ISSUE #69] Autoreply bounce - gmail and msn #39

Closed
opened 2026-02-27 10:25:28 +03:00 by kerem · 0 comments
Owner

Originally created by @lmfrazao on GitHub (Jul 7, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa-postfix-autoreply/issues/69

since I updated to modoboa 1.15 with django 3.6 and postfix-autorply 1.6.0 I am geting this error sending emails to an account with autoreply on from gmail and msn. did some tests with other accounts and works ok.

This is the mail system at host xxx.xxx.xx.

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

               The mail system

<"xxxx@xxxx.xxxxx.xx"@autoreply.xxxx.xxxxx.xx> (expanded from
xxxx@xxxx.xxxxx.xx): Command died with status 1:
"/srv/modoboa/env/bin/python3". Command output: Traceback (most recent call
last): File "/srv/modoboa/instance/manage.py", line 22, in
execute_from_command_line(sys.argv) File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/management/init.py",
line 381, in execute_from_command_line utility.execute() File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/management/init.py",
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv) File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/management/base.py",
line 323, in run_from_argv self.execute(*args, **cmd_options) File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/management/base.py",
line 364, in execute output = self.handle(*args, **options) File
"/srv/modoboa/env/lib/python3.6/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py",
line 214, in handle send_autoreply(sender, mbox, armessage,
original_msg) File
"/srv/modoboa/env/lib/python3.6/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py",
line 107, in send_autoreply msg.send() File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/message.py",
line 291, in send return
self.get_connection(fail_silently).send_messages([self]) File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/backends/smtp.py",
line 110, in send_messages sent = self._send(message) File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/backends/smtp.py",
line 124, in _send message = email_message.message() File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/message.py",
line 275, in message msg[name] = value File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/message.py",
line 169, in setitem name, val = forbid_multi_line_headers(name,
val, self.encoding) File
"/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/message.py",
line 60, in forbid_multi_line_headers raise BadHeaderError("Header
values can't contain newlines (got %r for header %r)" % (val, name))
django.core.mail.message.BadHeaderError: Header values can't contain
newlines (got '\n
VI1PR06MB4495C2A2E6D2F7D38320B005C5660@VI1PR06MB4495.eurprd06.prod.outlook.com'
for header 'In-Reply-To')

Originally created by @lmfrazao on GitHub (Jul 7, 2020). Original GitHub issue: https://github.com/modoboa/modoboa-postfix-autoreply/issues/69 since I updated to modoboa 1.15 with django 3.6 and postfix-autorply 1.6.0 I am geting this error sending emails to an account with autoreply on from gmail and msn. did some tests with other accounts and works ok. This is the mail system at host xxx.xxx.xx. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <"xxxx@xxxx.xxxxx.xx"@autoreply.xxxx.xxxxx.xx> (expanded from <xxxx@xxxx.xxxxx.xx>): Command died with status 1: "/srv/modoboa/env/bin/python3". Command output: Traceback (most recent call last): File "/srv/modoboa/instance/manage.py", line 22, in <module> execute_from_command_line(sys.argv) File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line utility.execute() File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/management/__init__.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv self.execute(*args, **cmd_options) File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute output = self.handle(*args, **options) File "/srv/modoboa/env/lib/python3.6/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py", line 214, in handle send_autoreply(sender, mbox, armessage, original_msg) File "/srv/modoboa/env/lib/python3.6/site-packages/modoboa_postfix_autoreply/management/commands/autoreply.py", line 107, in send_autoreply msg.send() File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/message.py", line 291, in send return self.get_connection(fail_silently).send_messages([self]) File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/backends/smtp.py", line 110, in send_messages sent = self._send(message) File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/backends/smtp.py", line 124, in _send message = email_message.message() File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/message.py", line 275, in message msg[name] = value File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/message.py", line 169, in __setitem__ name, val = forbid_multi_line_headers(name, val, self.encoding) File "/srv/modoboa/env/lib/python3.6/site-packages/django/core/mail/message.py", line 60, in forbid_multi_line_headers raise BadHeaderError("Header values can't contain newlines (got %r for header %r)" % (val, name)) django.core.mail.message.BadHeaderError: Header values can't contain newlines (got '\n <VI1PR06MB4495C2A2E6D2F7D38320B005C5660@VI1PR06MB4495.eurprd06.prod.outlook.com>' for header 'In-Reply-To')
kerem closed this issue 2026-02-27 10:25:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-postfix-autoreply-modoboa#39
No description provided.