On 1/24/22 13:36, John Batteen wrote:

Greetings list,

With the following config, with the secondary domain anonymized to bd.net: https://batteen.com/smtpd.conf.txt

and "fem: john" contained within /etc/mail/aliases

%{dest.user} is not expanding to the post-alias address as I expected.  Emails to f...@batteen.com (it's my power company so I can tell if they sold my email, not anything creepy) are being delivered to /var/mail/batteen.com/fem/Maildir instead of /var/mail/batteen.com/john/Maildir as I expected.

https://batteen.com/smtpdlog.txt

Man smtpd.conf explains: "alias <table>    Use the mapping table for aliases(5) expansion." which to me implies that "%{dest.user} user part after expansion" would be the user after processing through aliases.  However, in order to get the expected behavior, I must use %{user.username} instead.

I'm guessing that I've misinterpreted the man page, and would appreciate correction in my understanding, but on the off chance I have discovered undesired behavior, I bring it to the list.  If anything else in my config is less than ideal, I would appreciate feedback.

Thank you very much for your time,

John Batteen

It could very well be a dovecot issue. What does your "action" line look like for delivering mail.


Edgar

Reply via email to