qmail-masq-user provides a program to change From: field of emails to any combinations of user/domain.
Originally based off the program qmail-masq, qmail-masq-user uses qmail and qmail-qfilter to change the From: address of outgoing emails to almost any combination of username, domain, or both.
The configuration allows you to specify domain catch-alls, user catch-alls, email catch-alls, specific combinations of users and/or domains, and much more.
1) install and configure qmail
2) install qmail-qfilter
3) copy qmail-masq-user.conf.example to /etc/qmail-masq.conf and modify it for your
needs (follow the instructions in the file)
# cp qmail-masq-user.conf.example /etc/qmail-masq-user.conf
# chmod 644 /etc/qmail-masq-user.conf
# vi /etc/qmail-masq-user.conf
4) run the 'install.pl' included installer which will set up the files exactly
to be able to run them
# perl install.pl
4) all is done, you don't have to restart qmail, try it sending some email
and enjoy it!
Note: make sure you are root when you install everything!