need advice on massive email server migration with qmail-ldap

2006-08-09 Thread jay alvarez
Hi,

I'm working in an ISP and we have several clusters of
smtp servers handling customer's email needs.The email
flow looks like this. For incoming mails, they are
being received by two load-balanced smtp running
sendmail with a patch applied to it for it to be able
to querry a mysql database. This database is custom
made, AFAIK, and it contains only 1 table, the first
column contains actual email accounts
([EMAIL PROTECTED]), while the second one
contains their email address with some more
informations appended to it such as
[EMAIL PROTECTED] or
[EMAIL PROTECTED] This two columns are
used by sendmail in determining which smtp host the
email should be send, whether it must be forwarded to
an antivirus/spam server or not. Now, if the email is
forwarded to the cleaning server, those cleaning
servers also are running sendmail which also does the
same thing (querry the mysql database, using the third
column which contains account information for it to
know the final destination, because we have several
smtp/pop servers for various domains. 

I have already successfully implemented an
all-in-one(pop/imap/smtp/antivirus/spam) qmail-ldap
setup but I admit, that server is way less complicated
than the setup we have in the new company I'm working
for. The systems are running on Solaris and BSDI
platform and we are looking forward to migrating them
into newer, powerful intel. Now, for the most
significant part, have you already come up with the
same setup as I described above, probably have patched
qmail-ldap's smtp to process emails and querry the
ldap directory to know which smtp host it must forward
the emails? How about running a proxy pop servers
using qmail?. In our setup, clients are downloading
their mails with via pop through "Pop Proxy", the name
of the application I think...
The actual pop3 servers are running "Post.Office3.5.3"
which we also are thinking of migrating to another
application. Other admin also complained that they're
having a hard time finding out how to extract user
accounts from the Post.Office database because of lack
of documentation and support. The software is way too
old (1998). Do you happen to use one of this systems
before?

Do you recommend the built-in qmail-pop3d or some
other pop3 servers? (which one?) The postfix-qmail
debate is also a minor issue here. other admins do
prefer postfix. Can you give me an idea of dealing
with this issue? The old email format of our customers
are in mailbox. It is possible to migrate it to
maildir format, right? Lastly, we are planning to
improve our email service by increasing the mailbox
storage quota of each customer. Do you have any idea
how does gmail or yahoo provide such huge email space
(2gb) for free? Do they use a very high tech
compression program or are they just having a lot of
money to buy so many hard drives?


Thanks for the time!
-jay



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


qmail-pop3d-ssl no longer works after converting userpass to {SASL}principal@realm

2006-06-01 Thread jay alvarez
Hi,

I have an existing qmail-ldap installation with
userPasswords in hash.. However, I have decided to
implement a much more secure authentication using
kerberos. I'm only running smtpd and qmail-pop3d-ssl
which can successfully authenticate users via ldap
lookup. However, I needed to sync our kerberos and
ldap passwords so what I did was to change the
userPassword into the format: userPassword:
[EMAIL PROTECTED] To my understanding, this
kerberos passthru format means that authentication via
search and compare will not work anymore. Perhaps this
is why qmail-pop3d-ssl didn't work anymore. But after
reverting the password back to hash format, it
authenticated the user successfully.


Needless to say, I need to find an alternative to
those daemons. Here are my requirements:

It can offer pop3,imap, and smtp(auth) with ssl and
can authenticate users via kerberos or ldap binds.


We have clients with Windows workstations and I need
to recommend them to use a particular pop3/imap/smtp
client with full kerberos/ldap(bind) support. Also,
the tickets must come from those that have been
acquired by MIT's network identity manager (this is
because we are already using patched version of putty
that uses ticket which came from NIM.

Do you know any of those mail programs that meets my
requirements??

Heimdal has its own popper, however, I'm not sure if
it supports ssl encryption.

I'm currently looking at Qpopper and Cyrus imap server
but I have yet to join and inquire in their mailing
list.


Thanks!





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Setting up pop/imap (i'm lost)

2006-03-12 Thread jay alvarez
Good day!  I have an existing qmail-ldap setup. The server is being used only for ezmlm's mailing list. Now I need to make it function for normal email accounts both pop and imap. I have a qmail-pop3d symbolic link under my /service before and it is pointing to /var/qmail/boot/qmail-pop3d.. The problem is, when I issue a svc -u /service/qmail-pop3d it goes up but when I tried connecting via telnet, only the welcome banner is showned and all further commands I issued just floats their and nothing happens. Needless to say, I decided to delete that entire directory (/var/qmail/boot/qmail-pop3d) and look for a working alternative. By the way, that directory along with other "/var/qmail/boot/qmail-*" has been installed following QLDAPINSTALL.   Now, I'm following a different instruction, using qmail-pop3d-conf in combination with checkpassword: http://www.din.or.jp/~ushijima/qmail-conf/pop3.html and I have reach the end of the setup and have it listening on 110. Then
 when I telnet, and issue the authentication commands, I got: -ERR error in server configuration Connection closed by foreign host.  Now, I'm lost. It seems to me like qmail-pop3d-conf+checkpassword isn't made for qmail-ldap.  My question is.. which is which?? What authentication and pop access script are you using for your qmail-ldap installation?? also for imap? A link to a howto site would be much appreciated.  Thanks -jay   
		Brings words and photos together (easily) with 
PhotoMail  - it's free and works with Yahoo! Mail.

Re: problem using default@our.domain entry for ezmlm + qmail-ldap(hoorray!!! its working now!!!)

2006-01-26 Thread jay alvarez
Hi Nicolas,  I already found out my problem.. ezmlm-web, runs under ezmlmboy, and ezmlmboy has its home set to /var/ezmlm The dot-qmail files were created inside /var/ezmlm which should have been created inside /var/ezmlm/lists instead, since it is the mailMessageStore that is set in the ldap entry of mailing list user ezmlmboy.. Whew!! After 4 days... at last!!   For those who are just starting qmail-ldap+ezmlm+ezmlm-web (and also for my future reference), Here's how I did it:  Create a unix user account which will handle all your mailing list:  ezmlmboy:*:1012:1012::0:0:ezmlm mailing list user:/var/ezmlm/lists:/usr/sbin/nologin  Notice that its home is set to "/var/ezmlm/lists" you need exactly this path in your ldap entry for the user that will manage the mailing list.  Now create an ldap entry for a dedicated user that will manage the mailing list.  dn:
 uid=ezmlmboy,ou=people,o=our,dc=domain objectClass: top objectClass: qmailUser objectClass: person qmailUID: 1012  ---> should be set to the uid of ezmlmboy user qmailGID: 1012 uid: ezmlmboy sn: ezmlm cn: ezmlmboy mailHost: mail2.our.domain mail: [EMAIL PROTECTED] mailAlternateAddress: [EMAIL PROTECTED] mailMessageStore: /var/ezmlm/lists   -> home directory of user ezmlmboy qmailDotMode: dotonly accountStatus: nopop  Also set this in your ezmlmwebrc:  $LIST_DIR = "/var/ezmlm/lists";   That's all! Create a list via ezmlm-web.cgi  List Name: mis List Address: [EMAIL PROTECTED]  and see if the dot-qmail files and "mis" folder have been created inside /var/ezmlm/lists  # ls -lahs
 /var/ezmlm/lists/ total 8 2 drwx--  4 ezmlmboy  ezmlmboy   512B Jan 27 14:39 . 2 drwx--  3 ezmlmboy  ezmlmboy   512B Jan 27 14:39 .. 0 lrwx--  1 ezmlmboy  ezmlmboy    27B Jan 27 14:39 .qmail-mis -> /var/ezmlm/lists/mis/editor 0 lrwx--  1 ezmlmboy  ezmlmboy    28B Jan 27 14:39 .qmail-mis-default -> /var/ezmlm/lists/mis/manager 0 lrwx--  1 ezmlmboy  ezmlmboy    26B Jan 27 14:39 .qmail-mis-owner -> /var/ezmlm/lists/mis/owner 0 lrwx--  1 ezmlmboy  ezmlmboy    28B Jan 27 14:39 .qmail-mis-return-default -> /var/ezmlm/lists/mis/bouncer 2 drwx--  8 ezmlmboy  ezmlmboy   512B Jan 27 14:42 mis   After you subscribed an email address to "mis", try sending an email.  You should be getting this in you logs:  starting delivery 12: msg 9703434
 to local [EMAIL PROTECTED] @400043d9c0d50821f284 status: local 1/10 remote 0/20 @400043d9c0d50fffae24 delivery 12: success: ezmlm-send:_info:_qp_72543/did_0+0+3/ @400043d9c0d51003dc74 status: local 0/10 remote 0/20  That's it. Now the next step is to configure your ezmlm-web interface's access control so that only the mailing list administrator has the access to his mailing list.. I haven't done this yet :-) just refer to the manual..   bye bye!!Nicolas de Bari Embriz Garcia Rojas <[EMAIL PROTECTED]> wrote: From a previous post:---Hi, you just need to add the attribute mailAlternetAddress to the user that you want to catch all the emailmailAlternateAddress: [EMAIL PROTECTED]After doing that all the email that goes to [EMAIL PROTECTED] will be catched by the [EMAIL PROTECTED] that has the catchall attribute.also you can use it in this way: [EMAIL PROTECTED] and all the email that goes to user-* will  be catched to the email account that has that attribute, this is useful for using a mailing list just like ezmlmhope this can give you an idea on the catchall feature, there maybe other ways to use it but this are the ones that I use more frequentlyTry to put a catchall to an account that works on your server and it if works then try with your mailing list, also check that /var/ezmlm/lists exists and under that directory it is the name of the list, what i mean is that if /var/ezmlm/lists is the maildir of your list you should have there the .dot files for the mailing list
	
		 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Re: problem using default@our.domain entry for ezmlm + qmail-ldap

2006-01-26 Thread jay alvarez
Nicolas de Bari Embriz Garcia Rojas <[EMAIL PROTECTED]> wrote: From a previous post:---Hi, you just need to add the attribute mailAlternetAddress to the user that you want to catch all the emailmailAlternateAddress: [EMAIL PROTECTED]After doing that all the email that goes to [EMAIL PROTECTED] will be catched by the [EMAIL PROTECTED] that has the catchall attribute.also you can
 use it in this way: [EMAIL PROTECTED] and all the email that goes to user-* will  be catched to the email account that has that attribute, this is useful for using a mailing list just like ezmlmhope this can give you an idea on the catchall feature, there maybe other ways to use it but this are the ones that I use more frequentlyTry to put a catchall to an account that works on your server and it if works then try with your mailing list, also check that /var/ezmlm/lists exists and under that directory it is the name of the list, what i mean is that
 if /var/ezmlm/lists is the maildir of your list you should have there the .dot files for the mailing list Ok, here is one account that works well. I even tried sending an email to [EMAIL PROTECTED] and a folder named "/var/ezmlm/lists" was created and inside it is its Maildir folder containing the email..   dn: uid=ezmlmboy,ou=people,o=our,dc=domain --- objectClass: top objectClass: qmailUser objectClass: person mail: [EMAIL PROTECTED] mailAlternateAddress: [EMAIL PROTECTED] uid: ezmlmboy accountStatus: active mailHost: mail2.our.domain homeDirectory: /var/ezmlm/lists aliasEmpty: using default qmailDotMode: dotonly qmailUID: 1012 qmailGID: 1012 mailQuotaSize: 5000 mailQuotaCount: 0 (unlimited) mailSizeMax: 0 (unlimited) mailReplyText: undefined   Now, on ezmlm-web, I will create a mailing list   List Name: ops List Address: [EMAIL PROTECTED]  # ls /var/ezmlm/ .qmail-default  .qmail-default-owner    lists .qmail-default-default  .qmail-default-return-default  # ls /var/ezmlm/lists/ Maildir ops  # ls /var/ezmlm/lists/ops/ allow   config  inhost  mailinglist owner archive editor  inlocal
 manager public archived    headeradd   key mod subscribers bounce  headerremove    lock    outhost text bouncer indexed lockbounce  outlocal    webnamesTry sending an email to [EMAIL PROTECTED], and as you've said, a user with [EMAIL PROTECTED] attribute should catch this email...  starting
 delivery 2: msg 9703434 to local [EMAIL PROTECTED] @400043d9bd1b0884c74c status: local 1/10 remote 0/20 @400043d9bd1b0998796c delivery 2: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/ 
		  
What are the most popular cars? Find out at Yahoo! Autos 

Re: problem using default@our.domain entry for ezmlm + qmail-ldap

2006-01-26 Thread jay alvarez
Nicolas de Bari Embriz Garcia Rojas <[EMAIL PROTECTED]> wrote: try doing this:/var/qmail/bin/qmail-ldaplookup -m [EMAIL PROTECTED]if you get an: No entries found. maybe there is a problem with your ldiff Found 1 entry:  dn: uid=ezmlmboy,ou=people,o=our,dc=domain --- objectClass: top objectClass: qmailUser objectClass: person mail: [EMAIL PROTECTED] mailAlternateAddress: [EMAIL PROTECTED] uid: ezmlmboy accountStatus: active mailHost: mail2.our.domain homeDirectory: /var/ezmlm/lists aliasEmpty: using
 default qmailDotMode: dotonly qmailUID: 1012 qmailGID: 1012 mailQuotaSize: 5000 mailQuotaCount: 0 (unlimited) mailSizeMax: 0 (unlimited) mailReplyText: undefined   Could it be that -DASH_EXT is not working for me??? But I have this in my Makefile before building:  -DDASH_EXT  Is there a way to check this??  Thanks...  
	
		 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Re: problem using default@our.domain entry for ezmlm + qmail-ldap

2006-01-26 Thread jay alvarez
Russell Simpkins <[EMAIL PROTECTED]> wrote: jay alvarez wrote:> Hi,You have to add mailAlternateAddress: [EMAIL PROTECTED] Ok, already added but still got "Sorry,_no_mailbox_here_by_that_name" when trying to send an email to a mailing list address.  Here's the complete ldif:  dn: uid=ezmlmboy,ou=people,o=our,dc=domain objectClass: top objectClass: qmailUser objectClass: person qmailUID: 1012 qmailGID: 1012 uid: ezmlmboy sn: ezmlm cn: ezmlmboy mailHost: mail2.our.domain mail: [EMAIL PROTECTED] mailAlternateAddress: [EMAIL PROTECTED] mailMessageStore: /var/ezmlm/lists qmailDotMode: dotonly accountStatus: nopop
      However, the normal email account works fine:   dn: uid=jayson,ou=people,o=our,dc=domain objectClass: top objectClass: inetOrgPerson objectClass: posixAccount objectClass: qmailUser uid: jayson uidNumber: 2000 gidNumber: 2000 homeDirectory: /home/jayson loginShell: /bin/csh userPassword: mail: [EMAIL PROTECTED] mailHost: mail2.our.domain mailMessageStore: /var/vmail/jayson accountStatus: active mailSizeMax: 1000 qmailUID: 1010 qmailGID: 1010 mailQuotaSize: 5000  The mailing list I created is "ops" via ezmlm-web... I can see that these files have been successfully created:  # ls /var/ezmlm/
 .qmail-ops  .qmail-ops-owner    lists .qmail-ops-default  .qmail-ops-return-default     # cat lists/ops/config F:-aBCDEFGHIJKLMNOpQRSTUVWXYZ X: D:/var/ezmlm/lists/ops T:/var/ezmlm/.qmail-ops L:ops H:lists.our.domain C: 0: 3: 4: 5: 6: 7: 8:
 9:   Any idea why the "default" email address doesn't seem to catch the emails sent to "[EMAIL PROTECTED]"   Thanks.. 
		Bring words and photos together (easily) with 
PhotoMail  - it's free and works with Yahoo! Mail.

Re: problem using default@our.domain entry for ezmlm + qmail-ldap

2006-01-26 Thread jay alvarez
Hi,  You need to create a special catchall account for the lists. Specifically, [EMAIL PROTECTED] So, does this means that I need to create an ldap entry for "each" mailing lists?..(treat a mailing list address as if it is a real email account?) How about that, [EMAIL PROTECTED] entry??I have a script that gets things set up for ezmlm lists on my qmail-ldap install. It sets qmailDotMode: dotonly, and a mailAlternateAddress:
 [EMAIL PROTECTED] Happy to give you the cgi if you like.Andreas Sure, I'd be more than thankful if you could share this to me Thank you very much. -Jayson   
		  
What are the most popular cars? Find out at Yahoo! Autos 

problem using default@our.domain entry for ezmlm + qmail-ldap

2006-01-26 Thread jay alvarez
Hi,  I been exchanging emails for the past few days with  ezmlm-web people regarding my problem with getting ezmlm-web work with my qmail-ldap installation... I hope someone here could help me..   Here it is:  For my mailing list, someone from ezmlm-web suggested using one(1) dedicated user to manage all the mailing lists, the same thing with "vmail" user managing all the Maildirs of all the virtual users. Also, a separate domain (in my case, I used lists.our.domain).The entry looks like this:  ...using qmail-ldaplookup  dn: uid=ezmlmboy,ou=people,o=our,dc=domain --- objectClass: top objectClass: qmailUser objectClass: person mail: [EMAIL PROTECTED] uid: ezmlmboy accountStatus: active   ---> this is weird as it was nopop in my ldif file.
 mailHost: mail2.our.domain homeDirectory: /var/ezmlm/lists aliasEmpty: using default qmailDotMode: dotonly qmailUID: 1012 qmailGID: 1012 mailQuotaSize: 5000 mailQuotaCount: 0 (unlimited) mailSizeMax: 0 (unlimited) mailReplyText: undefined  ezmlmboy is present is also present as a unix account  ezmlmboy:*:1012:1012::0:0:ezmlm mailing list user:/var/ezmlm/lists:/usr/sbin/nologin  When I run the ezmlm-web program to create a test mailing lists (eg; "ops"), dot-qmail files are created inside /var/ezmlm/lists, see...  # ls  /var/ezmlm/lists/ .qmail-ops  .qmail-ops-owner    lists .qmail-ops-default 
 .qmail-ops-return-default   Now, when I try subscribing one, email to "ops" mailing list and sending a test email, I got an error at qmail saying: "no mailbox here by that name"  What's happening here??  I thought a user with a [EMAIL PROTECTED] email address will catch all the emails destined to an address that does not exists in ldap (in my case "[EMAIL PROTECTED]"  __ > How about ezmlm?? Were does ldap fits here? ezmlm does not care about ldap - it just takes the home directory of the current user  > First, email addressed to let's say, [EMAIL PROTECTED] arrives. > Then qmail see if lists.our.domain is in "locals" file... same process with a  > normal email account. Then if it is, it will now search ldap after knowing  > that the user doesn't really exist.. Retrieves the email address(ops), and  > creates a folder named "ops/Maildir"
  inside the mailMessageStore under the  > privilege of qmailUID.. do you refer to the "default" mail address? It does not create user-specific Maildirs - everything would just get stored in a single mail directory ___  I'm 100% sure that -DDASH_EXT is included in my qmail-ldap Makefile.  Any help will be greatly appreciated.. Thanks -jayson   
		Do you Yahoo!? 
With a free 1 GB, there's more in store with Yahoo! Mail.

Re: automaildirmake won't work(RESOLVED!!!)

2005-07-21 Thread jay alvarez
Hi,
  
  The last problem was, although the auto
homedir/maildir maker is working, its not following
the default delivery method that was written in
/var/qmail/control/defaultdelivery which was:

./Maildir/

The qmail logs says that it can't deliver to the
/var/vmail/bani which was set to user's
mailMessageStore, because its a directory(it's trying
to write the mail in mbox format). Its hard to
describe the actual logs but anyway, for users who
will encounter the same problem or any problem in the
future, here are the details of a working qmai-ldap
setup:

First and most important of all, as suggested by
Syahid:

Before building the qmail-ldap, set the:
 
#define LDAP_HOMEDIR"homeDirectory" 
to 
#define LDAP_HOMEDIR"nohomeDirectory" 
 
in qmail-ldap.h (inside the qmail source dir)

or else you will encounter that last problem I have
encountered above.

In ldap, make sure the user has at least the following
entries:

objectClass: qmailUser
mail: [EMAIL PROTECTED]
mailMessageStore: /var/vmail/bani

And lastly, if you are just trying to start a clean
installation of qmal-ldap, you should read the docs
here over and over again.

http://www.lifewithqmail.org/ldap/

and this one: I find this the most helpful
http://www.proscrutiny.com/howtos/qmail-ldap.html

lastly, this is the brief and concise, official
install instruction:
http://www.nrg4u.com/qmail/QLDAPINSTALL

But if you haven't experienced configuring qmail
before, like me, I suggest you start reading this:

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

and try setting up a qmail(not qmail-ldap) first. Make
sure you made them all work(qmail pop3d, and an imap
server, e.g; courier). Also, make sure that you have
understood the various components of ldap before
diving into a qmail-ldap installation. With that, even
with a huge difference in the installation process
between the two(qmail and qmail-ldap) I'm sure you'll
have a working qmail-ldap in less than three days.  


That's all folks!!!


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: automaildirmake won't work(RESOLVED!!!)

2005-07-21 Thread jay alvarez
Thank you very much Syahid!!!
 It worked!! You are the best!! :)

For others who have help me out since the day I
started my post, including Sameer, hyperax, Hardik,
and to many people to mention, THANK YOU VERY MUCH!!!
I wouldn't be here without you guys...(*wink*) Keep up
the good work!! Let's make this world a better place
to live in:)

