Olivier Sannier wrote:
Gordon Messmer wrote:
If you're able to get a list of the valid addresses on somedomain.org,
then you can:
* add somedomain.org to esmtpacceptmailfor and hosteddomains
* create an alias file mapping all of the somedomain.org addresses to
somedomain.com
Sounds good. I assume the "alias" file is described in the
documentation, I'll look it up.
It is. You just need to generate a file in /etc/courier/aliases/ that
looks more or less like:
a...@example.com: a...@example.org
b...@example.com: b...@example.org
...
After you've generated the alias file, run "makealiases".
You'll also want to make arrangements on the MX for somedomain.org
server so that it never rejects messages from the MX from
somedomain.com. If it does, your queue and postmaster account are going
to fill up with spam, and the server will be difficult to manage properly.
How do I setup this?
You'd have to work that out with your provider. The risk you run is
that if your .org mail server rejects a mail for "a...@somedomain.org"
because it's spam or a virus, then courier will start rejecting mail for
"a...@somedomain.com" until that issue is resolved. You could turn off
backscatter suppression, but then you'd run in to the problem where your
queue fills up and postmaster gets a lot of mail it need not.
Generally, you need to make sure that either your .com server has the
same protections that your .org server has, or the .org server has to
whitelist the .com server and never check anything that comes in that way.