Hosting multiple domains on a MailScanner box?

Henry Kwan lists at designmedia.com
Wed Jun 11 19:28:16 IST 2008


Eduardo Casarero <ecasarero <at> gmail.com> writes:

> in your /etc/mail/mailertable should se this for each domain:
> 
> domain1.com smtp:[1.2.3.4]
> domain2.com smtp:[exchange.domain2.com]
> domain3.com smtp:[alterserver.domain3.com]
> 
> and in your /etc/mail/access this:
> To:domain1.com RELAY
> To:domain2.com RELAY
> To:domain3.com RELAY

Hi,

Is there a way forward all the emails to one account on the primary domain?

Right now, what I ended up doing was to deliver the email locally.

In /etc/mail/virtusertable:
@domain2.com localaccount1
@domain3.com localaccount2

So all those emails are delivered locally on the Mailscanner box and I end up
reading them using mutt or pine.

Ideally, what I would like to do is to route all those emails to a catchall
account on the primary domain (something like domain2.catchall at designmedia.com).
 But if I modify the virtusertable or even add a .forward to localaccount1 so
that email gets forwarded to the primary domain, I get a "DSN: User unknown".

Thanks.




More information about the MailScanner mailing list