Re: [courier-users] Best practize for $USER -> EMail

2017-01-20 Thread Mark Constable
On 20/01/17 22:22, Michelle Konzack wrote:
> All the users where created on  as "normal" UNIX users
> and there login name is also there email address. So, now you can
> imagine, that this give problems if  is responsable for
> different  domains, where maybe two users have the same names...

You could go completely virtual and store j...@domain1.tld and
j...@domain2.tld usernames in PG, MySQL or SQLite, along with
different home/maildir paths, quotas and uid/gids.

> Question: Is there a limitation in the number if files or symlinks
>  in the /etc/courier/aliases/ directory? I think also on using my
> PostgreSQL for all this aliasses and generate only one file
>automated which then run "makealiases" Any suggestions?

System aliases are certainly efficient but if you would consider
running maildrop as the delivery agent then you could "naturally"
split up all user aliasing to each users home dir dictated by the
above SQL query (not the /etc/passwd homedir, but could be the same.)

maildrop also provides per-user mailfilters which allows for per-user
vacation scripts along with a wide range of flexibility to do just
about anything.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Best practize for $USER -> EMail

2017-01-20 Thread Sam Varshavchik

Michelle Konzack writes:


So my idea is, to use a script an rename all UNIX users by  a  construct
like
user1
user2
user3
etc

and then use the /etc/courier/aliases/  directory  to  point  the  EMail
adresses to the new user construct.

Do you think, this is OK?

I mean, I do absolutely not want  to  use  LDAP.   But  I  can  use  the
PostgreSQL to use the mapping or whatever is required.  I  mean,  I  can
use pam_pgsql and courier authpgsql.

Since my users can creathe ANY mail names of there  choice,  every  user
has a ~/.courier_aliasses file which is maped  to  /etc/courier/aliases/
and whatched by a cron process for changes which run "makealiases".

Question:   Is there a limitation in the number if files or symlinks  in
the /etc/courier/aliases/ directory? I think also  on  using
my PostgreSQL for all this aliasses and  generate  only  one
file automated which then run "makealiases"

Any suggestions?


This is mostly a system limitation. Last time I read this topic, Linux  
starts to grind down with around 2 files in the same directory. But  
that's old info, things might have changed. And that applies to native Linux  
filesystems. With NFS-mounted filesystems, this becomes an issue for the NFS  
server (won't matter if the server is also Linux, of course).


You don't have to have just one alias defined in each file of its own. You  
can put everything into a single alias file.


Linux userids are 32 bits; but it is not advised to use 32 bit userids for  
compatibility with filesystems and APIs that expect 16 bit UIDs. Pretty sure  
one of them is NFS, so that's going to be your limiting factor.





pgpCPuW8GEU5l.pgp
Description: PGP signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] Best practize for $USER -> EMail

2017-01-20 Thread Michelle Konzack
Hello *,

I have following server:

   (store all the UNIX users and
 there content)

  (has  over NFS mounted)

 (non public)

(access all the ~/public_html/
 on the  servers)

   (access private date on
 )

(store websites and can access ~/web/
 over NFS on  servers)

All the users where created on  as "normal"  UNIX  users  and
there login name is also there email address.  So, now you can  imagine,
that this give problems if  is responsable for different  domains,
where maybe two users have the same names...

So my idea is, to use a script an rename all UNIX users by  a  construct
like
user1
user2
user3
etc

and then use the /etc/courier/aliases/  directory  to  point  the  EMail
adresses to the new user construct.

Do you think, this is OK?

I mean, I do absolutely not want  to  use  LDAP.   But  I  can  use  the
PostgreSQL to use the mapping or whatever is required.  I  mean,  I  can
use pam_pgsql and courier authpgsql.

Since my users can creathe ANY mail names of there  choice,  every  user
has a ~/.courier_aliasses file which is maped  to  /etc/courier/aliases/
and whatched by a cron process for changes which run "makealiases".

Question:   Is there a limitation in the number if files or symlinks  in
the /etc/courier/aliases/ directory? I think also  on  using
my PostgreSQL for all this aliasses and  generate  only  one
file automated which then run "makealiases"

Any suggestions?

Thanks in avance

-- 
Michelle KonzackITSystems
GNU/Linux Developer 0033-6-61925193


signature.asc
Description: Digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users