if you read the manual page around userbase really closely you should be
able to see how to do virtual users pretty easily. But if you still find
it tricky
https://blog.corrupted.io/2014/06/09/OpenSMTPD-virtual-users-with-sqlite.html
is something I wrote up on how to do it with SQLite. Please be aware It
doesn't have the Dovecot piece in it because if you cant be bothered to
do a couple seconds of google fu to setup virtual users with dovecot and
sqlite you really shouldn't be running a mail server.

--
Jason Barbier [email protected]


On Sun, Jan 11, 2015, at 07:30 PM, Gonzalo Rodriguez wrote:
> I like to add virtual users (now have system users) like:
>
> MTA: OpenSMTPD LDA: Dovecot IMAP: Dovecot USR: Virtual DOMAINS:
> Virtual
>
> But I didn't found the right setup yet... any help would be nice :)
>
>
>
> 2015-01-11 0:40 GMT-03:00 Gonzalo Rodriguez <[email protected]>:
>> I just swtich from Postfix + Dovecot to OpenSMTPd + Dovecot
>>
>> And here is my conf:
>>
>> table domain file:/etc/mail/domain table aliases
>> db:/etc/mail/aliases.db
>>
>> expire 4h
>>
>> pki foobar.com certificate "/etc/ssl/foobar.com/foobar.crt" pki
>> foobar.com key "/etc/ssl/foobar.com/foobar.key" pki foobar.com
>> dhparams "/etc/ssl/foobar.com/dhparam.pem"
>>
>> listen on lo0 port 25 listen on egress port 25 tls pki foobar.com
>> auth-optional listen on egress port 2525 tls-require pki foobar.com
>> auth listen on lo0 port 10027 tag Signed
>>
>> accept for local alias <aliases> deliver to mda
>> "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} " accept
 from any for domain <domain> alias <aliases> deliver to mda
 "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} "
>> accept from any for domain <domain> deliver to mda
>> "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} " accept from
>> local for any relay accept for any relay
>>
>>
>> I also have spamd, this is under OpenBSD 5.6 -release.
>>
>> Any hint to make it better or secure?
>>
>> Thanks.
>

Reply via email to