Script to manage /etc/aliases
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
aliases
mail_alias_add
mail_alias_search

README.md

Installation

sudo cp mail_alias_add mail_alias_search /usr/local/bin/

Add aliases at the end of /etc/aliases.

Replace "nico" by your local user.

Use

To add a site:

mail_alias_search site.com
# Show all entries contains site.com
# Or if missing:
# Open a vi editor on /etc/aliases
/NEW
# To search mark
yyP
# To clone the current line and stay on the upper line
ccw
# To replace the "NEW" mark with the aliases of your choice
ESC
:wq
# To save update it launch automaticaly aliases update