News for hackers. Stuff that matters.
Re:My Email Canary by chrisjsmith on Thursday June 09, 2011 @09:10AM (#2636982)
Why? I have two scripts "new-alias" and "kill-alias" that do all the work that took about 5 minutes each to write.

I automate everything.

Re:My Email Canary by pavel_lishin on Thursday June 09, 2011 @12:29PM (#2637709)
Can you share those scripts?
Re:My Email Canary by chrisjsmith on Thursday June 09, 2011 @01:55PM (#2638044)
I'd be embarrased if I posted them (they are crap) however here is how they work...

My mail comes directly into a Debian box running postfix on the end of my ADSL line.

new-alias: Echoes the alias onto the end of /etc/aliases, then runs newaliases.

kill-alias: Use sed to remove the line that matches the alias and run newaliases.

Dead simple.