Re: table-passwd invialid without the shell

2014-04-17 Thread Gilles Chehade
On Thu, Apr 17, 2014 at 07:13:57AM +0200, Martin Braun wrote:
 In the documentation http://opensmtpd.org/table.5.html it doesn't use
 the shell in the passwd file.
 

table(5) describes the format of file, static and db tables which is
the internal format used by every table we support.

when you are using another table backend, you should read the
table_backend(5) man page, in this case, table_passwd(5)


 The documentation uses the following example:

 [...]

 But in my case, because I am using vmail and having dovecot using
 the same file, the file looks like this:
 
 user1:$2a$06$hIJ4QfMcp.90nJwKqGbKM.MybArjHOTpEtoTV.DgLYAiThuoYmTSe:
 5000:5000::/var/vmail:/bin/nologin
 
 I wanted to remove the :/bin/nologin part because Dovecot doesn't
 need that, but if I do that I get the following error from OpenSMTPD:
 

You can't, table_passwd(5) expect as Unix passwd(5) style format, and
the shell is part of it.

-- 
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



Re: Why use lda or lmtp at all?

2014-04-17 Thread Olivier Calzi
Hello Martin,

Could you share your configuration in OpenSMTPD and Dovecot in a pastbin?
Dovecot it's like a monster for me sometimes with all this files etc...

I have to build a new dovecot and your configuration could be useful for me.

Thanks

Cordialement
Olivier Calzi




2014-04-17 7:23 GMT+02:00 Martin Braun yellowgoldm...@gmail.com:

 Thank you very much for explaining this! :)

 2014-04-17 6:48 GMT+02:00 Bryan Vyhmeister br...@bsdjournal.net:
  The advantage in dovecot delivering the mail directly is that the
 indexes are updated at delivery rather than later scanned when the user
 checks their mail. Also, sieve scripts work great with dovecot-lda which is
 how I filter the many lists I am subscribed to.
 
  Another advantage, and one I use, is the ability to use other mailbox
 formats like sdbox or mdbox (what I'm using) which allows for more
 efficient folder structures and less moving around of messages. With mdbox
 the index indicates what is happening with the message and the on-disk
 message storage remains essentially unchanged. The doveadm command does
 allow you to convert between formats as well if need be. I use it to export
 an mbox of spam to use for training spam filters.
 
  In my case, I have a little over five million messages (and growing)
 stored in mdbox format and that seems to be the fastest format for my use
 case. The mbox format would be an absolute nightmare and Maildir isn't as
 good as mdbox. That's just for my mailboxes. My other users also have tens
 of thousands up to hundreds of thousands of messages and they also have no
 issues with that setup.
 
  Updating a mailbox with 200,000+ messages is very quick with dovecot
 indexes. If, each time I accessed the mailbox, the indexes were updated, I
 would have a major spike in CPU use every time I checked my mail where now,
 since the indexes are already up to date, there is no spike at all.
 
  Those are my reasons for using dovecot-lda rather than some other mail
 server to do the deliveries. The combination of OpenSMTPD and dovecot
 running on OpenBSD is superb. This all works perfectly on a simple server I
 built with a Pentium G640, 8GB of memory, and dual 2.5-inch WD Black drives
 in a softraid(4) mirror.
 
  Bryan

 --
 You received this mail because you are subscribed to misc@opensmtpd.org
 To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org




Re: Why use lda or lmtp at all?

2014-04-17 Thread Craig R. Skinner
On 2014-04-17 Thu 05:51 AM |, Martin Braun wrote:
 I have now (finally) a successful setup in which opensmtpd delivers
 mail to dovecot-lda and dovecot handles imap, but I tried to have
 opensmtpd deliver the mail directly into the maildir, and NOT to
 dovecot, and just have dovecot serve IMAP.
 
 
 Am I missing something?
 

http://wiki2.dovecot.org/Pigeonhole/Sieve

 which filters incoming messages  


-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: table-passwd invialid without the shell

2014-04-17 Thread Martin Braun
 In the documentation http://opensmtpd.org/table.5.html it doesn't use
 the shell in the passwd file.


table(5) describes the format of file, static and db tables which is
the internal format used by every table we support.

when you are using another table backend, you should read the
table_backend(5) man page, in this case, table_passwd(5)

I have been using the man pages on the website and not on the console,
ie. http://opensmtpd.org/table.5.html, in that regard I haven't seen a
table_passwd section on the website.

Thanks.

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org