--- Syahid Ali <[EMAIL PROTECTED]> wrote:

> hi,
> i think i've encountered this problem b4. maybe u
> can change parameter in 
> qmail-ldap.h  (in qmail source)
> 
> #define LDAP_HOMEDIR"homeDirectory"
> to
> #define LDAP_HOMEDIR"nohomeDirectory"
> 
> recompile qmail-ldap,
> 
> make sure the permission for /var/vmail is
> vmail:vmail,
> 
> and try again.
> 
> dunno if it will work for you but hope this help a
> bit.
> 
> bye.
> 
> 
> Regards,
> 
> Syahid bin Ali
> 
> 
> 
> 
> jay alvarez <[EMAIL PROTECTED]> 
> 07/22/2005 11:11 AM
> 
> To
> Sameer N Ingole <[EMAIL PROTECTED]>,
> qmail-ldap@qmail-ldap.org
> cc
> 
> Subject
> Re: automaildirmake won't work(it finally worked but
> doesn't follow 
> Maildir format)
> 
> 
> 
> 
> 
> 
> Hi everyone,
> 
>  Its Friday morning here in the Philippines, last
> day
> of work. I wish I could make this thing work today
> but...
> 
> this trick won't work either.
>  
> > --< example ldap attr >--
> > homeDirectory: /var/vmail
> > mailMessageStore: bani
> > deliveryMode: noprogram
> > --< end example ldap attr >--
> 
> Look:
> 
> gaheris# ldapsearch -LLLb 'ou=staff,dc=preginet'
> uid=bani mail homeDirectory mailmessagestore
> deliverymode
> 
> dn: uid=bani,ou=staff,dc=preginet
> mail: [EMAIL PROTECTED]
> mailHost: gaheris.camlann.pergi.net
> homeDirectory: /var/vmail
> mailMessageStore: bani
> deliveryMode: noprogram
> 
> galahad#mail -s "testing" [EMAIL PROTECTED]
> just a test
> .
> EOF
> 
> gaheris#tail -f /var/qmail/log/qmail/current
> @400042e04d6009d6da2c new msg 300
> @400042e04d6009e925c4 info msg 300: bytes 1033
> from <[EMAIL PROTECTED]> qp 1084 uid
> 1003
> @400042e04d6009e93d34 starting delivery 35: msg
> 300 to local [EMAIL PROTECTED]
> @400042e04d6009e94cd4 status: local 1/10 remote
> 0/20
> @400042e04d600eed9dfc delivery 35: success:
> did_0+1+0/qp_1086/
>   ^
> what's the meaning of  success in here... ^
> here's the continuation...
> 
> @400042e04d600f02eb1c status: local 0/10 remote
> 0/20
> @400042e04d600f11eedc end msg 300
> @400042e04d600f244a14 new msg 324
> @400042e04d600f36c48c info msg 324: bytes 1141
> from <[EMAIL PROTECTED]> qp 1086 uid
> 1012
> @400042e04d600f36dbfc starting delivery 36: msg
> 324 to local [EMAIL PROTECTED]
> @400042e04d600f36eb9c status: local 1/10 remote
> 0/20
> @400042e04d601765c4dc delivery 36: failure:
> Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
> 
> Now it says no mailbox here by that name. This error
> is exactly the same error being generated when the
> user is not even in ldap directory. 
> Watch:
> 
> galahad#mail -s "test" [EMAIL PROTECTED]
> just a test
> .
> EOT
> 
> 
> gaheris# tail -f /var/qmail/log/qmail/current
> 
> @400042e04e562dd4047c new msg 300
> @400042e04e562de8c4fc info msg 300: bytes 1037
> from <[EMAIL PROTECTED]> qp 1094 uid
> 1003
> @400042e04e562de8dc6c starting delivery 38: msg
> 300 to local [EMAIL PROTECTED]
> @400042e04e562de8ec0c status: local 1/10 remote
> 0/20
> @400042e04e5636073ed4 delivery 38: failure:
> Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
> 
> On my very first setup above, it didn't even create
> a
> dir named "bani" inside /var/vmail which represents
> his home directory and will also contain the Maildir
> folder.
> 
> 
> Going back to my previous weird experiment, now if I
> set his homeDirectory to /var/vmail/bani and
> mailMessageStore as bani
> 
> 
> gaheris# ldapsearch -LLLb 'ou=staff,dc=preginet'
> uid=bani mail mailhost homeDirectory
> mailmessagestore
> deliverymode
> 
> dn: uid=bani,ou=staff,dc=preginet
> homeDirectory: /var/vmail/bani
> mail: [EMAIL PROTECTED]
> mailHost: gaheris.camlann.pregi.net
> mailMessageStore: bani
> deliveryMode: noprogram
> 
> 
> galahad#mail -s "testing" [EMAIL PROTECTED]
> just a test
> .
> EOT
> 
> 
> I got:
> gaheris#tail -f /var/qmail/log/qmail/current
> 
> @400042e057c73603

