www.digitaldaze.com
How do I automatically send mail to the trash (dev/null)?

How do I direct a specific email address going to a virtually hosted domain to null?

You will need to create an alias (if one doesn't already exist) in the etc/aliases file that sends all received mail to /dev/null. Something like:

dev-null: /dev/null

I just use "dev-null" as an example alias name. The alias can be named whatever you want.

Then in etc/virtmaps you can set up any address to map to the "dev-null" (or whatever you named it) alias:

user@domain.ext     dev-null

Don't forget to run vnewaliases and vnewvirtmaps when finished.

 

[Legal Notice]
http://www.digitaldaze.com