wk2: account management tooling
This commit is contained in:
parent
37eeeb2467
commit
f864d9c84e
34 changed files with 379 additions and 350 deletions
16
target/postfix/main.cf
Normal file
16
target/postfix/main.cf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# https://doc.dovecot.org/2.4.2/howto/virtual/postgresql.html
|
||||
transport_maps = pgsql:/etc/postfix/transport.cf
|
||||
virtual_uid_maps = pgsql:/etc/postfix/uids.cf
|
||||
virtual_gid_maps = pgsql:/etc/postfix/gids.cf
|
||||
# Note that we've set virtual_mailbox_base to /home, which means that it's
|
||||
# prefixed to all home directories in SQL database.
|
||||
virtual_mailbox_base = /home
|
||||
virtual_mailbox_maps = pgsql:/etc/postfix/mailboxes.cf
|
||||
virtual_maps = pgsql:/etc/postfix/virtual.cf
|
||||
mydestination = $mydomain, $myhostname
|
||||
|
||||
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
|
||||
smtpd_sasl_auth_enable = yes
|
||||
smtpd_sasl_security_options = noanonymous
|
||||
smtpd_sasl_local_domain = domain.org
|
||||
smtp_sasl_auth_enable = no
|
||||
3
target/postfix/sasl/smtpd.conf
Normal file
3
target/postfix/sasl/smtpd.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
pwcheck_method: saslauthd
|
||||
saslauthd_path: /etc/mux
|
||||
mech_list: login plain
|
||||
8
target/postfix/transport.cf
Normal file
8
target/postfix/transport.cf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
user=mailreader
|
||||
# TODO: remove default password
|
||||
password=mailreader-secret
|
||||
dbname=mails
|
||||
table=transport
|
||||
select_field=transport
|
||||
where_field=domain
|
||||
hosts=localhost
|
||||
8
target/postfix/uids.cf
Normal file
8
target/postfix/uids.cf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
user=mailreader
|
||||
# TODO: remove default password
|
||||
password=mailreader-secret
|
||||
dbname=mails
|
||||
table=users
|
||||
select_field=uid
|
||||
where_field=userid
|
||||
hosts=localhost
|
||||
Loading…
Add table
Add a link
Reference in a new issue