Hello,

I cannot help you with your specific config, and don't know if opensmtp has problems resolving the subaddressing for 'maildir' delivery.

However, I guess you use dovecot (which I assume, given the vultr link you posted), so you could use LMTP to deliver the messages to dovecot's lmtp socket. This is what I use, and I can confirm that subaddressing works (not 100% certain on the details, but I think it's the MDA that resolves this - in this case dovecot).

hope this helps


On Sat, Jan 30, 2021 at 12:38:06PM +0100, Péter Bertalan Zoltán wrote:
Hello,

Here is my current configuration (only the relevant parts):


smtpd.conf:
-----------
pki foo.bp99.eu cert "/etc/ssl/foo.bp99.eu.crt"
pki foo.bp99.eu key "/etc/ssl/private/foo.bp99.eu.key"

table domains { foo.bp99.eu }
table aliases file:/etc/mail/aliases
table passwd passwd:/etc/mail/passwd
table virtuals file:/etc/mail/virtual

listen on all tls pki foo.bp99.eu
listen on all port submission tls-require pki foo.bp99.eu \
   auth <passwd>

action "local" mbox alias <aliases>
action "domain" \
   maildir "/var/vmail/%{dest.domain}/%{dest.user:lowercase|strip}" \
   virtual <virtuals>
action "relay" relay helo foo.bp99.eu

match from any for domain <domains> action "domain"
match from local for local action "local"
match from any auth for any action "relay"
-----------


/etc/mail/passwd:
----------------- [email protected]:[hash]:vmail:2000:2000:/var/vmail/foo.bp99.eu/bp99:userdb_mail=maildir:/var/vmail/foo.bp99.eu/bp99 -----------------


/etc/mail/virtual:
-----------------
abuse           bp99
hostmaster      bp99
postmaster      bp99
webmaster       bp99

bp99            vmail
bertalan.peter  bp99
-----------------


My problem is that emails sent to eg <[email protected]> are not delivered to <[email protected]>, but go into the maildir /var/vmail/foo.bp99.eu/bp99+sometag/.

Could you tell me what is wrong with my setup? I find all these tables mildly confusing. I can’t even find a mention of any `passwd:/path/to/file' in smtpd.conf(5). I found that on Vultr (https://www.vultr.com/docs/an-openbsd-e-mail-server-using-opensmtpd-dovecot-rspamd-and-rainloop). I think I need this nonstandard (?) credentials file so that I can point Dovecot to the same file for webmail authentication.


Thank you very much for your help in advance
Bertalan


--
Bertalan Z. Péter <[email protected]>
PGP: FB9B 34FE 3500 3977 92AE  4809 935C 3BEB 44C1 0F89


Attachment: signature.asc
Description: PGP signature

Reply via email to