Anti spam measures

spam
The following few additions to postfix main.cf:
### SPAM Prevention techniques
### http://www.cyberciti.biz/tips/postfix-spam-filtering-with-blacklists-howto.html
### disable_vrfy_command = yes
smtpd_recipient_restrictions = permit_mynetworks, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_unknown_sender_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client dnsbl.sorbs.net, reject_rhsbl_sender dsn.fc-ignorant.org, check_policy_service inet:127.0.0.1:60000, permit
smtpd_data_restrictions = reject_unauth_pipelining, reject_multi_recipient_bounce, permit
In addition to this, I Installed postgray, a post processor to postfix, which rejects new mail servers the first few times, for a little while. Real smtp servers will re-deliver later. Spambots, it is said, are not always that patient.
Those two measures together have reduced my spam flow for a single mail account (with many aliases) from one spam an hour or more, to no spam in a week.
Virtual domains

virtual
For my new pet project I am dreaming I need to have more domains configured into my postfix installation. I first followed this blog entry about virtual domains for postfix but I saw the following errors:
Jun 11 20:51:07 d505 postfix/virtual[15433]: fatal: main.cf configuration error: virtual_mailbox_limit is smaller than message_size_limit
this was easily fixed by adding the key to main.cf with an appropriate value.
Next error was unrecognised user:
to=<REMOVED@iamdreaming.org>, relay=virtual, delay=0.02, delays=0.02/0/0/0, dsn=5.1.1, status=bounced (unknown user: “REMOVED@iamdreaming.org”)
Still working on it ….
It did not recognise my first alias.
Then I checked out the file /etc/postfix/virtual. That rang a bell, it provides a mapping from email@somedomain to some other email, and that was really what I needed. So I reverted the changes form above and tried out out to just provide virtual aliases.
After much mocking about, I found that the following two lines in main.cf had the effect that I wanted:
relay_domains =
iamdreaming.org
bition.net
virtual_alias_maps = hash:/etc/postfix/virtual
in /etc/postfix/virtual i then list the email adresses from the domains, REMOVED@iamdreaming.org etc. and their real destinations (e.g. at efef, gmail or someother).
Nice with a little sucess in just a few hours, I must admit that I have been tempted to skip having my own smtp server and just move it to some provider, but now, I think I will continue yet some.