On Mon, Aug 27, 2018 at 09:11:02AM -0400, 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 <addrnames> > listen on vio0 port 587 tls-require pki mail auth <credentials> \ > hostnames <addrnames> > > # 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 <aliases> > action "domain" mda "/usr/local/bin/rspamc -d %{dest} --mime --exec > '/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest} -a > %{rcpt}'" userbase <usrbase> virtual <virtuals> > action "dkim" relay host smtp://127.0.0.1:10027 > action "relay" relay >
you might want to have a look at mda wrappers, it will simplify your actions considerably ;-) > # Incoming > # > match from any mail-from <rejects> for any reject > match from local for local action "local" > match from any for domain <domains> 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 > userbase maps a user to an account, so you shouldn't use an email address here, it should be 'vmail' since that's what you use as the delivery user in your virtuals table below: > #virtuals > m...@example.org vmail > -- Gilles Chehade https://www.poolp.org @poolpOrg -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org