Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qmail Local delivery Desperate Help plz!!!!!!!

Status
Not open for further replies.

usuf123

Technical User
Dec 13, 2002
15
IN
hello Everybody !
Good day
I am facing a problem in qmail.
it is like this.
Our company has 2 branches located at different location.
In main office, I have setup dns say
spec.com, and configured qmail and included
spec.com in local. Everything is working fine
except when I send a mail to user@spec.com
who is at other location, it bounce backs
saying user unkown.

In general what I am trying to say is.
Is there any way to tell qmail to parse for
a file ( local users ) to see if the user is
there in the file else deliver it remotly.
This thing I have made it work in Sendmail.
Now I want to Switch to Qmail due to Security
reasons.

I shall high appreciate if you could help me
out in giving the solution to my problem,as
I am going mad figuring out the solution.

Let us join hand in solving the open source
community.

Rgds,
YK
 
One thought.

Assume your two locations are "building1" and "building2".

Have each server accept mail for spec.com. But also have each server accept mail for a local 3rd-level domain: the server in building1 accepts mail for building1.spec.com; the server in building2 accepts mail for building2.spec.com. In DNS, make each server the MX for its local 3rd-level domain.

Now assume you have a user "fred" who works in building1.

On the server in building1, configure his .qmail file to deposit mail in his maildir. On the building2 server, set up that user a .qmail file that forwards messages to fred@building1.spec.com.

For a user in building2, set up the converse configuration on the two servers.

It's a clunky solution that will be a bit of a pain to manage, but it should work. Want the best answers? Ask the best questions: TANSTAAFL!
 
sleipnir,

thanks for the reply, but the point is I want only one domain i.e spec.com .Let me tell you what I have done in
sendmail. let me say total staff in our office is 10 among
which 5 are in location 1 and rest in location 2.

I have configured sendmail in such away say when a user sends a mail to another users then Sendmail will look for a file where I have populated users who are in same location,
so if that user is present in the same location it will deliver it locally else it will go to the ISP server for
the delivery of mail from where the user will poll his mail
from the other office.
 
I don't know how qmail works but in sendmail, you can have mail for user@yourdomain.com forwarded to an ip. This ip could be an internal ip of your network. The second server would only see mail from the first server because it is not pointed to in dns. The e-mail clients on the second server would get their mail using the ip or hostname of the local server for pop server but still use the first mail server for smtp.
 
usuf123:

I think RhythmAce and I are basically thinking along the same lines.

I understand how you're doing it in sendmail. However, qmail is a much leaner MTA. A lot of the more complex routing functions have been deliberately left out of qmail.

I don't know if I made myself clear about the use of 3rd-level domains. No user is ever going to send an email to these domains -- they will be used by qmail strictly for routing purposes. Anyone sending an email to one of your users (both internally and externally) will only send to user@spec.com. Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top