corecode / dma

The DragonFly Mail Agent, a small Mail Transport Agent (MTA), designed for home and office use.
Other
226 stars 50 forks source link

newaliases ignores config file's setting #90

Closed colazivi closed 3 years ago

colazivi commented 3 years ago

When run as 'newaliases' the config file is not read and only /etc/aliases is parsed, even though a different aliases-file may be set in the config file. Is this intentional?

The reason is: read_aliases() is called: https://github.com/corecode/dma/blob/7024d2e27873598792f095ff832d345388fa4827/dma.c#L470-L477 before: https://github.com/corecode/dma/blob/7024d2e27873598792f095ff832d345388fa4827/dma.c#L579

corecode commented 3 years ago

definitely a bug.