Public bug reported:
Using postfix with regexp in /etc/aliases.
# postconf -n alias_maps
alias_maps = regexp:/etc/aliases
Then install logcheck:
# apt install logcheck
...
postalias: warning: /etc/aliases, line 7: need name:value pair
postalias: warning: /etc/aliases, line 8: need name:value pair
...
Look what the cat brought in:
# tail -1 /etc/aliases
logcheck: root
This is incorrect for a regexp based alias map.
In this case i would suggest adding:
/^logcheck$/ root
Check that it works:
# postalias -q logcheck regexp:/etc/aliases
root
There are other formats too for /etc/alias, as witnessed by
# postconf -m
Maybe it is not necessary at all to add an alias? At least not in
unrecognized/unhandled cases.
Regards, Mike
** Affects: logcheck (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115858
Title:
added mail alias incorrect for regexp format /etc/alias
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logcheck/+bug/2115858/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs