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 Gurus need deperate help plz.........

Status
Not open for further replies.

usuf123

Technical User
Dec 13, 2002
15
IN
hello Everybody !
Good day

Let me first explain my existing setup

Our office has 2 branches located far off.
Our domain and mail server is being hoisted by the ISP.

If anybody external sends mail to our domain, it will be landing on our ISP Mail server from where I poll the mail using fetchmail and deilver it locally to the users.

I have configured dns say spec.com ( for local use ) in our office.


I have configured sendmail in our office 1 and office 2

is such a way that.
assume users a and b are in office 1 and users x & y are in office 2

case 1.
if user a sends a mail to user b sendmail will deliver it locally

case 2.
if user a sends a mail to user x or y will deliver it remotelly i.e it will be queued and sent to our ISP mail server from
where the user x & y will see their mails.


This is I have done using LocalConfig in sendmail where in the sendmail, befor delivering the mail it will parse for
a file where I have populated the users, if the user is present it will deliver it locally else goes to the ISP mail server.


The same setup I would like to Implement in qmail. Local delivery of mails to user in the same office is working fine, but I am facing the problem, when I send a mail to user in other office,it bounce backs saying user unknown. I wanted to know how I can
Implement the same setup as my previous in Qmail.

I can solve the problem if I creat different domain say speclocal.com. In such case the users will have 2 email ids.
1.for local ( within office) i.e speclocal.com

2.offical ( for sending to users outside office ) @spec.com ( registerd dns )

this is a pain as the users will get confused and need to create 2 separate email profiles.

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
 
They will not need to create two separate email profiles nor will anyone need to keep track of two email addresses.

Suppose an email arrives for "fred@spec.com" to one of your servers.

1. If Fred's mailbox resides on the server which receives the email, then his .qmail file instructs qmail to insert his email into his mailbox. Stop.

2. If Fred's mailbox resides on the other server, then for Fred there is a .qmail file which instructs qmail to forward his messages to fred@localdomain.spec.com. The message is forwarded to the other server, where Fred's mailbox resides. Go to step 1.

At no time does any user (internal or external) have to address an email to anything but "fred@spec.com". And Fred only has one mailbox (on his local server) into which all his email arrives, either by direct delivery or forward-delivery. Want the best answers? Ask the best questions: TANSTAAFL!
 
hello sleipnir,
Thanks for the mail. I appreciate your help.

kindly help in the following.

1.According to what u say, then I need to creat all the
users list on both the server.
which I think is very messy i.e say if a new users join
one branch1 then I need to inform the other branch2 to also
create the new user account.

This is ok for small users but think of the user > 100
in each office don't you think it is wasteful of resource
on the servers creating all the user in this case each
server will have 200 users.

2.how do I make qmail forward mail of particular users to
the other server, can u give me the syntax of it
.qmail files


rgds,
YK
 
hi,

how to create login scripts in linux.

Regards
Rajiv
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top