4 ms·
as for Dovecot (IMAP) honestly their page has good instruction. It's very modular program but I just used basics. https://doc.dovecot.org/configuration_manual/q
by adql 4y ago
as for Dovecot (IMAP) honestly their page has good instruction. It's very modular program but I just used basics. https://doc.dovecot.org/configuration_manual/quick_configuration/ https://doc.dovecot.org/configuration_manual/quick_configura...
Postfix itself is, uh, well I knew it well coz we also use it at work, but it was a bit of work, as my setup was a bit specific. The config itself was simple (mostly off their docs again), but I did a bit of customization.
I did extremely simple auth with just a text file with list of all the accounts + a bunch of aliases. Auth was provided by dovecot
...
passdb {
driver = passwd-file
args = /etc/dovecot/passwd
}
userdb {
driver = static
args = uid=vmail gid=vmail home=/home/vmail/%u
}
...
# auth for postfix submission
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
}
that just allowed to give smtpd auth this as extra parameters:
+ -o smtpd_sasl_type=dovecot
+ -o smtpd_sasl_path=private/auth
In the "other direction" (postfix sending mails to dovecot for delivery) I set up this in master.cf
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f ${sender} -d ${user}@${nexthop} -m tag.${extension}
that is entirely standard except one thing, -m tag.${extension} is a bit of a "trick"; it will create any +address as a directory under tag/ (if you have "lda_mailbox_autocreate" set to "yes" in "protocol lda"
So, for example email to "me@domain.com" would land in INBOX but "me+badsite@example.com" would land in tag/badsite directory.
that just needs something like
dovecot_destination_recipient_limit = 1
virtual_mailbox_domains = example1.com, example2.com
virtual_transport = dovecot
virtual_alias_maps = hash:/etc/postfix/virtual
to set up
- asimpletune 4y agoAmazing, thank you for your response