Hi,

On my server I have an alias from root to my email address, let's say it's [email protected]. This has been working for a while. When programs on the server send emails to root I will get it in my inbox.

I'm trying to configure gpg-mailgate[1] to encrypt my incoming emails. So far everything is good, except for those emails for root. According to the logs[2], the alias is expanded after the content filter. In fact, it is only expanded by the local delivery. Is there a way to let gpg-mailgate know about the expanded recipient? Here is how it is called in master.cf:

gpg-mailgate unix - n n - - pipe
    flags= user=nobody argv=/usr/local/bin/gpg-mailgate.py ${recipient}

According to the manpage of pipe[3] ${recipient} should be what I'm looking for, but since the content filter is applied too early I'm not sure how it should work out. Any advice?

[1]: https://github.com/ajgon/gpg-mailgate
[2]: http://notepad.cc/waulaji49
[3]: http://www.postfix.org/pipe.8.html

Reply via email to