David Mir wrote:
What is the easiest way to set-up a catch-all for all none valid emails
for my
domain. That is if a email doesn't really exist (ie they spell their name
wrong) it gets sent to me otherwise it still just goes to the correct person?
I have seen some examples but they all seem to be all (valid and invalid) or
nothing?!?
Create a virtual user of "alias@[yourdomain.com]" (change
[yourdomain.com] to your domain in question, but the "alias@" is
mandatory). Note the [UID] and [GID] of that new user you made, as you
need it for the following commands:
mkdir /pathto/[yourdomain.com]dir/alias
/pathto/courier/bin/maildirmake /pathto/[yourdomain.com]dir/alias/Maildir
chown -R [UID].[GID] /pathto/[yourdomain.com]dir/alias
chmod -R 700 /pathto/[yourdomain.com]dir/alias
vi /pathto/[yourdomain.com]dir/alias/.courier-default
In the file ".courier-default" put your email address where you want all
non-matched emails to go to for that virtual domain.
Hope this helps!