RE: automaildirmake won't work(it finally worked but doesn't follow Maildir format)

2005-07-21 Thread jay alvarez


--- HyperAxe <[EMAIL PROTECTED]> wrote:

> Remove the mailMessageStore ldap attribute for user
> bani and then retain
> homeDirectory to /var/vmail/bani

I've already done your suggestion on from your last
mail, I just forgot to include it in my last post.
Anyway, here's to error generated now:

@400042e066d939fb299c delivery 65: deferral:
Unable_to_open_./Maildir:_is_a_directory._(#4.2.1)/

Now it's trying to write the actual mail to a file
./Maildir... And the only control file that has that
value is the defaultdelivery... 

Watch:
gaheris#cd /var/qmail/control
gaheris#grep Maildir *
defaultdelivery:./Maildir/

See... it still isn't following the Maildir format..

Anymore idea?

Thanks.







> 
> HyperAxe
> Email: [EMAIL PROTECTED]
> Web: http://www.hyperaxe.com
>  
> -Original Message-
> From: jay alvarez [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 22, 2005 11:11 AM
> To: Sameer N Ingole; qmail-ldap@qmail-ldap.org
> Subject: Re: automaildirmake won't work(it finally
> worked but doesn't
> follow Maildir format)
> 
> Hi everyone,
> 
>  Its Friday morning here in the Philippines, last
> day
> of work. I wish I could make this thing work today
> but...
> 
> this trick won't work either.
>  
> > --< example ldap attr >--
> > homeDirectory: /var/vmail
> > mailMessageStore: bani
> > deliveryMode: noprogram
> > --< end example ldap attr >--
> 
> Look:
> 
> gaheris# ldapsearch -LLLb 'ou=staff,dc=preginet'
> uid=bani mail homeDirectory mailmessagestore
> deliverymode
> 
> dn: uid=bani,ou=staff,dc=preginet
> mail: [EMAIL PROTECTED]
> mailHost: gaheris.camlann.pergi.net
> homeDirectory: /var/vmail
> mailMessageStore: bani
> deliveryMode: noprogram
> 
> galahad#mail -s "testing" [EMAIL PROTECTED]
> just a test
> .
> EOF
> 
> gaheris#tail -f /var/qmail/log/qmail/current
> @400042e04d6009d6da2c new msg 300
> @400042e04d6009e925c4 info msg 300: bytes 1033
> from <[EMAIL PROTECTED]> qp 1084 uid
> 1003
> @400042e04d6009e93d34 starting delivery 35: msg
> 300 to local [EMAIL PROTECTED]
> @400042e04d6009e94cd4 status: local 1/10 remote
> 0/20
> @400042e04d600eed9dfc delivery 35: success:
> did_0+1+0/qp_1086/
>   ^
> what's the meaning of  success in here... ^
> here's the continuation...
> 
> @400042e04d600f02eb1c status: local 0/10 remote
> 0/20
> @400042e04d600f11eedc end msg 300
> @400042e04d600f244a14 new msg 324
> @400042e04d600f36c48c info msg 324: bytes 1141
> from <[EMAIL PROTECTED]> qp 1086 uid
> 1012
> @400042e04d600f36dbfc starting delivery 36: msg
> 324 to local [EMAIL PROTECTED]
> @400042e04d600f36eb9c status: local 1/10 remote
> 0/20
> @400042e04d601765c4dc delivery 36: failure:
> Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
> 
> Now it says no mailbox here by that name. This error
> is exactly the same error being generated when the
> user is not even in ldap directory. 
> Watch:
> 
> galahad#mail -s "test" [EMAIL PROTECTED]
> just a test
> .
> EOT
> 
> 
> gaheris# tail -f /var/qmail/log/qmail/current
> 
> @400042e04e562dd4047c new msg 300
> @400042e04e562de8c4fc info msg 300: bytes 1037
> from <[EMAIL PROTECTED]> qp 1094 uid
> 1003
> @400042e04e562de8dc6c starting delivery 38: msg
> 300 to local [EMAIL PROTECTED]
> @400042e04e562de8ec0c status: local 1/10 remote
> 0/20
> @400042e04e5636073ed4 delivery 38: failure:
> Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
> 
> On my very first setup above, it didn't even create
> a
> dir named "bani" inside /var/vmail which represents
> his home directory and will also contain the Maildir
> folder.
> 
> 
> Going back to my previous weird experiment, now if I
> set his homeDirectory to /var/vmail/bani and
> mailMessageStore as bani
> 
> 
> gaheris# ldapsearch -LLLb 'ou=staff,dc=preginet'
> uid=bani mail mailhost homeDirectory
> mailmessagestore
> deliverymode
> 
> dn: uid=bani,ou=staff,dc=preginet
> homeDirectory: /var/vmail/bani
> mail: [EMAIL PROTECTED]
> mailHost: gaheris.camlann.pregi.net
> mailMessageStore: bani
> deliveryMode: noprogram
> 
> 
> galahad#mail -s "testing" [EMAIL PROTECTED]
> just a test
> .
> EOT
> 
> 
> I got:
> gaheris#tail -f /var/qmail/log/qmail/current
> 
> @400042e057c73603dba4 new msg 300
> @400042e057c736162354 info msg 300: bytes 1020
> from <[EMAIL PROTECTED]> qp 1528 uid
> 1003
> @400042e057c7

Re: automaildirmake won't work(it finally worked but doesn't follow Maildir format)

