Qmail-LDAP
[Top] [All Lists]

Re: Restrict mail base on From Address and To Address

To: Hardik Dalwadi <hardik@nifindia.org>
Subject: Re: Restrict mail base on From Address and To Address
From: satish patel <linuxtrap@yahoo.co.in>
Date: Tue, 7 Nov 2006 07:50:01 +0000 (GMT)
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
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OM+lIAHeQq4Tgnmumg+n6CEGFx9EqThVVNHsXYIwqiTpfIn0JbWSqIhvOIRLI2vCI2F/soxrazDgSF62U1vHlYnHi/x+ewiTPO56Gqvjriq3fLEgGQ3e1kn2fh+OIjlWL4vvQDl3h4SxqeR+C3oBze2vsJuVwptX51q+CC9jANU= ;
In-reply-to: <454EF64E.6040008@nifindia.org>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
Dear hardik


                        Thx for reply but when i add 4 attributes in my ldif it give me this error

my ldif 
$cat alluser.ldif

dn: cn=alluser,ou=users,dc=tulipconnect,dc=com
cn: alluser
ou: users
sn: alluser
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mail: alluser@tulipconnect.com
mailHost: mx1.del.tulipconnect.com
mailQuotaSize: 10000000
mailQuotaCount: 0
uid: alluser
accountStatus: active
mailMessageStore: alluser
userPassword: {MD5}cMCSpq66zgsepAbhTaeKQA==
senderconfirm: FALSE
membersonly: TRUE
rfc822sender: user1@tulipconnect.com
rfc822sender: user2@tulipconnect.com
________________________________________________

[root@mx1 qmail.ldif]# ldapadd -x -D "cn=manager,dc=tulipconnect,dc=com" -W -f alluser.ldif
Enter LDAP Password:
adding new entry "cn=alluser,ou=users,dc=tulipconnect,dc=com"
ldap_add: Object class violation (65)
        additional info: attribute 'senderconfirm' not allowed

[root@mx1 qmail.ldif]#

so what is the problem ???   and

senderconfirm: FALSE
membersonly: TRUE
rfc822sender: user1@tulipconnect.com
rfc822sender: user2@tulipconnect.com


this means   user1, and user2  allowed to send mail to alluser can u explain me how it is work ???


:x
satish patel








 

Hardik Dalwadi <hardik@nifindia.org> wrote:
Hi!

satish patel said the following, On Monday 06 November 2006 12:41 PM:
> Dear All
>
> I have useing qmail-ldap base mail server for my
> organization and i have one special account for announcment like
> allusers@example.com whn i send mail to this user it
> allusers@example.com the mail send to all users of my oranization but my
> want only 3 users send mail to allusers@example.com means
> Only three user allowed to send mail to allusers@example.com id not
> everybody so what i do for this configuration how can i do this with
> qmail-ldap suggest me if u know something about this task..??/

Please go through below example ldif for group. Last 4 lines is very
important for you.


dn: cn=alluser,ou=Group,dc=foo,dc=org
gidNumber: 1003
sambaSID: S-1-5-21-1109945525-1758694975-2089828311-3007
objectClass: top
objectClass: posixGroup
objectClass: qmailGroup
objectClass: qmailUser
objectClass: sambaGroupMapping
cn: alluser
sambaGroupType: 2
memberUid: user1
memberUid: user2
memberUid: user3
memberUid: user4
rfc822member: user1@foo.org
rfc822member: user2@foo.org
rfc822member: user3@foo.org
rfc822member: user4@foo.org
mail: alluser@foo.org
description: none
mailAlternateAddress: alluser-catchall@foo.org
uid: alluser
mailMessageStore: /home/groups/alluser/Maildir/
qmailUID: 1000
qmailGID: 1003
homeDirectory: /home/groups/alluser
senderconfirm: FALSE
membersonly: TRUE
rfc822sender: user1@nifindia.org
rfc822sender: user2@nifindia.org


> :x
> Sarish Patel
> http://www.delhilinux.org

--
Hardik Dalwadi,
SysAdmin, National Innovation Foundation.




Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
<Prev in Thread] Current Thread [Next in Thread>