-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is what I would do (if they were all qmail vpopmail machines):  (this
is a UGLY hack... but it'd probably work)

emailserver1.mydomain.com
MX (emailserver1)
 account: user1

emailserver2.mydomain.com
MX (emailserver2)
 account: user2

emailserver3.mydomain.com
MX (emailserver3)
 account: user3

if they are all vpopmail do as follows:
each domain has a primary domain of mydomain.com and aliased domain
(computer1.mydomain.com e.g. if it was computer1)

put in into computer1 .qmail-default
|if [ "$HOST" -eq "mydomain.com" ]; then "$LOCAL"@computer2.mydomain.com; fi
|if [ "$HOST" -eq "mydomain.com" ]; then "$LOCAL"@computer3.mydomain.com; fi

That way you would only forward original emails (and not in a loop) no
where would a message from a different machine computer ever end up back
at the beginning... you'd would end up with the message going to both
machines but maybe with a little more though one could eliminate this.

The above item I'm sure WILL NOT WORK as syntax is wrong and I didn't put
a lot of thought to it... you'd probably want to offload it to a shell
script and put some decent thought into how you want to handle bounces and
other things....

just an idea, or you could do it like I do currently on my machine, two
servers (well 3 actually), but just run unison to sync the directories.

Please don't bash me too hard with my logic I just thought of it right now
and I probably forgot something critical which will cause this not to work
as I haven't sat down and thought of every possibility.  Think of this
message more as a brainstorm! :)

Apologies in advance,

- -Myron

> Thanks for your email Davis,
>
> But the problem is, I don't have any other domain, users that are not
> local
> on my local qmail server have their own POP accounts for the domain on MX
> server for this domain which is hosted at our data center in US. Look at
> the
> scenario below
>
> [EMAIL PROTECTED]             Local POP User on my local qmail server with
> domain mydomain.com
>
> [EMAIL PROTECTED]             Remote POP User on MX server for this domain
> located at US data center
>
> I want that when [EMAIL PROTECTED] sends email to [EMAIL PROTECTED] then
> this mail should be forwarded to the internet so that it can be reached at
> the MX server for the domain mydomain.com where [EMAIL PROTECTED] has a
> POP
> box.
>
> Thanks in advanced for your guidance.
>
>
> Asim Ansari
> Sr. Network Administrator
> i2c inc
> Office  92.42.111.000.911
> Cell     92.333.442.6002
> IM (MSN) [EMAIL PROTECTED]
> Fax     92.42.571.0376
> mailto: [EMAIL PROTECTED]
>
> URL: www.i2cinc.com
>
>
> -----Original Message-----
> From: Myron Davis [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 02, 2004 9:25 PM
> To: [EMAIL PROTECTED]
> Cc: 'kareem BiLAL'
> Subject: Re: [vchkpw] forward emails to remote users for local domain
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> You could always trying add this to your .qmail-default file:
> |forward "$LOCAL"@newdomain.com
>
> this would forward all unknown messages that don't match your local user
> database to another domain where hopefully the user would match.
>
> - -Myron
>
>> Hello,
>>
>>
>>
>> I am running qmail 1.03, vpopmail 5.4.5, qmailadmin 1.2.0, squirrelmail
>> 1.4.2, clamv 0.74, courier IMAP 3.0.5, spamassisn 2.63 on my Red Hat
>> Linux
>> 7.3 box, I have hosted two email domains virtually using vpopmail 5.4.5
>>
>>
>>
>> I have four office in different countries.
>>
>>
>>
>> I want to know how can I forward emails to internet for users on my
>> domain
>> that do not exist locally, as in vpopmail I have only the option for
>> this
>> is
>> "set catch all to remote email address", "delete email", "bounce back",
>> if
>> I
>> get the option to forward mails for remote users of my local domain to
>> some
>> SMTP server or to internet then my problem will be resolved.
>>
>>
>>
>> I m sure this is possible as I am running the same scenario in windows
>> mail
>> server, can someone tell me how can I do this in vpopmail.
>>
>>
>>
>>
>>
>>
>>
>> Asim Ansari
>> Sr. Network Administrator
>> i2c inc
>> Office  92.42.111.000.911
>> Cell     92.333.442.6002
>> IM (MSN) [EMAIL PROTECTED]
>> Fax     92.42.571.0376
>> mailto: <mailto:[EMAIL PROTECTED]>  [EMAIL PROTECTED]
>>
>> URL:  <http://www.i2cinc.com/> www.i2cinc.com
>>
>>
>>
>>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (GNU/Linux)
>
> iD8DBQFBN0l0ifbfg5b2FvURApTqAKDSWvlDGe7Sc5EAVFJJtUi13Jk9CgCgnwV5
> nxsv/0461gJNFbgvn9jaw0w=
> =QOrq
> -----END PGP SIGNATURE-----
>
> Random Thought:
> ---------------
> You can't go home again, unless you set $HOME.
>
>


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBN21nifbfg5b2FvURAkD+AKC5VXzYNeBlyUArJ2x5E3Ib1lu/AwCglIbf
W7gdExgPvTBrq7WVah8uSag=
=bnWu
-----END PGP SIGNATURE-----

Random Thought:
---------------
It's not the quantity, but the quality of friendships that counts. That's the 
difference between 'counting off' and 'counting on.' - Jimmy Tom

Reply via email to