Varun Varma posted in linux-india-help:
> Generic solution for all MTAs: Create aliases/rewrite rules for offsite 
> addresses. E.g., for sendmail, in /etc/aliases:
> 
> offsiteuser: [EMAIL PROTECTED]

My solution is somewhat similar, but takes care of multiple MXes for
the subdomain.

Assuming foo.com has MX mx1.foo.com, but [EMAIL PROTECTED] wants to check
his email on bar.foo.com:

On mx1.foo.com, I use the MTA's forwarding/aliasing facility to forward
[EMAIL PROTECTED] to [EMAIL PROTECTED]

In DNS for foo.com, I have a.foo.com IN MX bar.foo.com (you can have
multiple MXes for a.foo.com).

On bar.foo.com, a.foo.com is configured as a local domain. On mx1.foo.com,
foo.com is a local domain (as expected - since MTAs won't touch aliases
DB for emails that are not meant for local domains).

Simple solution to fix the problem. Only issue is to maintain the
account info for every user on bar.foo.com at two places. But with my
favourite Courier, I can do this one also easily (as Courier can take
mail aliases also from an LDAP backend).

Note that both mx1.foo.com and bar.foo.com need permanent Internet
connections. Firewall bar.foo.com to accept SMTP connections only from
mx1.foo.com (use the MTA itself or tcpwrappers if supported).

Binand

-- 
[EMAIL PROTECTED] root]# uptime
11:55am  up 58 days,  4:49,  2 users,  load average: 1023.78, 419.92, 158.90


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to