Re: Credentials Table

2018-08-28 Thread Craig Skinner
See these Dovecot documents Antonino:

http://wiki2.dovecot.org/
http://wiki2.dovecot.org/PasswordDatabase
http://wiki2.dovecot.org/UserDatabase
http://wiki2.dovecot.org/AuthDatabase/Passwd
http://wiki2.dovecot.org/AuthDatabase/PasswdFile
http://wiki2.dovecot.org/HowTo
http://wiki2.dovecot.org/HowTo/CRAM-MD5
http://wiki2.dovecot.org/Authentication
http://wiki2.dovecot.org/Authentication/Mechanisms
http://wiki2.dovecot.org/Authentication/Mechanisms/DigestMD5
http://wiki2.dovecot.org/Authentication/PasswordSchemes
http://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes

Cheers,
-- 
Craig Skinner | http://linkd.in/yGqkv7

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



Re: Credentials Table

2018-08-27 Thread Antonino Sidoti
Hi Matt,

Can you please describe your setup with regards to two seperate password files? 
I have had second thoughts and will be adding Dovecot into my setup. IMAP is 
very convenient and allows me some flexibility.

Thanks

On 28 Aug 2018, at 7:55 am, Matt Schwartz 
mailto:matt.schwart...@gmail.com>> wrote:

I feel more comfortable having two separate password files for Dovecot and 
OpenSMTPD. Yes, it's more administrative work but it works fine for my purposes.

On Mon, Aug 27, 2018, 2:40 PM Bruno Pagani wrote:
The passwd option exists actually, but is provided by opensmtpd-extras.

And that’s what I use since it allows keeping the same file for opensmtpd and 
dovecot.

Regards,
Bruno

Le 27 août 2018 09:31:54 GMT+02:00, Antonino Sidoti 
mailto:n...@sidoti.id.au>> a écrit :
HI,

Base on the feedback I am going to use the ‘file’ option for the credentials 
table in my smtpd.conf;

table passed file:/etc/mail/passwd

Thanks

On 27 Aug 2018, at 5:24 pm, Matt Schwartz 
mailto:matt.schwart...@gmail.com>> wrote:

I simply use the file type. For example:
table credentials file:/etc/mail/credentials.

I do it this way because it is the simplest form. All I have in the credentials 
file is username:password. Use smtpctl encrypt to generate the encrypted 
password for the user. Finally, use smtpctl update table credentials to tell 
smtpd about the changes.

On Sun, Aug 26, 2018, 11:35 PM Antonino Sidoti wrote:
Hi,

When using a credentials table (man table), what table type do I use with 
regards to using the table in a smtpd.conf configuration?

I have created this table in my smtpd.conf but I am not sure it is correct?

table passwd file:/etc/mail/passwd

Though I have seen a sample configuration from another site using a different 
table type;

table passwd passwd:/etc/mail/passwd

Reading the man page, it does not make any reference to the table type using 
‘passwd’. It only talks about ‘file’ and ‘db’.

Nino




Re: Credentials Table

2018-08-27 Thread Matt Schwartz
I feel more comfortable having two separate password files for Dovecot and
OpenSMTPD. Yes, it's more administrative work but it works fine for my
purposes.

On Mon, Aug 27, 2018, 2:40 PM Bruno Pagani wrote:

> The passwd option exists actually, but is provided by opensmtpd-extras.
>
> And that’s what I use since it allows keeping the same file for opensmtpd
> and dovecot.
>
> Regards,
> Bruno
>
> Le 27 août 2018 09:31:54 GMT+02:00, Antonino Sidoti  a
> écrit :
>>
>> HI,
>>
>> Base on the feedback I am going to use the ‘file’ option for the
>> credentials table in my smtpd.conf;
>>
>> table passed file:/etc/mail/passwd
>>
>> Thanks
>>
>> On 27 Aug 2018, at 5:24 pm, Matt Schwartz 
>> wrote:
>>
>> I simply use the file type. For example:
>> table credentials file:/etc/mail/credentials.
>>
>> I do it this way because it is the simplest form. All I have in the
>> credentials file is username:password. Use smtpctl encrypt to generate the
>> encrypted password for the user. Finally, use smtpctl update table
>> credentials to tell smtpd about the changes.
>>
>> On Sun, Aug 26, 2018, 11:35 PM Antonino Sidoti wrote:
>>
>>> Hi,
>>>
>>> When using a credentials table (man table), what table type do I use
>>> with regards to using the table in a smtpd.conf configuration?
>>>
>>> I have created this table in my smtpd.conf but I am not sure it is
>>> correct?
>>>
>>> table passwd file:/etc/mail/passwd
>>>
>>> Though I have seen a sample configuration from another site using a
>>> different table type;
>>>
>>> table passwd passwd:/etc/mail/passwd
>>>
>>> Reading the man page, it does not make any reference to the table type
>>> using ‘passwd’. It only talks about ‘file’ and ‘db’.
>>>
>>> Nino
>>
>>
>>


Re: Credentials Table

2018-08-27 Thread Bruno Pagani
The passwd option exists actually, but is provided by opensmtpd-extras.

And that’s what I use since it allows keeping the same file for opensmtpd and 
dovecot.

Regards,
Bruno

