On Mon, Oct 19, 2020 at 06:24:47AM -0400, Aisha Tammy wrote:
> On 10/19/20 12:20 AM, Kastus Shchuka wrote:
> > On Sun, Oct 18, 2020 at 08:55:16PM -0400, Aisha Tammy wrote:
> > > Hi,
> > > 
> > >   I just upgraded to 6.8 and the upgrade process has been super cool and 
> > > simple :)
> > > 
> > > Unfortunately I seem to have hit some weird issue in OpenSMTPD where it 
> > > has stopped
> > > delivering the mail using Dovecots LMTP due to sending as wrong user.
> > > 
> > > osmtpd tries to send the mail as *_smtpd* even when configured to send as 
> > > a
> > > different user *excision*
> > 
> > 
> > Could it be this change: https://marc.info/?t=158789029000002&r=1&w=2 ?
> > 
> 
> Well damn... That would indeed cause this error.
> I guess a simple fix would be to add _smtpd to the socket group or change 
> socket
> group to _smtpd.
> 
> Another fix would be to have the whole virtual user system also be done using
> _smtpd but I feel that keeping things with separate users is better.
> 
> Thanks a lot for the answer!
> 
> Aisha
> 

Are you using Maildir and IMAP from dovecot? I am.
I've setup using vmail as the user for dovecot. Something similar to
your virtual user files, except that I have three files:
vdomains, vaddr and vusers.

vusers has the table you are using, except moving to user vmail instead
of excision, which doesn't matter. vdomains are the domains getting
mail.
vaddr are just the plain addresses used.

action a01 lmtp "/var/dovecot/lmtp" rcpt-to alias <aliases>
action a02 lmtp "/var/dovecot/lmtp" rcpt-to virtual <vusers>

match from any for local action a01 
match from any for domain <vdomains> rcpt-to <vaddr> action a02

This works really well. I'm also using PostgreSQL for the users,
passwords and home folders for dovecot, which solves the upcoming
removal of bsdauth in dovecot.

However, unrelated I'm having trouble setting up auth for sending. There
are many conflicting examples which I can't sort out. I'll look over
what you've posted to see if that can work for me. I have four mail
domains on this server and I'm definitely missing some small piece of
the puzzle.

Regards,
Chris Bennett


Reply via email to