2005-07-21 Thread jay alvarez
Hi everyone,

 Its Friday morning here in the Philippines, last day
of work. I wish I could make this thing work today
but...

this trick won't work either.
 
> --< example ldap attr >--
> homeDirectory: /var/vmail
> mailMessageStore: bani
> deliveryMode: noprogram
> --< end example ldap attr >--

Look:

gaheris# ldapsearch -LLLb 'ou=staff,dc=preginet'
uid=bani mail homeDirectory mailmessagestore
deliverymode

dn: uid=bani,ou=staff,dc=preginet
mail: [EMAIL PROTECTED]
mailHost: gaheris.camlann.pergi.net
homeDirectory: /var/vmail
mailMessageStore: bani
deliveryMode: noprogram

galahad#mail -s "testing" [EMAIL PROTECTED]
just a test
.
EOF

gaheris#tail -f /var/qmail/log/qmail/current
@400042e04d6009d6da2c new msg 300
@400042e04d6009e925c4 info msg 300: bytes 1033
from <[EMAIL PROTECTED]> qp 1084 uid
1003
@400042e04d6009e93d34 starting delivery 35: msg
300 to local [EMAIL PROTECTED]
@400042e04d6009e94cd4 status: local 1/10 remote
0/20
@400042e04d600eed9dfc delivery 35: success:
did_0+1+0/qp_1086/
  ^