Le 27 août 2018 09:31:54 GMT+02:00, Antonino Sidoti  a écrit 
:
>HI,
>
>Base on the feedback I am going to use the ‘file’ option for the
>credentials table in my smtpd.conf;
>
>table passed file:/etc/mail/passwd
>
>Thanks
>
>On 27 Aug 2018, at 5:24 pm, Matt Schwartz
>mailto:matt.schwart...@gmail.com>> wrote:
>
>I simply use the file type. For example:
>table credentials file:/etc/mail/credentials.
>
>I do it this way because it is the simplest form. All I have in the
>credentials file is username:password. Use smtpctl encrypt to generate
>the encrypted password for the user. Finally, use smtpctl update table
>credentials to tell smtpd about the changes.
>
>On Sun, Aug 26, 2018, 11:35 PM Antonino Sidoti wrote:
>Hi,
>
>When using a credentials table (man table), what table type do I use
>with regards to using the table in a smtpd.conf configuration?
>
>I have created this table in my smtpd.conf but I am not sure it is
>correct?
>
>table passwd file:/etc/mail/passwd
>
>Though I have seen a sample configuration from another site using a
>different table type;
>
>table passwd passwd:/etc/mail/passwd
>
>Reading the man page, it does not make any reference to the table type
>using ‘passwd’. It only talks about ‘file’ and ‘db’.
>
>Nino


Re: Credentials Table

2018-08-27 Thread Antonino Sidoti
HI,

Base on the feedback I am going to use the ‘file’ option for the credentials 
table in my smtpd.conf;

table passed file:/etc/mail/passwd

Thanks

On 27 Aug 2018, at 5:24 pm, Matt Schwartz 
mailto:matt.schwart...@gmail.com>> wrote:

I simply use the file type. For example:
table credentials file:/etc/mail/credentials.

I do it this way because it is the simplest form. All I have in the credentials 
file is username:password. Use smtpctl encrypt to generate the encrypted 
password for the user. Finally, use smtpctl update table credentials to tell 
smtpd about the changes.

On Sun, Aug 26, 2018, 11:35 PM Antonino Sidoti wrote:
Hi,

When using a credentials table (man table), what table type do I use with 
regards to using the table in a smtpd.conf configuration?

I have created this table in my smtpd.conf but I am not sure it is correct?

table passwd file:/etc/mail/passwd

Though I have seen a sample configuration from another site using a different 
table type;

table passwd passwd:/etc/mail/passwd

Reading the man page, it does not make any reference to the table type using 
‘passwd’. It only talks about ‘file’ and ‘db’.

Nino



Re: Credentials Table

2018-08-27 Thread Matt Schwartz
I simply use the file type. For example:
table credentials file:/etc/mail/credentials.

I do it this way because it is the simplest form. All I have in the
credentials file is username:password. Use smtpctl encrypt to generate the
encrypted password for the user. Finally, use smtpctl update table
credentials to tell smtpd about the changes.

On Sun, Aug 26, 2018, 11:35 PM Antonino Sidoti wrote:

> Hi,
>
> When using a credentials table (man table), what table type do I use with
> regards to using the table in a smtpd.conf configuration?
>
> I have created this table in my smtpd.conf but I am not sure it is
> correct?
>
> table passwd file:/etc/mail/passwd
>
> Though I have seen a sample configuration from another site using a
> different table type;
>
> table passwd passwd:/etc/mail/passwd
>
> Reading the man page, it does not make any reference to the table type
> using ‘passwd’. It only talks about ‘file’ and ‘db’.
>
> Nino


Re: Credentials Table

2018-08-27 Thread Marcus MERIGHI
Good morning, 

n...@sidoti.id.au (Antonino Sidoti), 2018.08.27 (Mon) 05:35 (CEST):
> Hi,
> 
> When using a credentials table (man table), what table type do I use
> with regards to using the table in a smtpd.conf configuration?

Thats up to you: if you use "file" (recommended), then, upon table
changes, you have to restart smtpd(8) to read the new contents OR use
"smtpctl(8) update table ".

If you use "db", then you have to run makemap(8) on your file, which
produces a .db, which should be referenced in smtpd.conf.
In this case after running makemap smtpd has the new contents. 

> I have created this table in my smtpd.conf but I am not sure it is
> correct? 
> table passwd file:/etc/mail/passwd

"passwd" would be the NAME of your table which you should use in your 
smtpd.conf if you want to auth, untested example, taken right from
smtpd.conf(5):

listen on egress auth 

> Though I have seen a sample configuration from another site using a
> different table type;
> table passwd passwd:/etc/mail/passwd
> Reading the man page, it does not make any reference to the table type
> using ‘passwd’. It only talks about ‘file’ and ‘db’. 

Nope! 
With OpenBSD software it's more like: If not in manual, then not
in code. 
Neither table(5) nor smtpd.conf(5) contain the string "passwd". 
But you can use it as a name you want to use.

Marcus

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



Credentials Table

2018-08-26 Thread Antonino Sidoti
Hi,

When using a credentials table (man table), what table type do I use with 
regards to using the table in a smtpd.conf configuration?

I have created this table in my smtpd.conf but I am not sure it is correct? 

table passwd file:/etc/mail/passwd

Though I have seen a sample configuration from another site using a different 
table type;

table passwd passwd:/etc/mail/passwd

Reading the man page, it does not make any reference to the table type using 
‘passwd’. It only talks about ‘file’ and ‘db’. 

Ninob��yǢ��m�+)[yƮ�쨹�޲��r��y�h�+kiv��N�r��zǧu���[h�+��칻�&ޢ���kiv��