Я хотел бы печатать с помощью ePrint, используя локальный адрес электронной почты (или псевдоним), например printer@example.com вместо myprinter@hpeprint.com. Поскольку я уже играл с сервисом ePrint от HP, сервис не печатает ничего, что не имеет myprint@hpeprint в качестве поля "to" или "cc", что означает, что моя первая попытка просто создать псевдоним в форме:
printer@example.com myprint@hpeprint.com
просто не сработала....
Гугление и переполнение стека вокруг привели меня к попытке использовать директиву recipient_bcc_maps, что я и сделал, используя:
файл: /etc/postfix/recipient_bcc_maps
# recipient_bcc map
printer@example.com myprint@hpeprint.com
and:
file: /etc/postfix/main.cf
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
но при попытке отправить любое письмо происходит следующая ошибка:
SMTP Error: [451] 4.3.0 Error: queue file write error
EDIT
Ошибка выше была исправлена с помощью postmap для изменения файла в хэш.
Если говорить абстрактно, то мне нужен способ, чтобы любое письмо, доставленное на print@example.com генерировало копию на myprint@hpeprint.com или поле "to" заменялось на myprint@hpeprint.com. Это осуществимо?
I believe you're on the right track using the bcc_maps. When you were going through the recipient_bcc_maps and after you added
print@example.com myprinter@hpeprint.com
Did you use postmap to hash the file? If not, do:
/usr/local/sbin/postmap /etc/postfix/recipient_bcc_maps
Once that is completed, you need to restart Postfix to apply the change:
service postfix stop
service postfix start
-Brendan
I think BCC will not appear in received message. You can try using canonical maps. http://www.postfix.org/postconf.5.html#canonical_maps