what's the meaning of  success in here... ^
here's the continuation...

@400042e04d600f02eb1c status: local 0/10 remote
0/20
@400042e04d600f11eedc end msg 300
@400042e04d600f244a14 new msg 324
@400042e04d600f36c48c info msg 324: bytes 1141
from <[EMAIL PROTECTED]> qp 1086 uid
1012
@400042e04d600f36dbfc starting delivery 36: msg
324 to local [EMAIL PROTECTED]
@400042e04d600f36eb9c status: local 1/10 remote
0/20
@400042e04d601765c4dc delivery 36: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

Now it says no mailbox here by that name. This error
is exactly the same error being generated when the
user is not even in ldap directory. 
Watch:

galahad#mail -s "test" [EMAIL PROTECTED]
just a test
.
EOT


gaheris# tail -f /var/qmail/log/qmail/current

@400042e04e562dd4047c new msg 300
@400042e04e562de8c4fc info msg 300: bytes 1037
from <[EMAIL PROTECTED]> qp 1094 uid
1003
@400042e04e562de8dc6c starting delivery 38: msg
300 to local [EMAIL PROTECTED]
@400042e04e562de8ec0c status: local 1/10 remote
0/20
@400042e04e5636073ed4 delivery 38: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

On my very first setup above, it didn't even create a
dir named "bani" inside /var/vmail which represents
his home directory and will also contain the Maildir
folder.


Going back to my previous weird experiment, now if I
set his homeDirectory to /var/vmail/bani and
mailMessageStore as bani


gaheris# ldapsearch -LLLb 'ou=staff,dc=preginet'
uid=bani mail mailhost homeDirectory mailmessagestore
deliverymode

dn: uid=bani,ou=staff,dc=preginet
homeDirectory: /var/vmail/bani
mail: [EMAIL PROTECTED]
mailHost: gaheris.camlann.pregi.net
mailMessageStore: bani
deliveryMode: noprogram


galahad#mail -s "testing" [EMAIL PROTECTED]
just a test
.
EOT


I got:
gaheris#tail -f /var/qmail/log/qmail/current

@400042e057c73603dba4 new msg 300
@400042e057c736162354 info msg 300: bytes 1020
from <[EMAIL PROTECTED]> qp 1528 uid
1003
@400042e057c736163eac starting delivery 106: msg
300 to local [EMAIL PROTECTED]
@400042e057c736164a64 status: local 1/10 remote
0/20
@400042e057c73b21fe2c delivery 106: success:
did_0+1+0/qp_1530/
@400042e057c73b32888c status: local 0/10 remote
0/20
@400042e057c73b407ec4 end msg 300
@400042e057c73b5dfd8c new msg 324
@400042e057c73b74bdc4 info msg 324: bytes 1128
from <[EMAIL PROTECTED]> qp 1530 uid
1012
@400042e057c73b74d534 starting delivery 107: msg
324 to local [EMAIL PROTECTED]
@400042e057c73b74e4d4 status: local 1/10 remote
0/20
@400042e057c807f521dc delivery 107: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
@400042e057c808014354 status: local 0/10 remote
0/20
@400042e057c808665a3c bounce msg 324 qp 1532
@400042e057c80890a274 end msg 324

Looks like the same error generated from Sameer's
suggestion where homeDirectory is set to /var/vmail
and mailMessageStore set to bani, Only this time, when
homeDirectory was set to /var/vmail/bani, the auto
homedir maker worked.

Watch:
gaheris#ls /var/vmail
bani
gaheris#ls /var/vmail/bani
Maildir
gaheris#ls /var/vmail/bani/Maildir
curnew   tmp


See..

Now, that the absolute path of homeDirectory is what
the auto homedir maker is looking.. perhaps the answer
to the problem lies in mailMessageStore value.

For the final experiment, I will set bani's
homeDirectory as is: /var/vmail/bani and bani's
mailMessageStore as /var/vmail/bani.


Since the above value points into a directory, the
default delivery(./Maildir) should work, that is, the
actual mail will not be written into a file named
"bani" inside /var/vmail but it will go further inside
/var/vmail/bani and look for the Maildir folder, go
inside it, find the appropriate folder whether its
cur, new or tmp, and get inside it and finally write
the actual mail.

Look at what happened:

gaheris# ldapsearch -LLLb 'ou=staff,dc=preginet'
uid=bani mail 

Re: automaildirmake won't work(it worked but this is weird!!)

2005-07-21 Thread jay alvarez


--- Hardik Dalwadi <[EMAIL PROTECTED]> wrote:

