Here is try two at the end of line comment script for /etc/aliases.  Can
anyone do this more elegantly?

#!/bin/sh
# Created so we can have end of line comments in /etc/aliases
sed 's/#.*$//;/^$/d' < /etc/aliases > /tmp/aliases_tmp ;
/usr/sbin/sendmail -bi -oA/tmp/aliases_tmp ; mv /tmp/aliases_tmp.db
/etc/aliases.db

Wietse wrote the cryptic note "All the supported features are in the
DOCUMENTATION.".  But I have a different question: is this as elegant as
it gets?  Is there a more clever solution using the DOCUMENTATION
features that is available?  Will the moving of the aliases.db cause
other problems with postfix or postalias?

Reply via email to