Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Information is the inverse of entropy.


computers / comp.mail.sendmail / Re: sendmail authentication using dovecot or imap

SubjectAuthor
* sendmail authentication using dovecot or imapMichael Grant
`* Re: sendmail authentication using dovecot or imapMarco Moock
 `* Re: sendmail authentication using dovecot or imapMichael Grant
  `- Re: sendmail authentication using dovecot or imapJ.O. Aho

1
sendmail authentication using dovecot or imap

<9d674d4c-01d9-48e9-9286-d19a03d11191n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=850&group=comp.mail.sendmail#850

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:ac8:51d5:0:b0:419:55b6:7589 with SMTP id d21-20020ac851d5000000b0041955b67589mr94310qtn.7.1697925484842;
Sat, 21 Oct 2023 14:58:04 -0700 (PDT)
X-Received: by 2002:a4a:d2cd:0:b0:56c:86f2:ae14 with SMTP id
j13-20020a4ad2cd000000b0056c86f2ae14mr1711946oos.0.1697925484594; Sat, 21 Oct
2023 14:58:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Sat, 21 Oct 2023 14:58:04 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=217.35.29.56; posting-account=Px5Q5QoAAABUOSovaPyEmLcyKmmtjiOn
NNTP-Posting-Host: 217.35.29.56
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9d674d4c-01d9-48e9-9286-d19a03d11191n@googlegroups.com>
Subject: sendmail authentication using dovecot or imap
From: michael....@gmail.com (Michael Grant)
Injection-Date: Sat, 21 Oct 2023 21:58:04 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1408
 by: Michael Grant - Sat, 21 Oct 2023 21:58 UTC

Does anyone have a working example they could share with me of how to set up sendmail on debian to authenticate using dovecot imap? Or some example using pam with sendmail to use dovecot's user file?

I want to allow users to authenticate using usernames that are of the form user@domain and dovecot's virtual user database is set up to do that. Seems like either pam or imap auth.

Thanks

Michael Grant

Re: sendmail authentication using dovecot or imap

<uh4viv$2uo5f$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=851&group=comp.mail.sendmail#851

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail authentication using dovecot or imap
Date: Mon, 23 Oct 2023 07:16:13 +0200
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uh4viv$2uo5f$1@dont-email.me>
References: <9d674d4c-01d9-48e9-9286-d19a03d11191n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 23 Oct 2023 05:16:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="427e8a3952d373f4def4963aef7ff513";
logging-data="3104943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+GaWFloodulKCgYJHCi/n"
Cancel-Lock: sha1:xETtnGJj9ZOheXoDP7YFKaIVJxA=
 by: Marco Moock - Mon, 23 Oct 2023 05:16 UTC

Am 21.10.2023 14:58 schrieb Michael Grant:

> Does anyone have a working example they could share with me of how to
> set up sendmail on debian to authenticate using dovecot imap? Or
> some example using pam with sendmail to use dovecot's user file?

Configure Cyrus SASL to use PAM for sendmail (see file /etc/pam.d/smtp).
Then configure there to use a PAM IMAP module.
I found https://github.com/wdoekes/pam-imap.
I haven't tried that and I don't have much experience with PAM.

Re: sendmail authentication using dovecot or imap

<fe3f2aa5-9e23-4f6b-945c-cbd9c72a91d7n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=852&group=comp.mail.sendmail#852

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a05:620a:4612:b0:777:f69:557 with SMTP id br18-20020a05620a461200b007770f690557mr173712qkb.15.1698069923210;
Mon, 23 Oct 2023 07:05:23 -0700 (PDT)
X-Received: by 2002:a05:6808:198a:b0:3b2:ead3:a0ac with SMTP id
bj10-20020a056808198a00b003b2ead3a0acmr3433716oib.0.1698069922941; Mon, 23
Oct 2023 07:05:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Mon, 23 Oct 2023 07:05:22 -0700 (PDT)
In-Reply-To: <uh4viv$2uo5f$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=217.35.29.56; posting-account=Px5Q5QoAAABUOSovaPyEmLcyKmmtjiOn
NNTP-Posting-Host: 217.35.29.56
References: <9d674d4c-01d9-48e9-9286-d19a03d11191n@googlegroups.com> <uh4viv$2uo5f$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fe3f2aa5-9e23-4f6b-945c-cbd9c72a91d7n@googlegroups.com>
Subject: Re: sendmail authentication using dovecot or imap
From: michael....@gmail.com (Michael Grant)
Injection-Date: Mon, 23 Oct 2023 14:05:23 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Michael Grant - Mon, 23 Oct 2023 14:05 UTC

On Monday, 23 October 2023 at 07:16:22 UTC+2, Marco Moock wrote:
> Am 21.10.2023 14:58 schrieb Michael Grant:
>
> > Does anyone have a working example they could share with me of how to
> > set up sendmail on debian to authenticate using dovecot imap? Or
> > some example using pam with sendmail to use dovecot's user file?
> Configure Cyrus SASL to use PAM for sendmail (see file /etc/pam.d/smtp).
> Then configure there to use a PAM IMAP module.
> I found https://github.com/wdoekes/pam-imap.
> I haven't tried that and I don't have much experience with PAM.

I already have sendmail using sasl2 and pam, but against the passwd file.

It looks like imap is part of either sasl2 or pam, I see reference to /etc/sysconfig/saslauthd which I don't have on debian. There's something called 'rimap' as a mechanism. I've not found any working examples how to set this up on debian though.

Has anyone actually set this up with sendmai? I'd love to see a working example. Thanks.

Re: sendmail authentication using dovecot or imap

<kpnfrjFam3eU2@mid.individual.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=853&group=comp.mail.sendmail#853

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@example.net (J.O. Aho)
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail authentication using dovecot or imap
Date: Mon, 23 Oct 2023 16:55:47 +0200
Lines: 41
Message-ID: <kpnfrjFam3eU2@mid.individual.net>
References: <9d674d4c-01d9-48e9-9286-d19a03d11191n@googlegroups.com>
<uh4viv$2uo5f$1@dont-email.me>
<fe3f2aa5-9e23-4f6b-945c-cbd9c72a91d7n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net T1tmZO9jDhFzqsgHr3kgKwi0sT4h26Vreu6KhY48niokiN9vkD
Cancel-Lock: sha1:3Ja/oFr54uGZr+AK4wHuYCia5uI= sha256:g0YrVlflwpxYaWsz2cpu0rmUijytqhE3zWnxF47MXiA=
User-Agent: Mozilla Thunderbird
Content-Language: en-US-large
In-Reply-To: <fe3f2aa5-9e23-4f6b-945c-cbd9c72a91d7n@googlegroups.com>
 by: J.O. Aho - Mon, 23 Oct 2023 14:55 UTC

On 23/10/2023 16.05, Michael Grant wrote:
> On Monday, 23 October 2023 at 07:16:22 UTC+2, Marco Moock wrote:
>> Am 21.10.2023 14:58 schrieb Michael Grant:
>>
>>> Does anyone have a working example they could share with me of how to
>>> set up sendmail on debian to authenticate using dovecot imap? Or
>>> some example using pam with sendmail to use dovecot's user file?
>> Configure Cyrus SASL to use PAM for sendmail (see file /etc/pam.d/smtp).
>> Then configure there to use a PAM IMAP module.
>> I found https://github.com/wdoekes/pam-imap.
>> I haven't tried that and I don't have much experience with PAM.
>
> I already have sendmail using sasl2 and pam, but against the passwd file.
>
> It looks like imap is part of either sasl2 or pam, I see reference to /etc/sysconfig/saslauthd which I don't have on debian. There's something called 'rimap' as a mechanism. I've not found any working examples how to set this up on debian though.
>
> Has anyone actually set this up with sendmai? I'd love to see a working example. Thanks.

I used to have a setup with sendmail and dovecot, PAM set up to use
pam_mysql for authentication. The pam file looked something like:

auth sufficient pam_mysql.so verbose=0 crypt=4 user=admin passwd=pass
host=db.localnet db=mail table=users usercolumn=user passwdcolumn=password

account optional pam_mysql.so verbose=0 crypt=4 user=admin passwd=pass
host=db.localnet db=mail table=users usercolumn=user passwdcolumn=password

The imap4/imap4s/imaps/pop3/pop3s/pops/sendmail/sieve were symlinks of smtp

The pam will want to have username@realm while my dovecot was setup to
want to have them as separate, which lead to I made a view in the
database that I used for pam queries, where I merged the user column and
domain column to one column that held the whole email address. This no
issue when not having a lot of users.

--
//Aho

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor