linux – 修改后缀队列中文件上的电子邮件的收件人地址

前端之家收集整理的这篇文章主要介绍了linux – 修改后缀队列中文件上的电子邮件的收件人地址前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的mailq中有一些电子邮件因为一个很好的理由而被退回,电子邮件地址错误.
我想知道是否可以动态修改收件人的地址.
我可以看到邮件延迟存储的目录,我可以在那里更改一些内容,但我想知道是否有正确的方法来执行此操作.

任何想法?

解决方法

当你重新排队邮件时(postsuper -r< queue_id> | ALL):man postuper:

The message is subjected again to mail address rewriting and substitution.
This is useful when rewriting rules or virtual mappings have changed.

因此,最好的方式(或最少侵入的方式)是为该收件人重写地址.从Postfix Address Rewriting

/etc/postfix/main.cf:
    smtp_generic_maps = hash:/etc/postfix/generic

/etc/postfix/generic:
    his@localdomain.local       hisaccount@hisisp.example

按照此示例,您可以尝试:

/etc/postfix/generic:
    yourbadlyspelledname@destination.com        you_name@destination.com
原文链接:https://www.f2er.com/linux/397961.html

猜你在找的Linux相关文章