Sent from my Verizon Smartphone
On Aug 27, 2018 8:54 AM, Matt Schwartz wrote:
>
> I am hoping not to have to use sqlite tables. I like the simplicity of
> file-based configuration.
> On Mon, Aug 27, 2018 at 9:47 AM Reio Remma wrote:
> > 
> > Iirc I got the .forward file working with sqlite tables, where the user query also returned the virtual user’s maildir as an extra parameter.
> > 
> > Good luck, 
> > Reio 
> > 
> > > On 27 Aug 2018, at 16:11, Matt Schwartz wrote:
> > > 
> > > Hello misc@, 
> > > 
> > > Below is my configuration file. I am trying to use the userbase
> > > parameter and when I try to send an email to myself, I get the 550 
> > > Invalid Recipient error. I am trying to get the usrbase parameter
> > > working so that I can add a .forward file for virtual users as per the
> > > table(5) man page. If I don't use the userbase parameter, mail
> > > delivery works just fine. I am not certain what I am doing wrong here.
> > > 
> > > #smtpd.conf 
> > > pki mail cert "/etc/ssl/smtpd.crt" 
> > > pki mail key "/etc/ssl/private/smtpd.key" 
> > > 
> > > table aliases file:/etc/mail/aliases 
> > > table addrnames file:/etc/mail/addrnames 
> > > table credentials file:/etc/mail/credentials 
> > > table domains file:/etc/mail/domains 
> > > table virtuals file:/etc/mail/virtuals 
> > > table usrbase file:/etc/mail/usrbase 
> > > table rejects file:/etc/mail/rejects 
> > > 
> > > # Listeners 
> > > # 
> > > listen on lo0 
> > > listen on lo0 port 10028 tag DKIM 
> > > listen on vio0 tls pki mail hostnames 
> > > listen on vio0 port 587 tls-require pki mail auth  \ 
> > >        hostnames 
> > > 
> > > # Actions 
> > > # 
> > > action "local" mda "/usr/local/bin/rspamc -d %{dest} --mime --exec 
> > > '/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest} -a 
> > > %{rcpt}'" alias 
> > > action "domain" mda "/usr/local/bin/rspamc -d %{dest} --mime --exec 
> > > '/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest} -a 
> > > %{rcpt}'" userbase  virtual 
> > > action "dkim" relay host smtp://127.0.0.1:10027 
> > > action "relay" relay 
> > > 
> > > # Incoming 
> > > # 
> > > match from any mail-from  for any reject 
> > > match from local for local action "local" 
> > > match from any for domain  action "domain" 
> > > 
> > > # Outgoing 
> > > # 
> > > match tag DKIM for any action "relay" 
> > > match from local for any action "dkim" 
> > > match auth from any for any action "dkim" 
> > > 
> > > #usrbase 
> > > m...@example.org     2000:2000:/var/vmail/example.org/matt
> > > 
> > > #virtuals 
> > > m...@example.org             vmail
> > > 
> > > Thanks in advance, 
> > > Matt 
> > > 
> > > -- 
> > > You received this mail because you are subscribed to misc@opensmtpd.org 
> > > To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org 
> > > 
> > 
> > 
> > -- 
> > You received this mail because you are subscribed to misc@opensmtpd.org 
> > To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org 
> > 
>
> -- 
> You received this mail because you are subscribed to misc@opensmtpd.org 
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org 
>

It seems to be a bug. Look at the thread about forwarding a single email. He has the same issue. I switched to MySQL tables about a year ago and it is so much easier.

Reply via email to