The main idea is to have a set of
firstname.lastname@example.org addresses, all redirecting to a single mailbox. Then I can use any address
@ads.mydomain.com as an alias to my primary mailbox.
This way, I give
email@example.com to Ebay,
firstname.lastname@example.org to Amazon and so on.
This solutions allows me to disable an alias if unsubscribing on the site doesn’t work. I can also use this to track sites selling my address to other sites.
First, Exim has to listen on the network, and accept mail to the
ads.mydomain.com domain. Under Debian, put this in
Note under Debian: each time Exim starts the
/etc/exim4/exim4.conf.template file is filled with variables set in
/etc/exim4/update-exim4.conf.conf, générating the
/var/lib/exim4/config.autogenerated file. This is to ease Exim configuration in standard cases.
Then edit the
/etc/exim4/exim4.conf.template file to add a new router, in first position just bellow
catchall_pub: driver = redirect domains = ads.mydomain.com data = email@example.com
The router will be called for any mail @ads.mydomain.com. It give all mails to the redirect transport sending them to the address set in data.
Finally, you can then use a
/home/user/.forward file to disable aliases with a Sieve or Exim filter.
UPDATE 2010-11-10: another way of disabling aliases
- How Exim receives and delivers mail
- Router configuration