Just resend the reply for last week's discussion. I wrote a patch (or quick hack) to do this and have been running this setup in production for more than four months without any problem. The patch for 5.4.3 is located at http://www.sigrity.com/oss/vdelivermail.c.patch-5.4.3 and more patches can be generated if requested. If more people are interested in this, we could propose a mailhost field just like in qmail-ldap to make it cleaner.
Here is the brief setup instruction: For two mail servers (can be more) mail1.x.com and mail2.a.com. Any of mail servers can be MX hosts. 1] Setup vpopmail on both mail servers to host x.com as usual. 2] Add mail1.x.com as an alias to x.com domain on mail1.x.com and add mail1.x.com to VPOPMAILHOME/etc/locals 3] Add mail2.x.com as an alias to x.com domain on mail2.x.com and add mail2.x.com to VPOPMAILHOME/etc/locals 4] Set user fullname to Full [EMAIL PROTECTED] for email accounts on mail1.x.com 5] Set user fullname to Full [EMAIL PROTECTED] for email accounts on mail2.x.com All emails are routed according the setting in the fullname field and using SMTP (not like qmail-ldap). The vpopmail db needs to be synchronized between sites so mysql backend is preferred but cdb should work too. Shouguan Lin -----Original Message----- From: Asim Ansari [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 1:00 PM To: [EMAIL PROTECTED] Subject: RE: [vchkpw] forward emails to remote users for local domain Thanks Matthew, I have gone through the archive and find the topic "How to Split a domain into 2 machines" but my problem is really simple, what I need to know is, "How can I send mail for unrecognised local users to ISP?" Or if someone can tell me how can I put a forward for a user in vpopmail like SMTP:<receipient>@<server address> e.g. I create a forward account for [EMAIL PROTECTED] with a forward like SMTP:[EMAIL PROTECTED]@smtp.mydomain.com so that if [EMAIL PROTECTED] send email to [EMAIL PROTECTED] then this mail should get on the internet @ smtp.mydomain.com where there is a pop account for [EMAIL PROTECTED] 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: Matthew Walker [mailto:[EMAIL PROTECTED] Sent: Saturday, August 28, 2004 12:29 AM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] forward emails to remote users for local domain Ahha. So you need it to go to the other server. It seems like this was discussed on the mailling list in the last week or so. It's not simple, so I suggest reading the archives. Look for the discussion about splitting users across multiple servers. On Sat, 28 Aug 2004 00:24:03 +0500, Asim Ansari <[EMAIL PROTECTED]> wrote: > Thanks Matthew, > > [EMAIL PROTECTED] is a remote user of our domain "mydomain.com" and > exists on the server which hosts the domain "mydomain.com" where as > [EMAIL PROTECTED] is a true local user which exists on the qmail > server in my office (by this way we have two qmail servers, one in my > office and the other having the domain mydomain.com hosted at). > > What I need is, when [EMAIL PROTECTED] sends email to > [EMAIL PROTECTED] then this mail should get on the internet rather > "Bounce Back"/"Delete"/"Sent to some Remote Mail Box" > > 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: Matthew Walker [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 28, 2004 12:10 AM > To: [EMAIL PROTECTED] > Subject: Re: [vchkpw] forward emails to remote users for local domain > > Let me see if I understand. You have these users: > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > userA is a true local user with a full account. > userB needs to just forward the email to another location, and has no > vpopmail account. > > If this is correct, then simply setting up a forward in qmailadmin > will work. > > If instead, userB has a vpopmail account but needs mail /copied/ to a > remote email, you should go into the account settings for that user in > qmailadmin, and set it to forward their email, but also check the box to keep a copy. > > On Fri, 27 Aug 2004 23:49:31 +0500, Asim Ansari <[EMAIL PROTECTED]> wrote: > > Thanks for your reply Matthew, > > > > But the real problem starts from here, all these users have pop > > accounts on the mail server we have hosted our mails at, for example > > [EMAIL PROTECTED] (exist locally on mail server running in my > > office) need to send email to [EMAIL PROTECTED] (a POP account > > exist on the mail server which is hosting our email domain) then > > what should I set forward to, I want some way to forward mails to > > the internet for those > users who do not exist locally. > > > > > > 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: Matthew Walker [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 27, 2004 11:23 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [vchkpw] forward emails to remote users for local > > domain > > > > Set up new forwards in qmailadmin for those accounts you want to > > forward to a 3rd party mail system. > > > > > >