Re: userbase question

2018-09-01 Thread Gilles Chehade
On Mon, Aug 27, 2018 at 09:54:05AM -0400, Matt Schwartz wrote: > I am hoping not to have to use sqlite tables. I like the simplicity of > file-based configuration. just for the record: besides table-specific features, all smtpd features are usable from file configurations since I write the

Re: userbase question

2018-09-01 Thread Gilles Chehade
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

very confused on userbase parameter

2018-09-01 Thread Matt Schwartz
I am afraid that I am hopelessly confused on the userbase parameter. If I were to have the following: # credentials user1 # userinfo # vmail user is 2000 user1 2000:2000:/var/vmail/user1 # virtuals us...@domain1.com vmail # smtpd.conf table credentials

I finally understand userbase

2018-09-01 Thread Matt Schwartz
Hi @misc, Please disregard my previous email. I finally figured out how userbase works! In case anyone is wondering how this works I wrote up something explaining it really quickly. Userbase simply maps a virtual user to a system user. The virtual user is defined in a separate file. So here's how

Re: very confused on userbase parameter

2018-09-01 Thread Matt Schwartz
Thanks but I finally figured it out and wrote up a little something that could hopefully benefit others. It's nice being able to use the .forward feature. On Sat, Sep 1, 2018 at 12:45 PM Reio Remma wrote: > > Hello! > > Are you using multiple domains? I just tested it in its simplest form > (in

Re: very confused on userbase parameter

2018-09-01 Thread Matt Schwartz
Here is my complete smtpd.conf. I actually don't use lmtp because I need to take advantage of spam checking. I use rspamd for spam checking. You can see that I use multiple domains as well. Gilles was kind enough to suggest using a wrapper and boy did it make things much more easy to read. pki

Re: very confused on userbase parameter

2018-09-01 Thread Matt Schwartz
Thanks Gilles. I puzzled it out and it's working great now. On Sat, Sep 1, 2018 at 1:50 PM Gilles Chehade wrote: > > On Sat, Sep 01, 2018 at 11:59:20AM -0400, Matt Schwartz wrote: > > I am afraid that I am hopelessly confused on the userbase parameter. > > If I were to have the following: > > > >

Re: very confused on userbase parameter

2018-09-01 Thread Chris Bennett
On Sat, Sep 01, 2018 at 05:50:27PM +, Gilles Chehade wrote: > > I'll describe how things work in this mail so it serves as reference for > future questions regarding aliases, virtual and userbase: > > Aliases and virtuals are mutually exclusive features that operate at the > same level,

Re: very confused on userbase parameter

2018-09-01 Thread Gilles Chehade
On Sat, Sep 01, 2018 at 11:20:37AM -0700, Chris Bennett wrote: > > Thanks, this helps a lot > > Just one more question. > > You reply sounds like I should choose either aliases or virtual, but not > both. Is this correct? > The option are mutually exclusive, you can't have a mechanism allow

Re: userbase question

2018-09-01 Thread Matt Schwartz
Hi Gilles, Thank you for your advice about using wrappers. I decided to implement an mda wrapper as per your suggestion. It is interesting that I still needed to specify either an mbox or maildir in the syntax when I specify a wrapper. In this case, it doesn't seem to matter if I use mbox or

Re: very confused on userbase parameter

2018-09-01 Thread Reio Remma
Hello! Are you using multiple domains? I just tested it in its simplest form (in 6.0.3) with one domain and it worked without virtuals. table userinfo { reio = 5000:5000:/home/vmail/turin.mrstuudio.ee/reio } accept tagged Filtered for domain userbase deliver to lmtp

Re: very confused on userbase parameter

2018-09-01 Thread Gilles Chehade
On Sat, Sep 01, 2018 at 11:59:20AM -0400, Matt Schwartz wrote: > I am afraid that I am hopelessly confused on the userbase parameter. > If I were to have the following: > > # credentials > user1 > > # userinfo > # vmail user is 2000 > user1 2000:2000:/var/vmail/user1 > > # virtuals >