Re: maildir make program (script)
Title: Signature Hi Friedrich, Why don't you use maildirmake command. [root@]# mkdir /home/test [root@]# /var/qmail/bin/maildirmake /home/test/Maildir [root@]# ls -al /home/test/Maildir/ total 20 drwx-- 5 root root 4096 Apr 9 10:05 . drwxr-xr-x 3 root root 4096 Apr 9 10:05 .. drwx-- 2 root root 4096 Apr 9 10:05 cur drwx-- 2 root root 4096 Apr 9 10:05 new drwx-- 2 root root 4096 Apr 9 10:05 tmp On 9.4.2014 03:54, Friedrich Locke wrote: Hi, I have implemented my maildir make program as is: sioux@obsd$ more dirmkr #!/bin/sh mkdir -m 700 -p $1/Inbox mkdir -m 700 $1/Inbox/new mkdir -m 700 $1/Inbox/cur mkdir -m 700 $1/Inbox/tmp chown -R vmail:vmail $1 sioux@obsd$ My maildir directory is "Inbox". Do you think it is a maildir make script ? Thanks in advance. PS: If you want to share yours ... -- Ismail YENIGUL CTO Tel: +90 533 747 3665 Fax: 0216 470 95 08 ismail.yenl...@surgate.com www.surgatelabs.com www.srntools.com
Re: ssl
Title: Signature Hi Friedrich, both are different options 1. http://www.lifewithqmail.org/ldap/#Installation TLS option will give provide you STARTTLS support for SMTP 25 connections. 2. You do not have to patch tcpserver. You can use ucspi-ssl for 465 SMTP SSL connections from http://www.fehcom.de/ipnet/ucspi-ssl.html Nowadays STARTTLS is better and more popular than SMTP 465. STARTTLS does not require additional port(465). On 3.4.2014 14:49, Friedrich Locke wrote: Dear list members, I would like to support smtp/pop3/imap with ssl. In http://www.lifewithqmail.org/ldap/#Installation i saw i may have support to smtp with an compilation option. In this list, i read that if I want to support smtp with ssl, i have to install apatched version of tcpserver with ssl. I am really confused, which should it be ? usage of tcpserver or the compilation option for smtp ? Thanks, fried -- Ismail YENIGUL CTO Tel: +90 533 747 3665 Fax: 0216 470 95 08 ismail.yenl...@surgate.com www.surgatelabs.com www.srntools.com
Re: high performance
Title: Signature By default most OS support up to 509. If you want to increase the performance try to deploy distributed qmail-ldap backends, IMAP,POP3 and Webmail servers. On 3.4.2014 15:49, Friedrich Locke wrote: Dear list members, i am studying qmail-ldap and wonder if i can increase the concurrent limit (conf-spawn) to 1000? Thanks in advance. -- Ismail YENIGUL CTO Tel: +90 533 747 3665 Fax: 0216 470 95 08 ismail.yenl...@surgate.com www.surgatelabs.com www.srntools.com
Re: imap
Title: Signature Hi Friedrich, I suggest you to use Dovecot IMAP server and POP3 server. If you use auth_dovecot, auth_imap option qmail will fork a command on every login attempt which consumes CPU. If you have more than one backend servers you should use dovecot with proxy_maybe option (see http://beingasysadmin.wordpress.com/2013/01/20/mail-cluster-with-qmail-and-dovecot-proxy/ ) On 24.3.2014 13:38, Friedrich Locke wrote: Dear list members, i am studying qmail-ldap and i saw it supports imap. I have never played with imap and i have heard that imap may consume lot of CPU. Is that true ? What experience you have to report on this regards. Thanks a lot for your time and cooperation. Best regards, []s fried. -- Ismail YENIGUL CTO Tel: +90 533 747 3665 Fax: 0216 470 95 08 ismail.yenl...@surgate.com www.surgatelabs.com www.srntools.com
YNT: changing user mailhost on working environment
Just move the user mailbox like a regular directory. If the messagestore path is different on the new host. You must update this attr. Or use a Shared storage on all machines. Nfs might be easy solution. -Sent from Galaxy NoteFriedrich Locke friedrich.lo...@gmail.com yazdı:Hi, suppose i have a cluster with 5 machine. For a given user, let me say: xyz, the mailhost is z, i want to change his mailhost to b. The ldap part is pretty easy, but what about the email the user already have in mailhost z. How do i move them from mailhost z to mailhost b. How do you do that ? Thanks in advance.
Re: Just installed qmail+ldap: i am loosing my hairs
Please remove homedirectory attr and try again with qmail-ldaplookup On 14.01.2013 17:52, Friedrich Locke wrote: Did someone here already faced such problem ? I am really needing help from the mailing list. Thanks. On Mon, Jan 14, 2013 at 1:28 PM, Ismail YENIGUL ismail.yeni...@surgate.com mailto:ismail.yeni...@surgate.com wrote: Hi, Do not use homeDirectory and mailMessageStore for the same user. I suggest you to use mailMessageStore. homeDirectory: /home/vlobo mailMessageStore: vlobo Here is my working example: dn: uid=ism...@mydomain.com,ou=mydomain.com,o=mail,dc=surmail mailto:uid=ism...@mydomain.com,ou=mydomain.com,o=mail,dc=surmail objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: qmailUser uid: ism...@mydomain.com mailto:ism...@mydomain.com mail: ism...@mydomain.com mailto:ism...@mydomain.com givenName: ismail sn: test cn: ismail test userPassword:: e1NTSEF9OThGbWhLWjFOWU1vekhkNG5PRFpzZXR4QUg1bFpHTmxaV1kzTURkag== mailHost: mail.mydomain.com http://mail.mydomain.com mailQuotaSize: 10 mailQuotaCount: 1000 accountStatus: active mailMessageStore: /mail/mydomain.com/ismail http://mydomain.com/ismail On 14.01.2013 17:17, Friedrich Locke wrote: Hi folks, I have just finnished installing my qmail-ldap system. I am trying to send me a local message, but no success so far. Here is what i am trying: sioux@gustav$ echo to: vlobo | /var/qmail/bin/qmail-inject sioux@gustav$ Here is what i got from qmail-ldap logs: @400050f4201a17a0e594 new msg 1039956 @400050f4201a17a0e97c info msg 1039956: bytes 220 from si...@gustav.cpd.ufv.br mailto:si...@gustav.cpd.ufv.br qp 4069 uid 1000 @400050f4201a17a1761c starting delivery 21: msg 1039956 to local vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br @400050f4201a17a1df94 status: local 1/100 remote 0/400 @400050f4201a17d130dc delivery 21: deferral: Temporary_failure_in_LDAP_lookup._(#4.4.3)./ @400050f4201a17d1f814 status: local 0/100 remote 0/400 Here is what i get from qmail-ldaplookup: gustav# ../bin/qmail-ldaplookup -d 255 -m vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br Searching ldap for: (|(mail=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br)(mailAlternateAddress=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br))) under dn: ou=people,dc=ufv,dc=br qmail-ldaplookup: fatal: qldap_filter: unspecified error gustav# And here is what i got from slapd log: 50f42010 ber_get_next on fd 14 failed errno=0 (Undefined error: 0) 50f42010 connection_read(14): input error=-2 id=1047, closing. 50f42010 connection_closing: readying conn=1047 sd=14 for close 50f42010 daemon: activity on 1 descriptor 50f42010 daemon: waked 50f42010 daemon: select: listen=5 active_threads=0 tvp=zero 50f42010 daemon: select: listen=6 active_threads=0 tvp=zero 50f42010 daemon: select: listen=7 active_threads=0 tvp=zero 50f42010 daemon: select: listen=8 active_threads=0 tvp=zero 50f42010 daemon: select: listen=9 active_threads=0 tvp=zero 50f42010 connection_close: deferring conn=1047 sd=14 50f42010 conn=1047 op=1 do_unbind 50f42010 conn=1047 op=1 UNBIND 50f42010 connection_resched: attempting closing conn=1047 sd=14 50f42010 connection_close: conn=1047 sd=14 50f42010 daemon: removing 14 50f42010 conn=1047 fd=14 closed But when i try by hand: sioux@gustav$ ldapsearch -D cn=mail,ou=appsrv,dc=ufv,dc=br -b ou=people,dc=ufv,dc=br -h localhost -W \(\|\(mail=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br\)\(mailAlternateAddress=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br\)\) Enter LDAP Password: # extended LDIF # # LDAPv3 # base ou=people,dc=ufv,dc=br with scope subtree # filter: (|(mail=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br)(mailAlternateAddress=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br)) # requesting: ALL # # vlobo, people, ufv.br http://ufv.br dn: uid=vlobo,ou=people,dc=ufv,dc=br uid: vlobo objectClass: organizationalRole objectClass: posixAccount objectClass: qmailUser homeDirectory: /home/vlobo userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS mail: valter.l...@gustav.cpd.ufv.br mailto:valter.l...@gustav.cpd.ufv.br mailAlternateAddress: vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br mailHost: gustav.cpd.ufv.br http://gustav.cpd.ufv.br mailMessageStore: vlobo # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 sioux@gustav$ Everything works. What am i doing wrong ?
Re: Just installed qmail+ldap: i am loosing my hairs
mailMessageStore: vlobo Also messagestore value must be a full path. and directory owner must be ldapuid value. On 14.01.2013 18:05, Friedrich Locke wrote: Here you have it: ldapsearch -D cn=mail,ou=appsrv,dc=ufv,dc=br -b ou=people,dc=ufv,dc=br -h 127.0.0.1 -s subtree -W \(\|\(mail=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br\)\(mailAlternateAddress=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br\)\) Enter LDAP Password: # extended LDIF # # LDAPv3 # base ou=people,dc=ufv,dc=br with scope subtree # filter: (|(mail=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br)(mailAlternateAddress=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br)) # requesting: ALL # # vlobo, people, ufv.br http://ufv.br dn: uid=vlobo,ou=people,dc=ufv,dc=br uid: vlobo objectClass: organizationalRole objectClass: posixAccount objectClass: qmailUser homeDirectory: /home/vlobo userPassword:: e1NBU0x9dmxvYm9AVUZWLkJS mail: valter.l...@gustav.cpd.ufv.br mailto:valter.l...@gustav.cpd.ufv.br mailAlternateAddress: vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br mailHost: gustav.cpd.ufv.br http://gustav.cpd.ufv.br mailMessageStore: vlobo # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 sioux@gustav$ On Mon, Jan 14, 2013 at 1:58 PM, Carlos García Gómez carlos.gar...@f-integra.org mailto:carlos.gar...@f-integra.org wrote: It seems gustav# ../bin/qmail-ldaplookup -d 255 -m vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br Searching ldap for: (|(mail=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br)(mailAlternateAddress=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br))) under dn: ou=people,dc=ufv,dc=br qmail-ldaplookup: fatal: qldap_filter: unspecified error gustav# Try to do this query with this filter in your ldap client I think there are too many “)” Regards Carlos http://www.netcgg.es Murcia-Spain *From:* Friedrich Locke mailto:friedrich.lo...@gmail.com *Sent:* Monday, January 14, 2013 4:52 PM *To:* Ismail YENIGUL mailto:ismail.yeni...@surgate.com *Cc:* qmail-ldap@qmail-ldap.org mailto:qmail-ldap@qmail-ldap.org *Subject:* Re: Just installed qmail+ldap: i am loosing my hairs Did someone here already faced such problem ? I am really needing help from the mailing list. Thanks. On Mon, Jan 14, 2013 at 1:28 PM, Ismail YENIGUL ismail.yeni...@surgate.com mailto:ismail.yeni...@surgate.com wrote: Hi, Do not use homeDirectory and mailMessageStore for the same user. I suggest you to use mailMessageStore. homeDirectory: /home/vlobo mailMessageStore: vlobo Here is my working example: dn: uid=ism...@mydomain.com,ou=mydomain.com,o=mail,dc=surmail mailto:uid=ism...@mydomain.com,ou=mydomain.com,o=mail,dc=surmail objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: qmailUser uid: ism...@mydomain.com mailto:ism...@mydomain.com mail: ism...@mydomain.com mailto:ism...@mydomain.com givenName: ismail sn: test cn: ismail test userPassword:: e1NTSEF9OThGbWhLWjFOWU1vekhkNG5PRFpzZXR4QUg1bFpHTmxaV1kzTURkag== mailHost: mail.mydomain.com http://mail.mydomain.com mailQuotaSize: 10 mailQuotaCount: 1000 accountStatus: active mailMessageStore: /mail/mydomain.com/ismail http://mydomain.com/ismail On 14.01.2013 17:17, Friedrich Locke wrote: Hi folks, I have just finnished installing my qmail-ldap system. I am trying to send me a local message, but no success so far. Here is what i am trying: sioux@gustav$ echo to: vlobo | /var/qmail/bin/qmail-inject sioux@gustav$ Here is what i got from qmail-ldap logs: @400050f4201a17a0e594 new msg 1039956 @400050f4201a17a0e97c info msg 1039956: bytes 220 from si...@gustav.cpd.ufv.br mailto:si...@gustav.cpd.ufv.br qp 4069 uid 1000 @400050f4201a17a1761c starting delivery 21: msg 1039956 to local vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br @400050f4201a17a1df94 status: local 1/100 remote 0/400 @400050f4201a17d130dc delivery 21: deferral: Temporary_failure_in_LDAP_lookup._(#4.4.3)./ @400050f4201a17d1f814 status: local 0/100 remote 0/400 Here is what i get from qmail-ldaplookup: gustav# ../bin/qmail-ldaplookup -d 255 -m vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br Searching ldap for: (|(mail=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br)(mailAlternateAddress=vl...@gustav.cpd.ufv.br mailto:vl...@gustav.cpd.ufv.br))) under dn: ou=people,dc=ufv,dc=br qmail-ldaplookup: fatal: qldap_filter: unspecified error gustav
YNT: Re: qmail cluster
Hi Friedrich Yes correct. -Sent from Galaxy NoteFriedrich Locke friedrich.lo...@gmail.com yazdı:Thanks Ismail, let me see if i understood correctly! For each domain, i set one single MX pointing to my domain. Then add the mx record in my domain context for each of the mail server. It will be one mx record pointing to my domain's mx record and n ( the number of mail server) in my domain dns for each mail server, i.e. : 1k domain records + 5 mail servers record. Right ? On Sat, Jan 12, 2013 at 6:06 PM, Ismail YENIGUL ismail.yeni...@surgate.com wrote: Hi Friedrich, You do not have to setup 5 mx. If you distribute users on qmail backends via mailhost entry on LDAP. Just create a A DNS record for each mailhost. and define a MX record has 5 IP address. example dns settings for all domains: IN MX mx.mymasterdomain.com mx IN A 192.168.1.1 mx IN A 192.168.1.2 mx IN A 192.168.1.3 mx IN A 192.168.1.4 mx IN A 192.168.1.5 mail1 IN A 192.168.1.1 mail2 IN A 192.168.1.2 mail3 IN A 192.168.1.3 mail4 IN A 192.168.1.4 mail5 IN A 192.168.1.5 Do you have any antispam gateway in front of the mail servers? If you have,some antispam gateway solutions have a feature to lookup mailhost entry on LDAP and directly forward email to correct mailhost. If you define all domain names in control/locals control/rcphosts, hosts will forward the mail to correct mailhost via QMQP protocol. This is the same for POP3/IMAP sessions. Thanks On 12.01.2013 17:31, Friedrich Locke wrote: Hi. I am willing to try qmail+ldap. Some doubts arose! The scenario would be: 1 ldap server, 5 qmail servers, 1K domain 30K users. My doubt is the following: These 1k domain may be served by any of the 5 qmail server, ok? Will i have to include 5 mx recorder for each of the 1k domain? That will make 5k entries in my dns server, is that right ? thanks in advance.
Re: studing qmail-ldap
Hi Friedrich, My answer are in line. On 13.01.2013 19:46, Friedrich Locke wrote: Hi! i am studing qmail-ldap solution and some doubts arose. I would like to integrate qmail-ldap with my current unix user base. My base tree for posix accounts is: dc=people,ou=abc,ou=de. So for instance if a have a user called vlobo, its dn is: uid=vlobo,ou=people,dc=abc,dc=de. Since it is a unix user, its entry object class is posixAccount. Since, i want this same unix user as a qmail user, I added an object class qmailUser to the same posixAccount entry. First doubt: is it wrong ? No, That's very good idea. For the qmailUser, the only mandatory attribute is mail. So, when i should add the objectClass qmailUser, I must, at least, define this attribute, right? even if objectclass say mail is must. it is not enough. You must also add the following attributes: mailMessageStore,userPassword,mailHost,accountStatus, The following are optional but very useful: deliveryMode,mailQuotaSize,mailQuotaCount So, what would it be procedures in order to remove the user vlobo as qmail user ? Should I take out the qmailUser attributes for the given entry ? How should I do it ? Delete objectclass qmailUser from the user and other attributes defined in this objectclass. Thanks in advance.
Re: qmail cluster
Hi Friedrich, You do not have to setup 5 mx. If you distribute users on qmail backends via mailhost entry on LDAP. Just create a A DNS record for each mailhost. and define a MX record has 5 IP address. example dns settings for all domains: IN MX mx.mymasterdomain.com mx IN A 192.168.1.1 mx IN A 192.168.1.2 mx IN A 192.168.1.3 mx IN A 192.168.1.4 mx IN A 192.168.1.5 mail1 IN A 192.168.1.1 mail2 IN A 192.168.1.2 mail3 IN A 192.168.1.3 mail4 IN A 192.168.1.4 mail5 IN A 192.168.1.5 Do you have any antispam gateway in front of the mail servers? If you have,some antispam gateway solutions have a feature to lookup mailhost entry on LDAP and directly forward email to correct mailhost. If you define all domain names in control/locals control/rcphosts, hosts will forward the mail to correct mailhost via QMQP protocol. This is the same for POP3/IMAP sessions. Thanks On 12.01.2013 17:31, Friedrich Locke wrote: Hi. I am willing to try qmail+ldap. Some doubts arose! The scenario would be: 1 ldap server, 5 qmail servers, 1K domain 30K users. My doubt is the following: These 1k domain may be served by any of the 5 qmail server, ok? Will i have to include 5 mx recorder for each of the 1k domain? That will make 5k entries in my dns server, is that right ? thanks in advance.
Re: smtpauth - qmail-ldap with samba4
Hi Bob, By default qmail-ldap login to LDAP with by ldapuser/ldappasword defined in control/ files and get userPassword entry then compares passwords. If you enable ldaprebind, qmail-ldap first get DN of the smtp auth user from LDAP/AD with ldapuser/ldappasword in control/ files. and make a another connection to AD/LDAP with the smtp auth username's DN and password. By the way, Can you please tell us what you did to enable AD support in qmail-ldap? I am trying to integrate all useful patches into qmail-ldap as a tarball. I would like to enable AD support too. Thanks Ismail YENIGUL Team Leader / Takim Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 30.03.2012 07:13, Bob Miller wrote: Gennedy, Thank you so much, enabling ldaprebind solved the problem On Fri, 2012-03-30 at 07:54 +0400, Геннадий Марченко wrote: Hello Bob, What state of ldapprebind file in qmail/control/ ? Best wishes, Gennady. Bob Miller писал 30.03.2012 04:47: Hi Nicolas, Thank you for your response. I have tried both SMTPAUTH= and SMTPAUTH=TLSREQUIRED. In both cases the authentication failed, even though the correct search string appears to have been passed to samba4's ldb. it's as though qmail is able to do a lookup, but isn't able to verify that the password is correct... On Fri, 2012-03-30 at 01:12 +0100, Nicolas de Bari Embriz Garcia Rojas wrote: Hi, check that your /var/qmail/control/qmail-smtpd.rules have something like :allow,SMTPAUTH= On Fri, Mar 30, 2012 at 12:10 AM, Bob Millerb...@computerisms.ca wrote: greetings I have been trying to get qmail-ldap to work with samba4's Active Directory implementation. It seems that all parts are working with the exception of smtpauth. WHAT WORKS: When I send a mail to the system, it successfully verifies if a user exists and denies if the user doesn't exist. qmail-ldaplookup -m/-u both run without error and report what I would expect to see. When I set samba4 into a debug mode, I can see the ldb query coming through in the logs. In fairness, those logs do not report success or failure of the lookup, or the values returned, but the fact that things work indicate the ldap communication to samba4 was a success. I also take these successes to mean my ~controls/ldap* files are set up correctly. I can also use ldbsearch to verify my user/pass info is correct. SMTPAUTH: I have compiled with TLS and enabled SMTPAUTH=TLSREQUIRED, I can verify the encryption is working because when I rename the cert, I get an error in qmail's logs when it is not working (presumably thanks to TLSDEBUG). I gather from what I have read that that is all I need to do. There were mentions in the life with qmail-ldap that some extra arguments are required in the run script, but I found some mailing list post that says that is not required. BROKEN:When I try to send a authenticated mail using thunderbird, I see the following in qmail logs: auth login authentication failed: authentication failure However, the samba4 logs continue to indicate a valid search query is being made. When I base64-encode my user/pass and use telnet to test the smtp connection, I get the exact same symptoms as using thunderbird; the samba4 logs indicate a good search string and the qmail logs say authentication failure. TRIED: I have scoured the mailing lists, there are those who say active directory works out of the box just by modifying qmail-ldap.h, there are those who say you need to modify qldap.c and/or qmail-ldaplookup.c in order to account for userAccountControl. Over the last days, I have tried any patches/suggestions that could apply to samba4 (as opposed to windows server), but not one of them has solved this problem. In the interest of not making this a novel nobody wants to read, I will leave out the remaining details on what I have done and which articles I have referenced, but I can make that info available. If anyone can get me pointed in the right direction, I would truly appreciate it... -- Bob Miller 867-334-7117 / 867-633-3760 http://computerisms.ca b...@computerisms.ca Network, Internet, Server, and Open Source Solutions
Re: empf patch for qmail-ldap
Hello Hugo, Actually I don't use envelope scan feature in my production. I integrated this patch because someone request/need. Thanks. Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 21.03.2012 02:42, Hugo Monteiro wrote: Hello Ismail, Mind if I ask what level of functionality you use with the envelope scan patch? I had some plans for my scanner but we halted development a while ago. Did you roll your own scanner or do you use qenvscan-policyd? Regards, Hugo Monteiro. On Mar 20, 2012 9:45 PM, Ismail YENIGUL ismail.yeni...@surgate.com mailto:ismail.yeni...@surgate.com wrote: Hello, You can get the latest patch at http://www.surgate.com/qmail-ldap/qmail-ldap-2012-v3.tar.gz http://www.surgate.com/qmail-ldap/qmail-ldap-2012-v3.tar.gz Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 tel:%2B90%20216-4709423 | Mobile:+90 533 747 36 65 tel:%2B90%20533%20747%2036%2065 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 20.03.2012 06:47, Mario Remy Almeida wrote: Hi Ismail, Can you send me all the patches you have. I'll be starting with the latest qmail patch to test the bigbrother issue which I have. With Best Regards, Mario *Subject:* empf patch for qmail-ldap *Date:* Tue, 20 Mar 2012 02:17:02 +0200 *From:* Ismail YENIGUL ismail.yeni...@surgate.com mailto:ismail.yeni...@surgate.com *To:* qmail-ldap@qmail-ldap.org mailto:qmail-ldap@qmail-ldap.org Hello, I just integrated http://www.inter7.com/?page=empf patch to qmail-ldap This can be enable with -DEMPF option in Makefile. Now my qmail-ldap tarball contains the following extra patches in addition to qmail-ldap 2012 patch: * /qmail-ldap-envelope-scan patch * inter7 empf patch/// * big quota patch I can share my patch with anyone who needs empf feature. Thanks. -- Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 tel:%2B90%20216-4709423 | Mobile:+90 533 747 36 65 tel:%2B90%20533%20747%2036%2065 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog
Re: Qmail-LDap with solaris 10
Hello, It seems that you did not set LDAPLIBS and LDAPINCLUDES variables correctly. Where did you install openldap lib and include directories? or did you install openldap packages? Thanks Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 20.03.2012 19:38, Sasanka Sekhar Sahu wrote: Hi can anyone send me the Document for installing Qmail Ldap with solaris 10 . Am getting followinf error: Please suggest. bash-3.2# make setup check ./compile -DQLDAP_CLUSTER -DEXTERNAL_TODO -DDASH_EXT -DLDAP_DEPRECATED=1 -I/usr/include -DDEBUG qldap.c qldap.c: In function `qldap_set_option': qldap.c:988: error: `LDAP_OPT_SUCCESS' undeclared (first use in this function) qldap.c:988: error: (Each undeclared identifier is reported only once qldap.c:988: error: for each function it appears in.) *** Error code 1 make: Fatal error: Command failed for target `qldap.o' Regds, sasanka
Re: empf patch for qmail-ldap
Hello, You can get the latest patch at http://www.surgate.com/qmail-ldap/qmail-ldap-2012-v3.tar.gz http://www.surgate.com/qmail-ldap/qmail-ldap-2012-v3.tar.gz Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 20.03.2012 06:47, Mario Remy Almeida wrote: Hi Ismail, Can you send me all the patches you have. I'll be starting with the latest qmail patch to test the bigbrother issue which I have. With Best Regards, Mario *Subject:* empf patch for qmail-ldap *Date:* Tue, 20 Mar 2012 02:17:02 +0200 *From:* Ismail YENIGUL ismail.yeni...@surgate.com *To:* qmail-ldap@qmail-ldap.org Hello, I just integrated http://www.inter7.com/?page=empf patch to qmail-ldap This can be enable with -DEMPF option in Makefile. Now my qmail-ldap tarball contains the following extra patches in addition to qmail-ldap 2012 patch: * /qmail-ldap-envelope-scan patch * inter7 empf patch/// * big quota patch I can share my patch with anyone who needs empf feature. Thanks. -- Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog
empf patch for qmail-ldap
Hello, I just integrated http://www.inter7.com/?page=empf patch to qmail-ldap This can be enable with -DEMPF option in Makefile. Now my qmail-ldap tarball contains the following extra patches in addition to qmail-ldap 2012 patch: * /qmail-ldap-envelope-scan patch * inter7 empf patch/// * big quota patch I can share my patch with anyone who needs empf feature. Thanks. -- Ismail YENIGUL Team Leader / Tak?m Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog
Re: qmail-ldap mail looping issue with bigbrother
Hi Mario, I tried this and worked for me. Can you please try again with the latest qmail-ldap patch? Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 18.03.2012 07:44, Mario Remy Almeida wrote: Hi Ismail, What you suggested I had tried long time back somewhere in August 2010. If 2 entires are put in bigbrother for a single email, only the 2nd email receives it. In this case only supp...@example.com:us...@example.com will receive the email. With Best Regards, Mario *Subject:* Re: qmail-ldap mail looping issue with bigbrother *Date:* Fri, 16 Mar 2012 16:36:16 +0200 *From:* Ismail YENIGUL ismail.yeni...@surgate.com *To:* Mario Remy Almeida malme...@isaaviation.ae *Cc:* qmail-ldap@qmail-ldap.org Hi Mario, I made a test and confirm that the problem you report is exist if you use alias as a target. The solution is add two line for supp...@example.com like following: # cat bigbrother supp...@example.com:us...@example.com supp...@example.com:us...@example.com Thanks Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 14.03.2012 10:04, Ismail YENIGUL wrote: Hi Mario, On 14.03.2012 07:47, Mario Remy Almeida wrote: Hi All, Any email To/From supp...@example.com should be sent to us...@example.com and us...@example.com. To achieve this a group email is created as supportgr...@example.com. How did you create the group email supportgr...@example.com? Can you give please post here ldiff for this record? Mar 14 09:43:36 miramar qmail: 1331703816.975623 starting delivery 229400: msg 5000324 to local us...@example.com Mar 14 09:43:36 miramar qmail: 1331703816.975632 status: local 1/20 remote 0/10 Mar 14 09:43:36 miramar qmail: 1331703816.975642 starting delivery 229401: msg 5000324 to local us...@example.com Mar 14 09:43:36 miramar qmail: 1331703816.975651 status: local 2/20 remote 0/10 *Mar 14 09:43:37 miramar qmail: 1331703817.000853 starting delivery 229402: msg 5000324 to local supportgr...@example.com * This is not normal. Did you include supportgr...@example.com group to supportgr...@example.com it self? Mar 14 09:43:37 miramar qmail: 1331703817.018882 status: local 3/20 remote 0/10 Mar 14 09:43:37 miramar qmail: 1331703817.018917 delivery 229402: failure: This_message_is_looping:_it_already_has_my_Delivered-To_line._(#5.4.6)/ Mar 14 09:43:37 miramar qmail: 1331703817.018927 status: local 2/20 remote 0/10 Mar 14 09:43:37 miramar qmail: 1331703817.813451 delivery 229401: success: qmail-forward:_ok_1331703817_qp_31345./ Mar 14 09:43:37 miramar qmail: 1331703817.813497 status: local 1/20 remote 0/10 Mar 14 09:43:37 miramar qmail: 1331703817.827669 delivery 229400: success: qmail-forward:_ok_1331703817_qp_31346./ Mar 14 09:43:37 miramar qmail: 1331703817.827766 status: local 0/20 remote 0/10 Mar 14 09:43:37 miramar qmail: 1331703817.862611 bounce msg 5000324 qp 31347 Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog
Re: qmail-ldaplookup: fatal: qldap_filter: unspecified error
Hi Nicolas, First of all new patch is qmail-ldap-1.03-20120221.patch not qmail-ldap-1.03-20060201.patch I compiled both patch on FreeBSD Linux without any problem. Can you please post here exact output and ldap ldiff about dom...@ejemplo.org Did you verify that control/ldap* settings are correct? Thanks Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 15.03.2012 15:41, Nicolas de Bari Embriz Garcia Rojas wrote: Hi, after compiling qmail with the new patch qmail-ldap-1.03-20060201, (freebsd) something seems to be broken on qldap-filter.c when trying to run /var/qmail/bin/qmail-ldaplookup -m dom...@ejemplo.org I get qmail-ldaplookup: fatal: qldap_filter: unspecified error Any idea of how to fix this? regards.
Re: qmail-ldap mail looping issue with bigbrother
Hi Mario, I made a test and confirm that the problem you report is exist if you use alias as a target. The solution is add two line for supp...@example.com like following: # cat bigbrother supp...@example.com:us...@example.com supp...@example.com:us...@example.com Thanks Ismail YENIGUL Team Leader / Tak?m Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 14.03.2012 10:04, Ismail YENIGUL wrote: Hi Mario, On 14.03.2012 07:47, Mario Remy Almeida wrote: Hi All, Any email To/From supp...@example.com should be sent to us...@example.com and us...@example.com. To achieve this a group email is created as supportgr...@example.com. How did you create the group email supportgr...@example.com? Can you give please post here ldiff for this record? Mar 14 09:43:36 miramar qmail: 1331703816.975623 starting delivery 229400: msg 5000324 to local us...@example.com Mar 14 09:43:36 miramar qmail: 1331703816.975632 status: local 1/20 remote 0/10 Mar 14 09:43:36 miramar qmail: 1331703816.975642 starting delivery 229401: msg 5000324 to local us...@example.com Mar 14 09:43:36 miramar qmail: 1331703816.975651 status: local 2/20 remote 0/10 *Mar 14 09:43:37 miramar qmail: 1331703817.000853 starting delivery 229402: msg 5000324 to local supportgr...@example.com * This is not normal. Did you include supportgr...@example.com group to supportgr...@example.com it self? Mar 14 09:43:37 miramar qmail: 1331703817.018882 status: local 3/20 remote 0/10 Mar 14 09:43:37 miramar qmail: 1331703817.018917 delivery 229402: failure: This_message_is_looping:_it_already_has_my_Delivered-To_line._(#5.4.6)/ Mar 14 09:43:37 miramar qmail: 1331703817.018927 status: local 2/20 remote 0/10 Mar 14 09:43:37 miramar qmail: 1331703817.813451 delivery 229401: success: qmail-forward:_ok_1331703817_qp_31345./ Mar 14 09:43:37 miramar qmail: 1331703817.813497 status: local 1/20 remote 0/10 Mar 14 09:43:37 miramar qmail: 1331703817.827669 delivery 229400: success: qmail-forward:_ok_1331703817_qp_31346./ Mar 14 09:43:37 miramar qmail: 1331703817.827766 status: local 0/20 remote 0/10 Mar 14 09:43:37 miramar qmail: 1331703817.862611 bounce msg 5000324 qp 31347 Ismail YENIGUL Team Leader / Tak?m Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog
Re: qmail-ldaplookup: fatal: qldap_filter: unspecified error
Hi Nicolas, I am also using qmail-ldap-1.03-20120221.patch without extra patch (just small fix about auth_dovecot sent by Claudio) It does not report any error for qmail-ldaplookup. Are you applying domainalias patch to qmail-ldap-1.03-20120221.patch? This patch is already exist in qmail-ldap-1.03-20120221.patch Can you please do following and tell the result: 1. Apply only qmail-ldap-1.03-20120221.patch and just type make without setup check 2. run ./qmail-ldaplookup -m test Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 16.03.2012 17:15, Nicolas de Bari Embriz Garcia Rojas wrote: Hi, sorry for the confusion, I mean qmail-ldap-1.03-20120221.patch. Also I do not think it is an issue with the control/ldap settings since with the past versions 20120221 the qmail-ldaplookup works fine, I think something is missing/broken on qldap-filter.c. What I am doing for testing (FreeBSD 9 amd64) is compiling the base of qmail-ldap-1.03-20060201.patch plus this patches: domain alias http://kristof.bajnok.hu/qmail/qldap-domainalias.patch (domain alias) multiple qmqpc servers (for ezml lists) http://code.google.com/p/qmail-ldap-smtpauthuser/source/browse/trunk/qmail-qmqpc-servers_on_cmd_line.c SRS support http://code.google.com/p/qmail-ldap-smtpauthuser/source/browse/trunk/qmail-ldap-1.03-20060201-SRS.patch my conf-cc looks like this: cc -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing and conf-ld cc -s -rpath=/usr/lib:/usr/local/lib So far, version qmail-ldap-1.03-20060201 works fine with all this patches, but now when trying to 'upgrade'/compile/test version qmail-ldap-1.03-20120221.patch using/sharing the same /var/qmail/control, qmail-ldaplookup does not work. Using only qmail-ldap-1.03-20120221.patch (no extra patches) compiles fine but qmail-ldaplook fails again, doing a little debug/diff between versions (2012 vs 2006) I notice that qldap-filter.c on version 2012 change considerable and this is because the implementation of the 'domainalias' patch: http://kristof.bajnok.hu/qmail/qldap-domainalias.patch I think that the implementation of the domain alias patch to the core (for avoiding the -DDOMAIN_ALIAS) on version qmail-ldap-1.03-20120221.patch is causing problems. The ldiff that I use is something like: dn: uid=t...@ejemplo.org,ou=ejemplo.org,ou=vusers,dc=inbox,dc=im objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: qmailUser uid: t...@ejemplo.org cn: test sn: test mail: t...@ejemplo.org mailMessageStore: ejemplo.org/test accountStatus: active smtpThrottle: 7 mailQuotaSize: 2147483648 userPassword: {SSHA}bRfoHmTRZTXyVywVdunoncu9jWWx32G2 mailQuotaCount: 0 PS. On either version qmail-ldap-1.03-20120221.patch or qmail-ldap-1.03-20060201-SRS.patch I edit the Makefile and modify the auto_uids.c with something like this: auto_uids.c: mv auto_uids.c.tmp auto_uids.c where auto_uids.c has this: /* These values are hard-coded here, which looks bad until you * * realise that they're hard-coded in ${PORTSDIR}/?IDs anyway. */ /* $FreeBSD: ports/mail/qmail/files/patch-auto_uids-c-dist,v 1.1 2011/07/18 20:55:29 garga Exp $ */ int auto_uida = 81; int auto_uidd = 82; int auto_uidl = 83; int auto_uido = 0; int auto_uidp = 84; int auto_uidq = 85; int auto_uidr = 86; int auto_uids = 87; int auto_gidq = 82; int auto_gidn = 81; On Fri, Mar 16, 2012 at 2:05 PM, Ismail YENIGUL ismail.yeni...@surgate.com wrote: Hi Nicolas, First of all new patch is qmail-ldap-1.03-20120221.patch not qmail-ldap-1.03-20060201.patch I compiled both patch on FreeBSD Linux without any problem. Can you please post here exact output and ldap ldiff about dom...@ejemplo.org Did you verify that control/ldap* settings are correct? Thanks Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 15.03.2012 15:41, Nicolas de Bari Embriz Garcia Rojas wrote: Hi, after compiling qmail with the new patch qmail-ldap-1.03-20060201, (freebsd) something seems to be broken on qldap-filter.c when trying to run /var/qmail/bin/qmail-ldaplookup -m dom...@ejemplo.org I get qmail-ldaplookup: fatal: qldap_filter: unspecified error Any idea of how to fix this? regards.
Re: Re: qmail-ldaplookup: fatal: qldap_filter: unspecified error
Hi -- orijinal mesaj -- Found 4 entries: Uh-oh: multiple entries found but should be unique! I think something wrong with your ldap records. This error occurs usually when you define the same mail/mailalternate address for the different user. Please check your ldap entries. -ismail On Fri, Mar 16, 2012 at 3:26 PM, Ismail YENIGUL ismail.yeni...@surgate.com wrote: Hi Nicolas, I am also using qmail-ldap-1.03-20120221.patch without extra patch (just small fix about auth_dovecot sent by Claudio) It does not report any error for qmail-ldaplookup. Are you applying domainalias patch to qmail-ldap-1.03-20120221.patch? This patch is already exist in qmail-ldap-1.03-20120221.patch Can you please do following and tell the result: 1. Apply only qmail-ldap-1.03-20120221.patch and just type make without setup check 2. run ./qmail-ldaplookup -m test Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 16.03.2012 17:15, Nicolas de Bari Embriz Garcia Rojas wrote: Hi, sorry for the confusion, I mean qmail-ldap-1.03-20120221.patch. Also I do not think it is an issue with the control/ldap settings since with the past versions 20120221 the qmail-ldaplookup works fine, I think something is missing/broken on qldap-filter.c. What I am doing for testing (FreeBSD 9 amd64) is compiling the base of qmail-ldap-1.03-20060201.patch plus this patches: domain alias http://kristof.bajnok.hu/qmail/qldap-domainalias.patch (domain alias) multiple qmqpc servers (for ezml lists) http://code.google.com/p/qmail-ldap-smtpauthuser/source/browse/trunk/qmail-qmqpc-servers_on_cmd_line.c SRS support http://code.google.com/p/qmail-ldap-smtpauthuser/source/browse/trunk/qmail-ldap-1.03-20060201-SRS.patch my conf-cc looks like this: cc -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing and conf-ld cc -s -rpath=/usr/lib:/usr/local/lib So far, version qmail-ldap-1.03-20060201 works fine with all this patches, but now when trying to 'upgrade'/compile/test version qmail-ldap-1.03-20120221.patch using/sharing the same /var/qmail/control, qmail-ldaplookup does not work. Using only qmail-ldap-1.03-20120221.patch (no extra patches) compiles fine but qmail-ldaplook fails again, doing a little debug/diff between versions (2012 vs 2006) I notice that qldap-filter.c on version 2012 change considerable and this is because the implementation of the 'domainalias' patch: http://kristof.bajnok.hu/qmail/qldap-domainalias.patch I think that the implementation of the domain alias patch to the core (for avoiding the -DDOMAIN_ALIAS) on version qmail-ldap-1.03-20120221.patch is causing problems. The ldiff that I use is something like: dn: uid=t...@ejemplo.org,ou=ejemplo.org,ou=vusers,dc=inbox,dc=im objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: qmailUser uid: t...@ejemplo.org cn: test sn: test mail: t...@ejemplo.org mailMessageStore: ejemplo.org/test accountStatus: active smtpThrottle: 7 mailQuotaSize: 2147483648 userPassword: {SSHA}bRfoHmTRZTXyVywVdunoncu9jWWx32G2 mailQuotaCount: 0 PS. On either version qmail-ldap-1.03-20120221.patch or qmail-ldap-1.03-20060201-SRS.patch I edit the Makefile and modify the auto_uids.c with something like this: auto_uids.c: mv auto_uids.c.tmp auto_uids.c where auto_uids.c has this: /* These values are hard-coded here, which looks bad until you * * realise that they're hard-coded in ${PORTSDIR}/?IDs anyway. */ /* $FreeBSD: ports/mail/qmail/files/patch-auto_uids-c-dist,v 1.1 2011/07/18 20:55:29 garga Exp $ */ int auto_uida = 81; int auto_uidd = 82; int auto_uidl = 83; int auto_uido = 0; int auto_uidp = 84; int auto_uidq = 85; int auto_uidr = 86; int auto_uids = 87; int auto_gidq = 82; int auto_gidn = 81; On Fri, Mar 16, 2012 at 2:05 PM, Ismail YENIGUL ismail.yeni...@surgate.com wrote: Hi Nicolas, First of all new patch is qmail-ldap-1.03-20120221.patch not qmail-ldap-1.03-20060201.patch I compiled both patch on FreeBSD Linux without any problem. Can you please post here exact output and ldap ldiff about dom...@ejemplo.org Did you verify that control/ldap* settings are correct? Thanks Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 15.03.2012 15:41, Nicolas de Bari Embriz Garcia Rojas wrote: Hi, after compiling qmail with the new patch qmail-ldap-1.03-20060201, (freebsd) something seems to be broken on qldap-filter.c when trying to run /var/qmail/bin/qmail-ldaplookup -m dom...@ejemplo.org I get qmail-ldaplookup: fatal: qldap_filter: unspecified error Any idea of how to fix this? regards
Re: AW: qmail-ldap-envelope-scan patch for qmail-ldap-1.03-20120221
Hello Berger, The patches were already applied. Just edit Makefile (LDFLAGS etc) as you need then compile install Best regards Ismail YENIGUL Team Leader / Takım Lideri SurGATE Labs Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/surgate Blog: http://www.surgate.com/blog On 04.03.2012 00:20, Berger Stefan wrote: Hi Berger, Please find the attached patch tarbal contain big quota, envelope-scan patch and qmail-ldap-1.03-20120221. PS: I will setup a web page for this tarbal soon. Hello Ismail, Thank you but if I try to apply the envelope-patch or the big quota patch both are failing. I think these are the patches for the qmail-ldap version 20060201 or can I use the source files from the tarball ( it seems they are already patched when I had a look into the Makefile) Kind regards Steve
Re: qmail-ldap-1.03-20120221.patch
Hello Gennady, I am working on a qmail-ldap tarbal that cover most popular patches. so far, I only integrated big quota patch. If you only need this patch, I can send you patch for qmail-ldap-2012 Thanks Ismail YENIGUL Project Manager Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com On 27.02.2012 11:14, Gennady G. Marchenko wrote: Hi, Claudio Is it any plan to support large quota in qmail-ldap patch? Some years ago there was no any problem with it, but we are fully migrated to imap4 so now big quota is our main every days head ache. Best wishes, Gennady.
qmail-ldap-1.03-20120221.patch
Hello, It seems that there is a progress in qmail-ldap project. The latest patch is 20120221 at http://www.nrg4u.com. I tried but failed to compile with the following errors: qldap-filter.c: In function ‘filter_mail’: qldap-filter.c:147: warning: assignment discards qualifiers from pointer target type qldap-filter.c:182:2: error: #error XXX XXX make: *** [qldap-filter.o] Error 1 and auth_dovecot.o: In function `auth_init': auth_dovecot.c:(.text+0x228): undefined reference to `loglevel' auth_dovecot.c:(.text+0x234): undefined reference to `loglevel' collect2: ld returned 1 exit status make: *** [auth_dovecot] Error 1 diff -ruN qmail-ldap.orig/auth_dovecot.c qmail-ldap.new/auth_dovecot.c --- qmail-ldap.orig/auth_dovecot.c 2012-02-24 14:43:41.615196114 +0200 +++ qmail-ldap.new/auth_dovecot.c 2012-02-24 14:31:59.668186556 +0200 @@ -127,7 +127,7 @@ void auth_init(int argc, char **argv, stralloc *login, stralloc *authdata) { - extern unsigned long loglevel; + unsigned long loglevel; char *l, *p; unsigned int uplen, u; int n, opt; The following changes let me to compile on Centos 6 diff -ruN qmail-ldap.orig/qldap-filter.c qmail-ldap.new/qldap-filter.c --- qmail-ldap.orig/qldap-filter.c 2012-02-24 14:43:41.682431376 +0200 +++ qmail-ldap.new/qldap-filter.c 2012-02-24 14:30:19.985209641 +0200 @@ -179,8 +179,8 @@ } extcnt--; #else -#error XXX XXX /* basic qmail-ldap behavior test for usern...@domain.com and +#error XXX XXX catch...@domain.com */ ext = 0; extcnt = 0; Best regards. -- Ismail YENIGUL Project Manager Endersys is the 17th fastest growing company of Turkey Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com
Re: qmail-ldap-1.03-20120221.patch
Hello, On 24.02.2012 18:15, Claudio Jeker wrote: Can you send me the exact Makefile definitions you used to build? I will see that we can fix this... Ok I see the problem. I forget to comment out #LDAPFLAGS= line. Now this part is OK. Only problem is with loglevel in auth_dovecot. Btw, Do you have any plan for IPv6 support? Me and my colleague is working on to fix depreciated functions in LDAP to avoid DLDAP_DEPRECATED declration for OpenLDAP 2.4 I think, it would great to create a tarball contain all these patches as a distribution callled something qmail-ldap version X Thanks On Fri, Feb 24, 2012 at 02:49:41PM +0200, Ismail YENIGUL wrote: Hello, It seems that there is a progress in qmail-ldap project. The latest patch is 20120221 at http://www.nrg4u.com. I tried but failed to compile with the following errors: qldap-filter.c: In function â??filter_mailâ??: qldap-filter.c:147: warning: assignment discards qualifiers from pointer target type qldap-filter.c:182:2: error: #error XXX XXX make: *** [qldap-filter.o] Error 1 and auth_dovecot.o: In function `auth_init': auth_dovecot.c:(.text+0x228): undefined reference to `loglevel' auth_dovecot.c:(.text+0x234): undefined reference to `loglevel' collect2: ld returned 1 exit status make: *** [auth_dovecot] Error 1 diff -ruN qmail-ldap.orig/auth_dovecot.c qmail-ldap.new/auth_dovecot.c --- qmail-ldap.orig/auth_dovecot.c 2012-02-24 14:43:41.615196114 +0200 +++ qmail-ldap.new/auth_dovecot.c 2012-02-24 14:31:59.668186556 +0200 @@ -127,7 +127,7 @@ void auth_init(int argc, char **argv, stralloc *login, stralloc *authdata) { - extern unsigned long loglevel; + unsigned long loglevel; I think this is wrong. loglevel should be a global variable defined somewhere, seems it is not included. char *l, *p; unsigned int uplen, u; int n, opt; The following changes let me to compile on Centos 6 diff -ruN qmail-ldap.orig/qldap-filter.c qmail-ldap.new/qldap-filter.c --- qmail-ldap.orig/qldap-filter.c 2012-02-24 14:43:41.682431376 +0200 +++ qmail-ldap.new/qldap-filter.c 2012-02-24 14:30:19.985209641 +0200 @@ -179,8 +179,8 @@ } extcnt--; #else -#error XXX XXX /* basic qmail-ldap behavior test for usern...@domain.com and +#error XXX XXX catch...@domain.com */ ext = 0; extcnt = 0; Not sure what this is, will investigate. Best regards. -- Ismail YENIGUL Project Manager Endersys is the 17th fastest growing company of Turkey Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com
Re: Serving one domain on multiple servers
Hi, qmail-ldap is designed for exactly the case that you are telling. It is main/basic feature of qmail-ldap. You can choose the account's mailhost manually . You can distribute one domains users to many server. Did you read lwq ldap article http://www.lifewithqmail.org/ldap/ and http://www.nrg4u.com/qmail/QLDAPINSTALL To achieve this here is the key parts: * install qmail-ldap on all servers configure qmqp protocol in addition to smtp * use the same LDAP server settings (control/ldapserver,ldaplogin etc settings). * add domain.com to control/locals ,control/rcpthosts file on all servers * create user accounts with different mailhost values on ldap (you can use any ldap browser tool or phpldapadmin) Ismail YENIGUL Project Manager Endersys Ltd Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com On 15.11.2011 23:19, Khodayar Doustar wrote: Hi all, I'm planning to install lwq with ldap on a distributed mail system, separated servers for webmail(roundcube), mail gateway (lwq), directory and authentication server (ldap) and mail hubs(lwq), each one on separated server(s). All is OK with lwq but the fact that I'm going to host just one domain on more than on mail hub server, it means that mailboxes of some users will be stored in hub1.domain.com http://hub1.domain.com server and some other users will be stored in hub2.domain.com http://hub2.domain.com. I just want to know if that's possible, is ldap capable of handling such a system? For example could I have such information for users: mailname: us...@domain.com mailto:us...@domain.com mailhost: hub1.domain.com http://hub1.domain.com mailpath: /var/qmail/domains/domain.com/user1 http://domain.com/user1 and mailname: us...@domain.com mailto:us...@domain.com mailhost: hub2.domain.com http://hub2.domain.com mailpath: /var/qmail/domains/domain.com/user2 http://domain.com/user2 and how the user creation will take place? Is that possible to choose between servers the user is going to be created on? Or could it be distributed between servers? Any hint would be greatly appreciated since I couldn't find anything about this case on the web. Warm regards, Khodayar Doustar
Re: Re: Qmail-ldap + dovecot
Hi, what is the problem with openldap 2.4? I had a problem with duplicate mail attr. I simply commented misc.schema to solve the issue. -ismail -sent via mobile device -- orijinal mesaj -- Konu: Re: Qmail-ldap + dovecot Kimden: Nickitas immor...@internet.gr Tarih: 31.08.2011 13:16 That would be nice .. Looking forward for the final patch too - sorry cant help on that , not C programmer :( Other question now , has anyone implemented a new qmail schema that should work with latest versions of openldap ? On 08/30/2011 09:11 PM, Ismail YENIGUL wrote: Hi, It is good to know :). I think I should write a document about this issue. Actually I have a plan to create a toaster contain all necessary patches about qmail-ldap. Currently, I merged auth_dovecot, spf and domain alias patch. But I guess the most important patch is qmail-ipv6 patch. I tried to merge the patch at http://member.wide.ad.jp/~fujiwara/files/qmail-1.03-v6-20021006.diff but I stuck at qmail qmqp part. If someone can help on this case we may create another patch or tarball contain those patches. Thanks Ismail YENIGUL Project Manager Endersys Ltd Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com On 30.08.2011 18:29, Nickitas wrote: Hi , This configuration seems to work for me . Thanx a lot :) On 08/26/2011 04:54 PM, ismail.yeni...@endersys.com wrote: Hi here is my working config. The key part is passdb. # 2.0.13: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final) auth_debug = yes auth_verbose = yes base_dir = /var/run/dovecot disable_plaintext_auth = no first_valid_gid = 500 last_valid_gid = 65000 last_valid_uid = 65000 listen = * log_path = /var/log/dovecot mail_debug = yes mail_location = maildir:~/Maildir passdb { args = /var/qmail/bin/auth_dovecot ./Maildir/ driver = checkpassword } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid from subject mail_log_group_events = mechanisms = plain login quota = maildir quota_rule = *:storage=1024 quota_rule2 = Trash:storage=1024000 quota_rule3 = SPAM:ignore trash = /usr/local/etc/dovecot/dovecot-trash.conf } protocols = imap pop3 service imap-login { inet_listener imaps { port = 993 ssl = yes } process_min_avail = 1 } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } process_min_avail = 1 } ssl_cert =/etc/ssl/certs/mailcertificate.pem ssl_cipher_list = ALL ssl_key =/etc/ssl/private/mailcertificate.pem userdb { driver = prefetch } verbose_proctitle = yes verbose_ssl = yes protocol imap { mail_plugins = quota mail_log notify imap_quota ssl_cert =/etc/ssl/certs/mailcertificate.pem ssl_key =/etc/ssl/private/mailcertificate.pem } protocol pop3 { mail_plugins = quota mail_log notify ssl_cert =/etc/ssl/certs/mailcertificate.pem ssl_key =/etc/ssl/private/mailcertificate.pem } -sent via mobile device -- orijinal mesaj -- Konu: Re: Qmail-ldap + dovecot Kimden: Nickitasimmor...@internet.gr Tarih: 26.08.2011 15:19 Thank you Russel , I am definitely gonna try it when I get the chance cause your setup is almost identical to ours :) On 08/26/2011 02:47 PM, Russell Simpkins wrote: On 8/26/11 7:12 AM, Nickitas wrote: Thanx all for the answers :) I added strsalloc.o at both sections in Makefile and it worked ok (for the compilation) . I keep getting an error 111 though using this method (test pop connection) .. I ve also tried the Felipe's implementation , but I can't pass the authentication , think there is something that has to do with ldap config , will look more in this later .. Thank you again :) I too use dovecot for imap and simply configure dovecot to auth against the ldap server. I do not use the patch you listed, I use stock qmail-1.0.3 with qmail-ldap-1.03-20060201.patch. I use a similar method to Felipe, configuring dovecot to auth directly against LDAP and configuring qmail to use auth_smtp. If you can login using qmail, then there's no reason you shouldn't be able to log in with dovecot, it may just be a case of making sure you have the correct password scheme configured for dovecot. ## dovecot.conf protocols = imap imaps syslog_facility = mail ssl_cert_file = /etc/httpd/conf/certs/mail.crt ssl_key_file = /etc/httpd/conf/keys/mail.key mail_location = maildir:%h namespace private { prefix = INBOX. inbox = yes } mail_debug = yes maildir_copy_with_hardlinks = yes protocol imap { } protocol pop3 { } protocol lda { postmaster_address = postmas...@cttechhosting.net } auth_verbose = yes auth default { mechanisms = plain passdb ldap
Re: Qmail-ldap + dovecot
Hi, It is good to know :). I think I should write a document about this issue. Actually I have a plan to create a toaster contain all necessary patches about qmail-ldap. Currently, I merged auth_dovecot, spf and domain alias patch. But I guess the most important patch is qmail-ipv6 patch. I tried to merge the patch at http://member.wide.ad.jp/~fujiwara/files/qmail-1.03-v6-20021006.diff but I stuck at qmail qmqp part. If someone can help on this case we may create another patch or tarball contain those patches. Thanks Ismail YENIGUL Project Manager Endersys Ltd Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com On 30.08.2011 18:29, Nickitas wrote: Hi , This configuration seems to work for me . Thanx a lot :) On 08/26/2011 04:54 PM, ismail.yeni...@endersys.com wrote: Hi here is my working config. The key part is passdb. # 2.0.13: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final) auth_debug = yes auth_verbose = yes base_dir = /var/run/dovecot disable_plaintext_auth = no first_valid_gid = 500 last_valid_gid = 65000 last_valid_uid = 65000 listen = * log_path = /var/log/dovecot mail_debug = yes mail_location = maildir:~/Maildir passdb { args = /var/qmail/bin/auth_dovecot ./Maildir/ driver = checkpassword } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid from subject mail_log_group_events = mechanisms = plain login quota = maildir quota_rule = *:storage=1024 quota_rule2 = Trash:storage=1024000 quota_rule3 = SPAM:ignore trash = /usr/local/etc/dovecot/dovecot-trash.conf } protocols = imap pop3 service imap-login { inet_listener imaps { port = 993 ssl = yes } process_min_avail = 1 } service pop3-login { inet_listener pop3s { port = 995 ssl = yes } process_min_avail = 1 } ssl_cert =/etc/ssl/certs/mailcertificate.pem ssl_cipher_list = ALL ssl_key =/etc/ssl/private/mailcertificate.pem userdb { driver = prefetch } verbose_proctitle = yes verbose_ssl = yes protocol imap { mail_plugins = quota mail_log notify imap_quota ssl_cert =/etc/ssl/certs/mailcertificate.pem ssl_key =/etc/ssl/private/mailcertificate.pem } protocol pop3 { mail_plugins = quota mail_log notify ssl_cert =/etc/ssl/certs/mailcertificate.pem ssl_key =/etc/ssl/private/mailcertificate.pem } -sent via mobile device -- orijinal mesaj -- Konu: Re: Qmail-ldap + dovecot Kimden: Nickitasimmor...@internet.gr Tarih: 26.08.2011 15:19 Thank you Russel , I am definitely gonna try it when I get the chance cause your setup is almost identical to ours :) On 08/26/2011 02:47 PM, Russell Simpkins wrote: On 8/26/11 7:12 AM, Nickitas wrote: Thanx all for the answers :) I added strsalloc.o at both sections in Makefile and it worked ok (for the compilation) . I keep getting an error 111 though using this method (test pop connection) .. I ve also tried the Felipe's implementation , but I can't pass the authentication , think there is something that has to do with ldap config , will look more in this later .. Thank you again :) I too use dovecot for imap and simply configure dovecot to auth against the ldap server. I do not use the patch you listed, I use stock qmail-1.0.3 with qmail-ldap-1.03-20060201.patch. I use a similar method to Felipe, configuring dovecot to auth directly against LDAP and configuring qmail to use auth_smtp. If you can login using qmail, then there's no reason you shouldn't be able to log in with dovecot, it may just be a case of making sure you have the correct password scheme configured for dovecot. ## dovecot.conf protocols = imap imaps syslog_facility = mail ssl_cert_file = /etc/httpd/conf/certs/mail.crt ssl_key_file = /etc/httpd/conf/keys/mail.key mail_location = maildir:%h namespace private { prefix = INBOX. inbox = yes } mail_debug = yes maildir_copy_with_hardlinks = yes protocol imap { } protocol pop3 { } protocol lda { postmaster_address = postmas...@cttechhosting.net } auth_verbose = yes auth default { mechanisms = plain passdb ldap { args = /etc/dovecot-ldap.conf } userdb ldap { args = /etc/dovecot-ldap.conf } } dict { } plugin { } ## dovecot-ldap conf hosts =YOUR_LDAP_SERVER_IP:389 dn=cn=Manager,dc=cttechhosting,dc=net auth_bind = yes # this should match up to how you did your ldap accounts auth_bind_userdn = uid=%u,ou=accounts,dc=cttechhosting,dc=net ldap_version=3 base = ou=accounts,dc=cttechhosting,dc=net # tell dovecot what fields to use user_attrs = mailMessageStore=home,qmailUID=uid,qmailGID=gid,mailMessageStore=mail user_filter = ((objectClass=qmailUser)(uid=%u)) pass_attrs = mail=user,userPassword=password pass_filter = ((objectClass=qmailUser)(uid=%u)) default_pass_scheme = LDAP-SHA
Re: Qmail-ldap + dovecot
Hello, This is another solution but If you use dovecot-ldap settings you will loose session forwarding(proxy) feature of auth_dovecot/auth_imap in multi-backend server environments. With session forwarding feature, it does not matter which imap backend server you connect. the server will forward you request to account's imap server(mailserver attr). at retrieve the mails. Best Regards. Ismail YENIGUL Project Manager Endersys Ltd Phone :+90 216-4709423 | Mobile:+90 533 747 36 65 SurGATE: West Coast Labs Premium Anti-Spam Certificated Twitter: http://www.twitter.com/endersys Blog: http://blog.endersys.com On 25.08.2011 19:54, Felipe Augusto van de Wiel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 25-08-2011 08:02, Nickitas wrote: Hello list , I am trying to use dovecot in our qmail-ldap installation . I got the qmail-ldap-1.03-20060201-dovecot.v0.5 patch from http://www.mail-archive.com/qmail-ldap@qmail-ldap.org/msg07158.html; . The patch was done with some warnings (since our source has a spf patch that is normal) , so i also made the changes by hand just to be sure .. [...] I don't use auth_dovecot, but I do use qmail-ldap+dovecot, customizing dovecot to take a look at the right parameters in LDAP. I'm using Debian 5.0 (a.k.a. Lenny), with dovecot from backports. dovecot-imapd 1:1.2.10-1~bpo My /etc/dovecot contains: dovecot.conf dovecot-ldap.conf dovecot-ldap-userdb.conf - dovecot-ldap.conf (yes, it's a symlink) - --8--8--8--8-- The relevant part of dovecot.conf: protocols = imap imaps disable_plaintext_auth = yes log_path = /var/log/dovecot.log info_log_path = /var/log/dovecot-info.log log_timestamp = %Y-%m-%d %H:%M:%S ssl = required login_processes_count = 10 login_max_processes_count = 512 mail_location = maildir:~/Maildir mail_gid = vmail mail_privileged_group = mail protocol imap { mail_plugins = quota imap_quota mail_plugin_dir = /usr/lib/dovecot/modules/imap } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } auth default { mechanisms = plain passdb pam { } passdb ldap { args = /etc/dovecot/dovecot-ldap.conf } userdb ldap { args = /etc/dovecot/dovecot-ldap-userdb.conf } user = root } plugin { quota = maildir:User quota quota_rule = *:storage=2560M } - --8--8--8--8-- The relevant part of dovecot-ldap.conf: hosts = YOUR-SERVER-IP auth_bind = yes auth_bind_userdn = uid=%u,ou=People,dc=example,dc=net ldap_version = 3 base = dc=example,dc=net user_attrs = qmailUID=uid,mailMessageStore=home=/var/qmail/maildirs/%$,mailQuotaSize=quota_rule=*:bytes=%$ user_filter = ((objectClass=qmailUser)(uid=%u)(!(accountStatus=noaccess))(!(accountStatus=disabled))) pass_attrs = mail=user,userPassword=password pass_filter = ((objectClass=qmailUser)(!(accountStatus=disabled))(!(accountStatus=noaccess))) default_pass_scheme = SSHA Kind regards, - -- Felipe Augusto van de Wielfelipe.w...@complexopequenoprincipe.org.br Tecnologia da Informação (TI) - Complexo Pequeno Príncipe http://www.pequenoprincipe.org.br/T: +55 41 3310 1747 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCgAGBQJOVn5bAAoJECCPPxLgxLxP41IP/RRW+zeylXSDlmfinbu9D7un 0ALwsmTKJkv05RIAPlyCvInEHa0Gfh9MS6+kUE0LmOifblJYok9X/cRhTnREf1Up 2Z4T8y7TVsOI0MOuEKs4smXixGMLMi7XaSDkxPWO5mHlQ6CZdmw8hPa2JkIVSGKx /DQmd87uwcRc9+6P0+WU8baQsMG/6og8+jvM6iE/QL4A1csHyYo1IJ82NnMnrhuX QtYiSijRV+WhSvq8CzPxcRImara0ZBckMsTF5AQPXiFutqWepDVNtbLVwK3gINJp rKJ+Yr/hL3Qj/4sdU2Sh/oSs2glAoNNW5xUy8IQkQItNKsEoTxM+v5W5C9UIoMol d0WLGuLFSLo+HEGN9wrjeNW9KKZs2cjqwfHKaKaUkiQRhmjMCRcMgQu+bO7PDSCQ FCKoaNqTRqytb76DvYq6f8211M1UPl63wCa5rCPEr8LvC6tBM0O/KG63q0DLfiMz /W4c0XalxaTbu1+b4h154wThcxmze5QjGMorhnpyQtp18zy76jJx8PvBW8lpSqVe EvwEP09/f6c6pdmVVG7uyOZAG9aUwfMRU7+7mpnWFXugG2IJE6ffc8/DoBMslelr LOlzGN04q4y3qpwPj+687u//A7SdmP9FcStrtO2h7zgIzxRTHGilYHxhlitXpDwf Trgc67TIbjG8j/AAUZgZ =Y5QH -END PGP SIGNATURE-
Re: maximum number of message in queue
Hi Dika, It depends on your qmail queue file system and config-split value. You can increase config-split value(it must be a prime number) to change max mails in queue. See http://www.qmailwiki.org/index.php/Qmail-big Thanks. Dear All, Can somebody tell me what is the limit of maximum number of message in queue for qmail? Best wishes, Dika.Ye -- Ismail YENIGUL Endersys Ltd. Proje Yoneticisi / Project Manager