Hi,

thanks for this (mostly complete) example.
This pretty much matches exactly, what I have come up with as well.

I think something like this should be added to the Github wiki or 
the man page to save other users time doing the research again.

Thanks,
Regards,
Joerg


> Am 11.06.2015 um 23:02 schrieb Edgar Pettijohn III <[email protected]>:
> 
> I don't remember why I have what I have and I don't have the time to 
> re-research, but hopefully this helps somewhat.  I think the setup you're 
> going for would be easier with sql, but I haven't set it up with opensmtpd 
> before so can't really help you there.
> 
> /etc/mail $ sudo cat smtpd.conf        
> 
> table aliases db:/etc/mail/aliases.db
> table vusers file:/etc/mail/vusers
> table vdomains file:/etc/mail/vdomains
> table creds file:/etc/mail/creds
> table recipients file:/etc/mail/recipients 
> 
> bounce-warn 1h, 6h, 2d
> expire 3d
> 
> pki xxx certificate "/etc/ssl/xxx.com.crt"
> pki xxx key "/etc/ssl/private/xxx.com.key"
> 
> listen on lo0
> listen on lo0 port 10029 tag DKIMOUT # outgoing mail
> 
> listen on egress tls pki xxx.com auth-optional
> listen on egress port submission tls-require pki xxx.com auth <creds>
> 
> accept for local alias <aliases> deliver to maildir
> 
> # tagged mail returned from dkimproxy
> accept tagged DKIMOUT for domain <vdomains> virtual <vusers> deliver to mda \
>        "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{rcpt}"
> accept tagged DKIMOUT for any relay
> 
> #start here - untagged mail
> accept from local for any relay via smtp://127.0.0.1:10028 #outgoing mail
> accept from any for domain <vdomains> virtual <vusers> deliver to mda \
>    "/usr/local/libexec/dovecot-lda -f %{sender} -d %{rcpt}"
> 
> /etc/mail $ sudo cat vusers
> 
> [email protected] _vmail
> [email protected] _vmail
> 
> "I believe the virtual users have to map to a system user"
> 
> /etc/mail $ sudo cat aliases
> 
> #       $OpenBSD: aliases,v 1.45 2014/06/06 16:46:43 gilles Exp $
> #
> #  Aliases in this file will NOT be expanded in the header from
> #  Mail, but WILL be visible over networks or from /usr/libexec/mail.local.
> #
> #       >>>>>>>>>>      The program "newaliases" must be run after
> #       >> NOTE >>      this file is updated for any changes to
> #       >>>>>>>>>>      show through to smtpd.
> #
> 
> root: [email protected]
> systemuser: [email protected]
> etc, etc...
> 
> #dovecot userdb
> user1{BLF-CRYPT}password:5000:5000::/var/vmail/%d/%n
> 
> /etc $ sudo cat passwd
> 
> _vmail:*:5000:5000::/var/vmail:/sbin/nologin

--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to