Compare commits

...

4 Commits

  1. 10
      src/mailsrv/assets/bin/mkvirt
  2. 4
      src/mailsrv/assets/dovecot/conf.d/10-mail.conf
  3. 4
      src/mailsrv/assets/postfix/main.cf

10
src/mailsrv/assets/bin/mkvirt

@ -19,3 +19,13 @@ postmap /etc/postfix/users
cd /etc/postfix cd /etc/postfix
cat /vol/db/aliases.d/*.list > aliases cat /vol/db/aliases.d/*.list > aliases
postmap aliases postmap aliases
### Sieve ###
# copy users sieve to mail
cd /vol/db/sieve.d
for user in * ; do
rsync -vaSH ${user} /vol/mail/${user}/.dovecot.sieve
done
chown -R vmail:vmail /vol/mail

4
src/mailsrv/assets/dovecot/conf.d/10-mail.conf

@ -27,7 +27,7 @@
# #
# <doc/wiki/MailLocation.txt> # <doc/wiki/MailLocation.txt>
# #
mail_location = maildir:~/Maildir:LAYOUT=fs mail_location = maildir:~/Maildir
# If you need to set multiple mailbox locations or want to change default # If you need to set multiple mailbox locations or want to change default
# namespace settings, you can do it by defining namespace sections. # namespace settings, you can do it by defining namespace sections.
@ -46,7 +46,7 @@ namespace inbox {
# Hierarchy separator to use. You should use the same separator for all # Hierarchy separator to use. You should use the same separator for all
# namespaces or some clients get confused. '/' is usually a good one. # namespaces or some clients get confused. '/' is usually a good one.
# The default however depends on the underlying mail storage format. # The default however depends on the underlying mail storage format.
separator = / separator = .
# Prefix required to access this namespace. This needs to be different for # Prefix required to access this namespace. This needs to be different for
# all namespaces. For example "Public/". # all namespaces. For example "Public/".

4
src/mailsrv/assets/postfix/main.cf

@ -17,12 +17,12 @@ compatibility_level = 2
### Domains ### ### Domains ###
# primary name of server # primary name of server
myhostname = mail.alemor.org myhostname = mailtest.alemor.org
myorigin = $mydomain myorigin = $mydomain
# domains to consider primary (local) endpoints # domains to consider primary (local) endpoints
mydestination = $myhostname, $mydomain, localhost.localdomain, localhost mydestination = $myhostname, $mydomain, localhost.localdomain, localhost
# domains to consider secondary (virtual) endpoints # domains to consider secondary (virtual) endpoints
virtual_alias_domains = epic.alemor.org, mail.alemor.org, home.alemor.org, alegre.alemor.org, daniel.alemor.org, fernando.alemor.org, juana.alemor.org, mario.alemor.org, moreno.alemor.org, mbox.alemor.org, pirealps.org virtual_alias_domains = epic.alemor.org, home.alemor.org, alegre.alemor.org, daniel.alemor.org, fernando.alemor.org, juana.alemor.org, mario.alemor.org, moreno.alemor.org
### Users ### ### Users ###
# get list of valid users from here instead of /etc/passwd # get list of valid users from here instead of /etc/passwd

Loading…
Cancel
Save