Re: [courier-users] Courier build 20150619 released
Matus UHLAR - fantomas writes: >Matus UHLAR - fantomas writes: >>...now I only need to extract the patch from github and apply to maildrop. >>I'll try, thank you. On 20.06.15 12:02, Sam Varshavchik wrote: >Not just maildrop, but also courier-authlib. The actual code that >creates the home directory is shared across the line, in the >courier-authlib package. Well, I got patches for the last two commits: courier-authlib: autocreate home directory. Added AUTH_MKHOMEDIR_SKEL setting. but I don't see patches on github for maildrop yet... Look in the courier-libs repo. pgpyR6G90ssQ0.pgp Description: PGP signature -- ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Courier build 20150619 released
>Matus UHLAR - fantomas writes: >>...now I only need to extract the patch from github and apply to maildrop. >>I'll try, thank you. On 20.06.15 12:02, Sam Varshavchik wrote: >Not just maildrop, but also courier-authlib. The actual code that >creates the home directory is shared across the line, in the >courier-authlib package. Well, I got patches for the last two commits: courier-authlib: autocreate home directory. Added AUTH_MKHOMEDIR_SKEL setting. but I don't see patches on github for maildrop yet... -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Windows 2000: 640 MB ought to be enough for anybody -- ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] calling session PAM modules
Hello, On 08.06.15 20:01, Sam Varshavchik wrote: >But let's try the other way, first. Can you try patching >courier-authlib as follows, and see how well it works. If this works, >then all that needs to be done is make this part conditional upon a >setting. works with authdaemon, thank you. >diff --git a/courier-authlib/authpam.c b/courier-authlib/authpam.c >index 9d40e69..49d9bb6 100644 >--- a/courier-authlib/authpam.c >+++ b/courier-authlib/authpam.c >@@ -150,6 +150,25 @@ static int dopam(pam_handle_t **pamh, int *started) > DPRINTF("pam_acct_mgmt failed, result %d", retval); > } > } >+ >+ if (retval == PAM_SUCCESS) >+ { >+ retval=pam_open_session(*pamh, 0); >+ if (retval != PAM_SUCCESS) >+ { >+ DPRINTF("pam_open_session failed, result %d", retval); >+ } >+ } >+ >+ if (retval == PAM_SUCCESS) >+ { >+ retval=pam_close_session(*pamh, 0); >+ if (retval != PAM_SUCCESS) >+ { >+ DPRINTF("pam_close_session failed, result %d", retval); >+ } >+ } >+ > if (retval == PAM_SUCCESS) > { > DPRINTF("dopam successful"); > -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Your mouse has moved. Windows NT will now restart for changes to take to take effect. [OK] -- ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Courier build 20150619 released
Matus UHLAR - fantomas writes: ...now I only need to extract the patch from github and apply to maildrop. I'll try, thank you. Not just maildrop, but also courier-authlib. The actual code that creates the home directory is shared across the line, in the courier-authlib package. pgp4U0B2MoBXP.pgp Description: PGP signature -- ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
Re: [courier-users] Courier build 20150619 released
>>On 10.06.15 06:51, Sam Varshavchik wrote: >>>- Added AUTH_MKHOMEDIR_SKEL to several config files, first login or >>>message to an account creates the account's home directory. >Matus UHLAR - fantomas writes: >>nice to see, but it seems it wasn't added to maildrop. Unfortunately we >>don't run courier-mta here, only imap/pop3/maildrop, so I's like to see is >>in maildrop too, if possible >> >>...it seems that maildrop does ask authdaemon for homedir, but does not call >>pam_session (yeah, no wonder here...) On 19.06.15 19:15, Sam Varshavchik wrote: >It's the same fundamental problem, authdaemon is an independent >process. PAM handles acquired by authdamon can only be used by that >proces. > >Also, maildrop does not use any kind of a configuration file. The >configuration file really sets environment variables. So you'd have >to modify your mail server's environment, so that maildrop gets to >inherit these environment variables. That's something maildrop can't >solve on its own. > >It should be possible to add something to maildrop to do this, but >setting up the environment variable would be something that must be >done on its own. of course, this is precisely what I expected as solution. I'll try to push the variable to postfix (export_environment should do that) ...now I only need to extract the patch from github and apply to maildrop. I'll try, thank you. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. WinError #98652: Operation completed successfully. -- ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
[courier-users] maildrop build 20150620
Download: http://www.courier-mta.org/download.html#maildrop This adds an optional maildrop hook to have a new account's home directory automatically created, as noted in INSTALL. Not fully tested. pgpKTigx6Q7sB.pgp Description: PGP signature -- ___ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users