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 Debcrafters packages, which is subscribed to logcheck in Ubuntu. https://bugs.launchpad.net/bugs/2115858 Title: added mail alias incorrect for regexp format /etc/alias Status in logcheck package in Ubuntu: New Bug description: 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/logcheck/+bug/2115858/+subscriptions -- Mailing list: https://launchpad.net/~debcrafters-packages Post to : debcrafters-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~debcrafters-packages More help : https://help.launchpad.net/ListHelp