On 03/01/14 11:24, Sam Varshavchik wrote:
>> Is it possible somehow to get maildir, quota and/or options info when using
>> authpwd or authshadow?
>
> The problem is that there are no fields for any of that, in your /etc/passwd.

Yep, perfectly understandable, I've never used authpwd/authshadow before so I
wanted to see how useful they might be seeing that /etc/{passwd,shadow} already
exist. I just thought maybe the comment field in /etc/passwd might provide some
magic by convention.

> What should happn with this one, is the maildir should be 
> /home/ns/markconstable.lan/Maildir,
>  and owned by the system userid/groupid. Also, check that the sticky bit is 
> not
>  set on the home directory or the maildir.

How about this scenario where /home/ns/markconstable.lan is root owned but both
var/ and mail/ are owned by the right uid:gid in 
/home/ns/markconstable.lan/var/mail?

(where "mail" is the actual maildir)

The reason being for the bizarre path is so I can use this for ssh chroots...

     Subsystem sftp internal-sftp
     Match User u*
       ChrootDirectory %h

and the domainname for the users home dir is so I can use this for nginx...

     server {
       server_name  ~^(?<domain>.+)$;
       root         /home/ns/$domain/var/www;

So if authpwd happened to work with this /etc/passwd entry then I wouldn't need
any extra sqlite/mysql/db service on an embedded device or lxc container...

     u1005:x:1005:4::/home/ns/markconstable.lan:/bin/sh

ssh and niginx work nicely with the above so now I am trying to get esmtpd and
imapd to play along.

***

Also note here the sysuserid=<null> where the uid should be 1005.

Mar 01 02:38:22 tosh authdaemond[12541]: Authenticated: sysusername=u1005, 
sysuserid=<null>, sysgroupid=4, homedir=/home/ns/markconstable.lan, 
address=u1005, fullname=, maildir=<null>, quota=<null>, options=<null>


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to