Hello,

Thanks, I'll provide detailed instructions so you can simply follow step by 
step:


1- fetch the archive and install in a temporary directory:

    $ sudo brew install libevent
    $ wget https://www.opensmtpd.org/archives/opensmtpd-7.5.0rc1.tar.gz 
    $ tar -zxvf opensmtpd-7.5.0rc1.tar.gz
    $ cd opensmtpd-7.5.0rc1
    $ ./configure --prefix=/tmp/opensmtpd-7.5.0rc1 --with-libevent=/opt/homebrew
    $ make && make install


2- in /tmp/opensmtpd-7.5.0rc1/etc edit smtpd.conf to comment the table aliases:

    #table aliases file:/etc/mail/aliases

and its reference in the "local" action:

    action "local" maildir #alias <aliases>


3- create the _smtpd and _smtpq users ... this is the trickiest part:

    a- find a gid and uid that are unused both for _smtpd and _smtpq:
    
        /usr/bin/dscl . -list /Groups PrimaryGroupID | sort -n -k2,2
        /usr/bin/dscl . -list /Users UniqueID | sort -n -k2,2


    b- add the groups assuming that gid for _smtpd is 444 and  for_smtpq is 445:

        /usr/bin/sudo /usr/bin/dscl . -create /Groups/_smtpd PrimaryGroupID 444
        /usr/bin/sudo /usr/bin/dscl . -create /Groups/_smtpq PrimaryGroupID 445


    c- add the users assuming that uid are also 444 and 445:

        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpd UniqueID 444
        /usr/bin/sudo /usr/bin/dscl . -delete /Users/_smtpd 
AuthenticationAuthority
        /usr/bin/sudo /usr/bin/dscl . -delete /Users/_smtpd 
PasswordPolicyOptions
        /usr/bin/sudo /usr/bin/dscl . -delete /Users/_smtpd 
dsAttrTypeNative:KerberosKeys
        /usr/bin/sudo /usr/bin/dscl . -delete /Users/_smtpd 
dsAttrTypeNative:ShadowHashData
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpd RealName "SMTP 
Daemon"
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpd Password "*"
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpd PrimaryGroupID 444
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpd NFSHomeDirectory 
/var/empty
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpd UserShell 
/usr/bin/false

      
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpq UniqueID 445
        /usr/bin/sudo /usr/bin/dscl . -delete /Users/_smtpq 
AuthenticationAuthority
        /usr/bin/sudo /usr/bin/dscl . -delete /Users/_smtpq 
PasswordPolicyOptions
        /usr/bin/sudo /usr/bin/dscl . -delete /Users/_smtpq 
dsAttrTypeNative:KerberosKeys
        /usr/bin/sudo /usr/bin/dscl . -delete /Users/_smtpq 
dsAttrTypeNative:ShadowHashData
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpq RealName "SMTP 
Queue Daemon"
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpq Password "*"
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpq PrimaryGroupID 445
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpq NFSHomeDirectory 
/var/empty
        /usr/bin/sudo /usr/bin/dscl . -create /Users/_smtpq UserShell 
/usr/bin/false 


4- When this is done, start the daemon in foreground:

    $ sudo /tmp/opensmtpd-7.5.0rc1/sbins/smtpd -d


And let me know how it goes, does it run ? does it abort ?


OpenSMTPD has worked on macOS in the past, I'm unable to get it started on 
Sonoma,
I pinpointed why and would like to know if it is a brand new thing in macOS.



March 10, 2024 4:19 AM, "ED Fochler" <soek...@liquidbinary.com> wrote:

> I can take that. Tell me what you need.
> 
> ED.
> 
>> On Mar 9, 2024, at 6:21 AM, gil...@poolp.org wrote:
>> 
>> Hello,
>> 
>> Anyone on the list has a MacOS that's not Sonoma and can help track a bug ?
>> 
>> Gilles

Reply via email to