Erik Forsberg's diary for January, 2002

[2001]
[2002-01] [2002-02]

Thursday 2002-01-24

22:47

Implementing a special domain for each user using Postfix was easy. Let's say your domain is example.com, then add this:

*.user MX 10 mail

to the DNS zone. Then add this:

user.example.com

before the last entry in masquerade_domains in main.cf (if you are using masquerade_domains). At last, add this:

/(^.*)@(.*)\.user.example.com$/ $2+user_$1

to a pcre virtual map (i.e., you need this in your main.cf too:

virtual_maps = pcre:/etc/postfix/virtual.pcre

).

Now there's an unlimited amount of email addresses for each user to use in the form <something>@<username>.user.example.com

They will be delivered using the 'local' agent, so using .forward files named '.forward+user_<something>' will work.

Very handy for all these webforms where an email address is needed and you don't know if you can trust the other party. Just put '/dev/null' in a .forward+user_<something> when you don't want any mail addressed to <something>@<username>.user.lysator.liu.se and the problem is solved.

Wednesday 2002-01-23

21:46

You really had to use the i2c package from lm_sensors to get lm_sensors 2.6.2 to work.

Too sad my motherboard doesn't seem to support fan control.

Friday 2002-01-11

20:25

http://listes.rezo.net/how.php was a good way of implementing Mailman with Postfix. Much better than my idea..

Tuesday 2002-01-08

00:02

After entering the stuff from http://www.debian.org/News/weekly/2002/1/mail#1 into my apt configuration, Debian works even greater.

Another tip is that if you want a package from unstable even thought it exists in testing, you can do 'apt-get install <package>/unstable'. Very convenient.