Qmail-LDAP
[Top] [All Lists]

Re: confusion on qmail control files

To: "M.R. Niranjan" <mrashok80@yahoo.com>
Subject: Re: confusion on qmail control files
From: "Russell Simpkins" <russ@cttechhosting.net>
Date: Tue, 21 Nov 2006 11:42:34 -0500 (EST)
Cc: qmail-ldap@qmail-ldap.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
Importance: Normal
In-reply-to: <20061121135404.25964.qmail@web31214.mail.mud.yahoo.com>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <20061121135404.25964.qmail@web31214.mail.mud.yahoo.com>
Reply-to: russ@cttechhosting.net
User-agent: SquirrelMail/1.4.7
> i have a configure a qmail server with ldap and added users in ldap. but i
> am confused when i should i add domains in virtualdomains and when i
> should add in locals
>
> the server's hostname is mail1.mydomain.com
> and i want my mail server to act as mail server for other domains also
> like otherdomain1.com and otherdomain2.com
>
> so my qmail control files are like this
> me : - mail1.mydomain.com
>
> locals:
> mydomain.com
> mail1.mydomain.com
>
> rcpthosts
> mydomain.com
> mail1.mydomain.com
> otherdomain1.com
> otherdomain2.com
>
> virtualdomains
> mail.otherdomain1.com
> otherdomain1.com
> mail.otherdomain2.com
> otherdomain2.com
>
> but if i get the following error
> #############################################################3
> 2006-11-21 07:02:55.101073500 new msg 1292339
> 2006-11-21 07:02:55.101095500 info msg 1292339: bytes 992 from
> <rahul.pednekar@otherdomain1.com> qp 4238 uid 501
> 2006-11-21 07:02:55.101116500 starting delivery 1: msg 1292339 to remote
> rahual.pednekar@otherdomain1.com
> 2006-11-21 07:02:55.101131500 status: local 0/10 remote 1/20
> 2006-11-21 07:02:55.134048500 delivery 1: failure:
> Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_
> isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/
> 2006-11-21 07:02:55.134190500 status: local 0/10 remote 0/20
> 2006-11-21 07:02:55.205611500 bounce msg 1292339 qp 4242
> 2006-11-21 07:02:55.205613500 end msg 1292339
> ##############################################################
>
> if i add domains otherdomain1.com and otherdomain2.com in locals file i
> don't get the above error.
> these domains are not local.

double check the man pages, but if you want qmail to accept mail from a
domain, it must reside in locals. Re-read the virtualhost section here for
clarity on what its purpose is.

http://www.lifewithqmail.org/lwq.html

its not clear what you are trying to accomplish. Do you want your mail
server to accept mail from otherdomain1 and otherdomain2? If so, then they
should be in locals.




<Prev in Thread] Current Thread [Next in Thread>