Hosting multiple domains on a MailScanner box?

Eduardo Casarero ecasarero at
Tue Jun 10 20:57:01 IST 2008

2008/6/10 Henry Kwan <lists at>:
> Hi,
> I almost have my MailScanner/Exchange setup complete but then I realized that I
> had a couple of secondary domains that I wanted to host the MX for as well.  I
> thought I could setup a virtusertable entry to create a catchall that forwards
> to a mailbox on the Exchange box but it doesn't seem to be working.  Whenever I
> send email to the secondary domains, I get a "dsn=5.1.1, stat=User unknown" and
> then a "savemail: cannot save rejected email anywhere" in maillog.
> Perhaps my Mailscanner/Exchange setup is incorrect?  Right now, I'm running
> MailScanner/Sendmail/SpamAssassin/ClamAV on the frontend.  The Mailscanner box
> is part of the domain.  There is a mailertable entry that
> forwards the "" to the IP of the Exchange box.  The domain
> "" is also in relay-domains.  I enter all the valid mailboxes as
> "RELAY" in access and everything else is rejected.
in your /etc/mail/mailertable should se this for each domain: smtp:[] smtp:[] smtp:[]

and in your /etc/mail/access this: RELAY RELAY RELAY

> I thought that entering them in virtusertable as "
> catchall at" would remap the emails as they came in but evidently
> this isn't the case.  Where is the proper place to stick all the information
> about the secondary domains?
> Thanks.
> --
> MailScanner mailing list
> mailscanner at
> Before posting, read
> Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list