Кодировка автоответчика (Autoreply)
Версия от 22:37, 4 января 2016; Sol (обсуждение | вклад) (Новая страница: «Категория:VestaCP vim /etc/exim/exim.conf В секции begin transports # ... # ... # ... userautoreply: driver = autoreply file = /…»)
vim /etc/exim/exim.conf
В секции
begin transports
# ...
# ...
# ...
userautoreply:
driver = autoreply
file = /etc/exim/domains/$domain/autoreply.${local_part}.msg
from = "${local_part}@${domain}"
subject = "${if def:h_Subject: {Autoreply: ${quote:${escape:$h_Subject:}}} {Autoreply Message}}"
to = "${sender_address}"
Для нормальной кодировки письма добавляем строку
headers = Content-Type: text/plain; charset=utf-8;\nContent-Transfer-Encoding: 8bit
Для нормальной кодировки темы письма заменяем строку subject
subject = "${if def:h_Subject: {Autoreply: \"${rfc2047:$h_Subject:}\"} {Autoreply Message}}"