To send and reply from aliases:
The aliases need to be entered as values for "aliases" in accounts.conf (see
`man aerc-accounts`). Once aliases are entered here, replying to emails
addressed to them will result in the 'from' header being correctly filled with
the alias address (you).
Also in accounts.conf set 'outgoing' to `msmtp --read-envelope-from`. This reads
the addresses from the 'from' header, and looks up the entry in msmtp conf. Also
in `man aerc-accounts`.
The aliases also need to be defined in msmtp conf (via inheritance) eg:
```text
account main@email.org
host ...
port ...
from ...
user ...
passwordeval "..."
... etc
account alias@email.org : main@email.org
from alias@email.org
```
this setup can be seen in bence's aerc config:
https://github.com/ferdinandyb/dotfiles/tree/master/.config/aerc
On Thu May 16, 2024 at 6:12 AM CEST, tjex wrote:
> To send and reply from aliases:
>
> The aliases need to be entered as values for "aliases" in accounts.conf (see
> `man aerc-accounts`). Once aliases are entered here, replying to emails
> addressed to them will result in the 'from' header being correctly filled with
> the alias address (you).
>
> Also in accounts.conf set 'outgoing' to `msmtp --read-envelope-from`. This reads
> the addresses from the 'from' header, and looks up the entry in msmtp conf. Also
> in `man aerc-accounts`.
>
I was missing the msmtp part, it works now. Thanks.
--
Nicolas Goy
Developer and electronic engineer
Goyman SA
https://kuon.ch
https://goyman.com