> jay alvarez wrote:
> 
> >Hi everyone,
> >
> >--- Hardik Dalwadi <[EMAIL PROTECTED]> wrote:
> >
> >  
> >
> >>I've already found the logfiles for qmail. It's in
> >>
> >>
> >>
> >>>/var/qmail/log/qmail/current, the same location
> of
> >>>qmail-smtpd/current log.
> >>>
> >>>After emptying the contents of
> >>>/var/qmail/log/qmail/current, I again tried
> sending
> >>>email and got these logs, which indeed tells it's
> a
> >>>homedir creation problem.
> >>>
> >>>@400042df416101e76b4c new msg 300
> >>>@400042df416101efc404 info msg 300: bytes
> 1070
> >>>  
> >>>
> >>>from <[EMAIL PROTECTED]> qp 1197
> uid
> >>
> >>
> >>>1003
> >>>@400042df416101efd78c starting delivery 28:
> msg
> >>>300 to local [EMAIL PROTECTED]
> >>>@400042df416101efe72c status: local 1/10
> remote
> >>>0/20
> >>>@400042df416108fcb284 delivery 28: deferral:
> >>>  
> >>>
>
>>Temporary_error_in_automatic_homedir_creation._(#4.3.0)/
> >>
> >>
> >>>@400042df4161090c69f4 status: local 0/10
> remote
> >>>0/20
> >>>@400042df41c6096ef484 starting delivery 29:
> msg
> >>>300 to local [EMAIL PROTECTED]
> >>>@400042df41c609716d54 status: local 1/10
> remote
> >>>0/20
> >>>
> >>>After a quick googling for the error message, I
> >>>  
> >>>
> >>found
> >>
> >>
> >>>this link:
> >>>  
> >>>
>
>>http://www.mail-archive.com/qmail-ldap%40qmail-ldap.org/msg01653.html
> >>
> >>
> >>>The user has a different scenario, but the same
> >>>  
> >>>
> >>error
> >>
> >>
> >>>message. 
> >>>deferral:
> >>>  
> >>>
>
>>Temporary_error_in_automatic_homedir_creation._(#4.3.0)
> >>
> >>
> >>> 
> >>>
> >>>  
> >>>
> >>If u got above type of error then there is
> >>permission problem.
> >>If you are hurry then change the /home permission 
> >>to 777.
> >>it will work for while. but due to security reason
> u
> >>can't do it.
> >>so you can use sudo. and another thing you vamil
> >>user is trying to create
> >>dir in /home dir. it has  not permission to create
> >>dir in /home directory.
> >>
> >>
> >I tried changing the mode of /home to 777 and send
> >another mail, but something weird happened.
> >First, the script created a home directory and a
> >Maildir(with cur, new, etc.) of the mail recipient
> >inside /home. Then it will create an ascii file in
> >/var/vmail that contains the actual mail. The ascii
> >file containing the mail is sort of like the mbox
> >format and named after the recipient's name.
> >  
> >
> 
> >For example, after sending email to
> >[EMAIL PROTECTED] it created a /home/bani and
> >/home/bani/Maildir directories... and an ascii file
> >/var/vmail/bani which resembles the mbox format.
> >
> >  
> >
> Ya, I know this problem even with me too.
> it will create two dir. one in /home/bani/Maildir
> and /var/qmail/bani/mbox and deliver the mail in
> /var/qmail/bani/mbox.
> U have default delivery to is mbox i think so that's
> why mbox is created.

I don't think so..
here:

gaheris#cat /var/qmail/control/defaultdelivery
./Maildir/


> 
> >Any idea why this is happening?
> >  
> >

> Ya, because u have qmailuid and qmailgid set to
> vmail's uid and gid.

How is this possible?  here are the contents of my
/etc/passwd:

qmaild:*:1003:1001:qmail-d:/var/qmail:/usr/sbin/nologin
qmaill:*:1004:1001:qmail-l:/var/qmail:/usr/sbin/nologin
qmailp:*:1005:1001:qmail-p:/var/qmail:/usr/sbin/nologin
qmailq:*:1006:1002:qmail-q:/var/qmail:/usr/sbin/nologin
qmailr:*:1007:1002:qmail-r:/var/qmail:/usr/sbin/nologin
qmails:*:1008:1002:qmail-s:/var/qmail:/usr/sbin/nologin
courier:*:1011:1011:courierdaemon:/home/courier:/bin/sh
vmail:*:1012:1012:qmail virtual
user:/var/vmail:/bin/sh

Still, why isn't vmail create 

Re: automaildirmake won't work(it worked but this is weird!!)

2005-07-21 Thread jay alvarez
Hi everyone,

--- Hardik Dalwadi <[EMAIL PROTECTED]> wrote:

> I've already found the logfiles for qmail. It's in
> 
> >/var/qmail/log/qmail/current, the same location of
> >qmail-smtpd/current log.
> >
> >After emptying the contents of
> >/var/qmail/log/qmail/current, I again tried sending
> >email and got these logs, which indeed tells it's a
> >homedir creation problem.
> >
> >@400042df416101e76b4c new msg 300
> >@400042df416101efc404 info msg 300: bytes 1070
> >from <[EMAIL PROTECTED]> qp 1197 uid
> >1003
> >@400042df416101efd78c starting delivery 28: msg
> >300 to local [EMAIL PROTECTED]
> >@400042df416101efe72c status: local 1/10 remote
> >0/20
> >@400042df416108fcb284 delivery 28: deferral:
>
>Temporary_error_in_automatic_homedir_creation._(#4.3.0)/
> >@400042df4161090c69f4 status: local 0/10 remote
> >0/20
> >@400042df41c6096ef484 starting delivery 29: msg
> >300 to local [EMAIL PROTECTED]
> >@400042df41c609716d54 status: local 1/10 remote
> >0/20
> >
> >After a quick googling for the error message, I
> found
> >this link:
>
>http://www.mail-archive.com/qmail-ldap%40qmail-ldap.org/msg01653.html
> >
> >The user has a different scenario, but the same
> error
> >message. 
> >deferral:
>
>Temporary_error_in_automatic_homedir_creation._(#4.3.0)
> >  
> >
> If u got above type of error then there is
> permission problem.
> If you are hurry then change the /home permission 
> to 777.
> it will work for while. but due to security reason u
> can't do it.
> so you can use sudo. and another thing you vamil
> user is trying to create
> dir in /home dir. it has  not permission to create
> dir in /home directory.
I tried changing the mode of /home to 777 and send
another mail, but something weird happened.
First, the script created a home directory and a
Maildir(with cur, new, etc.) of the mail recipient
inside /home. Then it will create an ascii file in
/var/vmail that contains the actual mail. The ascii
file containing the mail is sort of like the mbox
format and named after the recipient's name.

For example, after sending email to
[EMAIL PROTECTED] it created a /home/bani and
/home/bani/Maildir directories... and an ascii file
/var/vmail/bani which resembles the mbox format.

Any idea why this is happening?
Does it have something to do with both 
homeDirectory: /home/bani and 
mailMessageStore: /var/vmail
(Note: bani doesn't have an actual unix account and a
home directory, I just added the homeDirectory in ldap
because posixAccount requires it)

Thanks.. (hang on' we're almost there! :))







> 
> >Do you know what qmail program is being invoke to
> >create that virtual home directories? I know that
> its
> >not a separate script because the flag to enable it
> is
> >included in the main qmail Makefile. Perhaps I can
> run
> >it in debugging mode. Or, perhaps that user
> priveledge
> >in which that program is running is not set to
> >vmail:vmail, which owns the /var/vmail directory
> such
> >that it cannot create any file in it.
> >
> >Any idea?
> >
> >Thanks!
> >
> >
> >
> >  
> >
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


RE: automaildirmake won't work, emails got stuck in queue

2005-07-21 Thread jay alvarez


--- HyperAxe <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I think I know what your problem is. The content of
> /var/qmail/bin/dirmaker shouldn't be the commands to
> be used on creating
> the maildir, but rather the script to call to do so.
> Can you try this
> out? :
> 
> 1. Create a file named customdirmaker (or any file
> name you want) under
> /var/qmail/bin/ that contains the following script:
> 
> #!/bin/sh
> cd /var/vmail/
> /bin/mkdir -m 0700 -p $1
> /var/qmail/bin/maildirmake $1/Maildir
> 
> 2. Now modify /var/qmail/control/dirmaker so that it
> should only contain
> the line (use the filename from Step 1 if you
> decided to use something
> else):
> /var/qmail/bin/customdirmaker
> 
> 3. Test again.
> 
> Note: Please make sure that the script you wrote is
> executable by the
> user vmail.
> 
That's what I have already done. You can look at my
post below that has these:

gaheris# cat /var/qmail/bin/dirmaker
#!/bin/sh
/bin/mkdir -m 0700 -p $1
/var/qmail/bin/maildirmake $1/Maildir


See, the content of the script /var/qmail/bin/dirmaker
is the same as the one
you are telling me to create above. I made it sure
that permission is set to 755

also, the file /var/qmail/control/dirmaker has a line
which points to that script.

/var/qmail/bin/dirmaker

Exactly like what you've suggested above.


Holy cow!! Einstein, we need your help:)


> Hope this works now! :o)
> 
> HyperAxe
> Email: [EMAIL PROTECTED]
> Web: http://www.hyperaxe.com 
> 
> -Original Message-
> From: jay alvarez [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 21, 2005 4:36 PM
> To: HyperAxe; 'Sameer N Ingole';
> qmail-ldap@qmail-ldap.org
> Subject: RE: automaildirmake won't work, emails got
> stuck in queue
> 
> Hi,
> 
> --- HyperAxe <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > Can you try something like this?
> > 
> > #!/bin/sh
> > cd /var/vmail/
> > /bin/mkdir -m 0700 -p $1
> > /var/qmail/bin/maildirmake $1/Maildir
> > 
> 
> gaheris# cat /var/qmail/bin/dirmaker
> #!/bin/sh
> /bin/mkdir -m 0700 -p $1
> /var/qmail/bin/maildirmake $1/Maildir
> 
> 
> galahad# mail [EMAIL PROTECTED]
> Subject: Testing maildirmake script
> this is just a test whether maildirmake will work
> hope this thing work...:(
> .
> EOT
> 
> 
> gaheris#tail -f /var/qmail/log/qmail/current
> 
> @400042df5cc61650b32c new msg 356
> @400042df5cc6165a119c info msg 356: bytes 1103
> from <[EMAIL PROTECTED]> qp 1964 uid
> 1003
> @400042df5cc6165c923c starting delivery 88: msg
> 356 to local [EMAIL PROTECTED]
> @400042df5cc6165e9dac status: local 1/10 remote
> 0/20
> @400042df5cc61b8c6804 delivery 88: deferral:
>
Temporary_error_in_automatic_homedir_creation._(#4.3.0)/
> @400042df5cc61b8ebdac status: local 0/10 remote
> 0/20
> 
> It still didn't work..
> Wa...:)
> 
> > Best regards,
> > 
> > HyperAxe
> > Email: [EMAIL PROTECTED]
> > Web: http://www.hyperaxe.com 
> > 
> > -Original Message-
> > From: jay alvarez [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, July 21, 2005 4:05 PM
> > To: HyperAxe; 'Sameer N Ingole';
> > qmail-ldap@qmail-ldap.org
> > Subject: RE: automaildirmake won't work, emails
> got
> > stuck in queue
> > 
> > 
> > 
> > --- HyperAxe <[EMAIL PROTECTED]> wrote:
> > 
> > > Hi,
> > > 
> > > Are you using /var/qmail/bin/maildirmake or a
> > > customized script of your
> > > own? If you are using a custom script, can you
> > email
> > > us the content? 
> > no, its a custom script I got from the url I have
> > posted in my previous mail, which has two lines:
> > #!/bin/sh
> > /bin/mkdir -m 0700 -p $1
> > 
> > it has a permission set to:
> > 
> > -rwxr-xr-x   1 rootqmail
> > 
> > In the thread found at:
> >
>
http://marc.theaimsgroup.com/?l=qmail-ldap&m=111590884712691&w=2
> > 
> > "a)if I create the homedir by hand does mail
> > delivery
> > work?"
> > 
> > the answer is no.
> > 
> > I'm sure I did uncommented the #DEBUG=-DDEBUG
> before
> > doing the build but where can I set the LOGLEVEL
> to
> > 255?
> > 
> > I have attached here some files that might
> interest
> > you:)
> > 
> > Again, thank you very much for your patience!
> > Sincerely, 
> > jay
> > 
> > > 
> > > Thanks.
> > > 
> > > HyperAxe
> > > Email: [EMAI

RE: automaildirmake won't work, emails got stuck in queue

2005-07-21 Thread jay alvarez
Hi,

--- HyperAxe <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Can you try something like this?
> 
> #!/bin/sh
> cd /var/vmail/
> /bin/mkdir -m 0700 -p $1
> /var/qmail/bin/maildirmake $1/Maildir
> 

gaheris# cat /var/qmail/bin/dirmaker
#!/bin/sh
/bin/mkdir -m 0700 -p $1
/var/qmail/bin/maildirmake $1/Maildir


galahad# mail [EMAIL PROTECTED]
Subject: Testing maildirmake script
this is just a test whether maildirmake will work
hope this thing work...:(
.
EOT


gaheris#tail -f /var/qmail/log/qmail/current

@400042df5cc61650b32c new msg 356
@400042df5cc6165a119c info msg 356: bytes 1103
from <[EMAIL PROTECTED]> qp 1964 uid
1003
@400042df5cc6165c923c starting delivery 88: msg
356 to local [EMAIL PROTECTED]
@400042df5cc6165e9dac status: local 1/10 remote
0/20
@400042df5cc61b8c6804 delivery 88: deferral:
Temporary_error_in_automatic_homedir_creation._(#4.3.0)/
@400042df5cc61b8ebdac status: local 0/10 remote
0/20

It still didn't work..
Wa...:)

> Best regards,
> 
> HyperAxe
> Email: [EMAIL PROTECTED]
> Web: http://www.hyperaxe.com 
> 
> -Original Message-
> From: jay alvarez [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 21, 2005 4:05 PM
> To: HyperAxe; 'Sameer N Ingole';
> qmail-ldap@qmail-ldap.org
> Subject: RE: automaildirmake won't work, emails got
> stuck in queue
> 
> 
> 
> --- HyperAxe <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > Are you using /var/qmail/bin/maildirmake or a
> > customized script of your
> > own? If you are using a custom script, can you
> email
> > us the content? 
> no, its a custom script I got from the url I have
> posted in my previous mail, which has two lines:
> #!/bin/sh
> /bin/mkdir -m 0700 -p $1
> 
> it has a permission set to:
> 
> -rwxr-xr-x   1 rootqmail
> 
> In the thread found at:
>
http://marc.theaimsgroup.com/?l=qmail-ldap&m=111590884712691&w=2
> 
> "a)if I create the homedir by hand does mail
> delivery
> work?"
> 
> the answer is no.
> 
> I'm sure I did uncommented the #DEBUG=-DDEBUG before
> doing the build but where can I set the LOGLEVEL to
> 255?
> 
> I have attached here some files that might interest
> you:)
> 
> Again, thank you very much for your patience!
> Sincerely, 
> jay
> 
> > 
> > Thanks.
> > 
> > HyperAxe
> > Email: [EMAIL PROTECTED]
> > Web: http://www.hyperaxe.com 
> > 
> > -Original Message-
> > From: jay alvarez [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, July 21, 2005 3:25 PM
> > To: Sameer N Ingole; qmail-ldap@qmail-ldap.org
> > Subject: Re: automaildirmake won't work, emails
> got
> > stuck in queue
> > 
> > 
> > 
> > --- Sameer N Ingole <[EMAIL PROTECTED]>
> wrote:
> > 
> > > jay alvarez wrote:
> > > 
> > > >Hi,
> > > >
> > > >--- HyperAxe <[EMAIL PROTECTED]> wrote:
> > > >
> > > >  
> > > >
> > > >>Aside from the smtpd logs, do you also have
> > qmail
> > > >>logs. I'm not sure
> > > >>about your installation but with my
> installation
> > > >>using daemontools my
> > > >>qmail logs are under
> > > >>/service/qmail/logs/main/current and smtpd
> logs
> > > are
> > > >>under /service/qmail/logs/main/current. 
> > > >>
> > > >>Most details of errors can actually be seen on
> > > qmail
> > > >>logs. 
> > > >>
> > > >>
> > > >I've already found the logfiles for qmail. It's
> > in
> > > >/var/qmail/log/qmail/current, the same location
> > of
> > > >qmail-smtpd/current log.
> > > >
> > > >After emptying the contents of
> > > >/var/qmail/log/qmail/current, I again tried
> > sending
> > > >email and got these logs, which indeed tells
> it's
> > a
> > > >homedir creation problem.
> > > >
> > > >@400042df416101e76b4c new msg 300
> > > >@400042df416101efc404 info msg 300: bytes
> > 1070
> > > >from <[EMAIL PROTECTED]> qp 1197
> > uid
> > > >1003
> > > >@400042df416101efd78c starting delivery 28:
> > msg
> > > >300 to local [EMAIL PROTECTED]
> > > >@400042df416101efe72c status: local 1/10
> > remote
> > > >0/20
> > > >@400042df416108fcb284 delivery 28:
> deferral:
> > >
> >
>

Re: automaildirmake won't work, emails got stuck in queue

2005-07-21 Thread jay alvarez


--- Sameer N Ingole <[EMAIL PROTECTED]> wrote:

> jay alvarez wrote:
> 
> >Hi,
> >
> >--- HyperAxe <[EMAIL PROTECTED]> wrote:
> >
> >  
> >
> >>Aside from the smtpd logs, do you also have qmail
> >>logs. I'm not sure
> >>about your installation but with my installation
> >>using daemontools my
> >>qmail logs are under
> >>/service/qmail/logs/main/current and smtpd logs
> are
> >>under /service/qmail/logs/main/current. 
> >>
> >>Most details of errors can actually be seen on
> qmail
> >>logs. 
> >>
> >>
> >I've already found the logfiles for qmail. It's in
> >/var/qmail/log/qmail/current, the same location of
> >qmail-smtpd/current log.
> >
> >After emptying the contents of
> >/var/qmail/log/qmail/current, I again tried sending
> >email and got these logs, which indeed tells it's a
> >homedir creation problem.
> >
> >@400042df416101e76b4c new msg 300
> >@400042df416101efc404 info msg 300: bytes 1070
> >from <[EMAIL PROTECTED]> qp 1197 uid
> >1003
> >@400042df416101efd78c starting delivery 28: msg
> >300 to local [EMAIL PROTECTED]
> >@400042df416101efe72c status: local 1/10 remote
> >0/20
> >@400042df416108fcb284 delivery 28: deferral:
>
>Temporary_error_in_automatic_homedir_creation._(#4.3.0)/
> >@400042df4161090c69f4 status: local 0/10 remote
> >0/20
> >
> >Do you know what qmail program is being invoke to
> >create that virtual home directories? I know that
> its
> >  
> >
> I think its qmail-local which creates directories.
> You can try this.
> 
> su vmail -c `cat /var/qmail/control/dirmaker`
> /var/vmail/username/Maildir
> 
> (substitute username above with your mail user
> yanyan??)
> 
> See if it creates Maildir or not.
> 
yes it did.


> How did you create user vmail?
> (show command you used to create user vmail.)
> 
I'm running FreeBSD 5.4 so I didn't followed the
instructions for adding users found at:
http://www.proscrutiny.com/howtos/qmail-ldap.html#creating-dirmaker_subsec

Anyway, here's the entry in my /etc/passwd:

vmail:$1$aFeH1H3B$GtwMRp.9TvOzGsGklizLp0:1012:1012::0:0:qmail
virtual user:/var/vmail:/bin/sh

A

#`cat /var/qmail/control/ldap[g|u]id`
gives me:
1012

while
#cat /var/qmail/control/ldapmessagestore
/var/vmail

and as I've said, I have a /var/qmail/control/dirmaker
that contains the absolute path of the actual dirmaker
script located at /var/qmail/bin/


Anymore idea? 

Thanks again.


> >not a separate script because the flag to enable it
> is
> >included in the main qmail Makefile. Perhaps I can
> run
> >it in debugging mode. Or, perhaps that user
> priveledge
> >in which that program is running is not set to
> >vmail:vmail, which owns the /var/vmail directory
> such
> >that it cannot create any file in it.
> >
> >Any idea?
> >
> -- 
> Sameer N. Ingole
>
/*/
> Better to light one candle than to curse the
> darkness.
>
/*/
> 
> 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


RE: automaildirmake won't work, emails got stuck in queue

2005-07-20 Thread jay alvarez
Hi,

--- HyperAxe <[EMAIL PROTECTED]> wrote:

> Aside from the smtpd logs, do you also have qmail
> logs. I'm not sure
> about your installation but with my installation
> using daemontools my
> qmail logs are under
> /service/qmail/logs/main/current and smtpd logs are
> under /service/qmail/logs/main/current. 
> 
> Most details of errors can actually be seen on qmail
> logs. 
I've already found the logfiles for qmail. It's in
/var/qmail/log/qmail/current, the same location of
qmail-smtpd/current log.

After emptying the contents of
/var/qmail/log/qmail/current, I again tried sending
email and got these logs, which indeed tells it's a
homedir creation problem.

@400042df416101e76b4c new msg 300
@400042df416101efc404 info msg 300: bytes 1070
from <[EMAIL PROTECTED]> qp 1197 uid
1003
@400042df416101efd78c starting delivery 28: msg
300 to local [EMAIL PROTECTED]
@400042df416101efe72c status: local 1/10 remote
0/20
@400042df416108fcb284 delivery 28: deferral:
Temporary_error_in_automatic_homedir_creation._(#4.3.0)/
@400042df4161090c69f4 status: local 0/10 remote
0/20
@400042df41c6096ef484 starting delivery 29: msg
300 to local [EMAIL PROTECTED]
@400042df41c609716d54 status: local 1/10 remote
0/20

After a quick googling for the error message, I found
this link:
http://www.mail-archive.com/qmail-ldap%40qmail-ldap.org/msg01653.html

The user has a different scenario, but the same error
message. 
deferral:
Temporary_error_in_automatic_homedir_creation._(#4.3.0)

Do you know what qmail program is being invoke to
create that virtual home directories? I know that its
not a separate script because the flag to enable it is
included in the main qmail Makefile. Perhaps I can run
it in debugging mode. Or, perhaps that user priveledge
in which that program is running is not set to
vmail:vmail, which owns the /var/vmail directory such
that it cannot create any file in it.

Any idea?

Thanks!



> 
> Best regards,
> 
> HyperAxe
> Email: [EMAIL PROTECTED]
> Web: http://www.hyperaxe.com 
> 
> -Original Message-
> From: jay alvarez [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 21, 2005 1:49 PM
> To: qmail-ldap@qmail-ldap.org
> Subject: automaildirmake won't work, emails got
> stuck in queue
> 
> Hi,
>I'm trying to make qmail-smtp to work by
> retrieving
> user details from ldap but still no luck.
> 
> A tail on /var/qmail/log/qmail-smtpd/current gives
> me:
> 
> @400042df2efb00da19fc tcpserver: status: 1/50
> @400042df2efb00edffbc tcpserver: pid 703 from
> 10.10.8.112
> @400042df2efb01164454 tcpserver: ok 703
> gaheris.camlann.pregi.net:10.10.8.113:25
> galahad.camlann.pregi.net:10.10.8.112::62719
> @400042df2efb09f120bc tcpserver: end 703 status
> 0
> @400042df2efb09f43d9c tcpserver: status: 0/50
> 
> which makes me think that there's no problem in smtp
> 
> connection.
> 
> I have a user:group vmail:vmail with home directory
> set to /var/vmail.
> 
> I also have a file /var/qmail/control/dirmaker that
> contains the absolute path of the actual dirmaker
> script located at /var/qmail/bin/dirmaker and
> contains:
> #!/bin/sh
> /bin/mkdir -m 0700 -p $1
> 
> During installation, I also have these lines
> uncommented:
> 
> MDIRMAKE=-DAUTOMAILDIRMAKE
> HDIRMAKE=-DAUTOHOMEDIRMAKE
> 
> I have also indicated the rootdn and password in
> /var/qmail/control/ldaplogin|ldappassword
> 
> Tailing the debug.log of my slapd, I can see that
> upon
> arrival of the mail, qmail starts to search the
> directory and read access to it is being granted, so
> that means that there is no problem with regards to
> ldap lookups. I have attached here slapd's
> debug.log.
> 
> Here's the output of qmail-ldaplookup
> 
> Found 1 entry:
> 
> dn: uid=bani,ou=staff,dc=preginet
>
---
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> objectClass: posixAccount
> objectClass: qmailUser
> mail: [EMAIL PROTECTED]
> uid: bani
> accountStatus: undefined -> active
> mailHost: gaheris.camlann.pregi.net
> homeDirectory: /home/bani
> aliasEmpty: /var/vmail/bani
> qmailDotMode: ldaponly
> qmailUID: 1012
> qmailGID: 1012
> mailQuotaSize: 0 (unlimited)
> mailQuotaCount: 0 (unlimited)
> mailSizeMax: 0 (unlimited)
> mailReplyText: undefined
> 
> 
> Running /var/qmail/bin/qmail-qstat gives me:
> 
> messages in queue: 8
> messages in queue but not yet preprocessed: 0
> 
> 
> Do you have any idea where did I go wrong?
> 
> 
> Thanks.
> 
> 
> 
> 
>   
> 
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
>  
> 
> 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


Re: quick question on applying patch.

2005-07-18 Thread jay alvarez
Hi Sam,

  I'm sorry to bother you again but, I'm not following
any other instruction than that of those found in Life
with qmail. The instructions in that document is for
installation using the netqmail package. I know that
the package also contains the clean source tree of
qmail so after extracting it, I then went inside it
and find the qmail tarball, extracted it and applied
the ldap patch. My problem is that when I go back to
the original instruction on life with qmail, "running
the ./collate, the rest of the patches cannot be
applied due to the changes that was done by the
qmail-ldap patch. 




--- Sameer N Ingole <[EMAIL PROTECTED]> wrote:

> jay alvarez wrote:
> 
> >Hi,
> >
> >What is the best thing for me to do when I have
> >already installed qmail using netqmail package, if
> >according to QLDAPINSTALL, qmail-ldap patch should
> be
> >applied into a clean qmail source tree? Do I have
> to
> >  
> >
> You have to apply qmail-ldap patch to clean
> source of qmail-1.03.
> 
> Regards,
> 
> -- 
> Sameer N. Ingole
>
/*/
> Better to light one candle than to curse the
> darkness.
>
/*/
> 
> 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


quick question on applying patch.

2005-07-18 Thread jay alvarez
Hi,

What is the best thing for me to do when I have
already installed qmail using netqmail package, if
according to QLDAPINSTALL, qmail-ldap patch should be
applied into a clean qmail source tree? Do I have to
repeat the entire instructions on lifewithqmail or
just apply the patch right before running "./collate"?
Why didn't they just include the qmail-ldap patch in
the netqmail package since that package contains the
qmail source tree, plus other patches?

Thanks.




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs