[BlueOnyx:27065] /etc/alternatives/mta -> (sendmail|postfix)

Tomohiro Hosaka bokutin at gmail.com
Mon Jun 17 05:14:09 -05 2024


Hello.

Even if you change the system MTA from sendmail to postfix,
"alternatives --display mta" seems to be sendmail.

Doesn't blueonyx "alternatives --set mta /usr/sbin/sendmail.postfix" ?

SMTP is now postfix, but sendmail called by PHP is sendmail.sendmail.
/var/log/maillog contains both sendmail and postfix logs.
mailq also has to be used for both /usr/bin/mailq.sendmail and
/usr/sbin/sendmail.postfix to keep track of the queue.

I felt weird so I tried "alternatives --set mta /usr/sbin/sendmail.postfix".
A few errors occurred.
When I create a new user, I get the error below.

Jun 18 18:20:44 host1 cced(smd)[452315]: client 6:[49:449084]: CREATE
User name = "user1_site1" sortName = "" fullName = "user1_site1"
password = xxx emailDisabled = "0" ftpDisabled = "1" localePreference
= "browser" stylePreference = "BlueOnyx" volume = "/home" description
= "PASS" site = "site1" enabled = "1" capLevels = ""
Jun 18 18:20:44 host1 cced(smd)[452315]: client
6:handlers/base/user/updateCapabilities.pl: SET  768 capabilities = ""
Jun 17 18:20:44 host1 cced(smd)[452315]: client
6:handlers/base/user/updateCapabilities.pl: SET succeeded
Jun 17 18:20:44 host1 cced(smd)[452337]: client [0:452324] has admin rights
Jun 17 18:20:44 host1 cced(smd)[452338]: client [0:452324] has admin rights
Jun 17 18:20:44 host1 cced(smd)[452315]: client
6:handlers/base/user/handle_user.pl: SET  768 md5_password =
"$6$aaaaaaaaaaaaaaaa$lM2x.woOmk3eJgHRDCbjy/0WvfX50RXeCsuUCVMM0HsHiugU6M4XVeMDsf/kDl9Zcl9MolH/ZP3P.TPtZlF5f1"
crypt_password = "aabFK/F/6XlbQ"
Jun 17 18:20:45 host1 cced(smd)[452315]: client
6:handlers/base/user/handle_user.pl: SET succeeded
Jun 17 18:20:45 host1 cced(smd)[452315]: client
6:handlers/base/ftp/user_ftp_access.pl: SET  768 ftpDisabled = 1
Jun 17 18:20:45 host1 cced(smd)[452315]: client
6:handlers/base/ftp/user_ftp_access.pl: SET succeeded
Jun 17 18:20:45 host1 cced(smd)[452315]: client
6:handlers/base/user/reserve_email.pl: CREATE  EmailAlias alias =
user1_site1 fqdn = "site1.domain.tld" action = user1_site1 site =
site1
Jun 17 18:20:45 host1 journal[452543]: pperld
/usr/sausalito/handlers/base/email/mapmaker.pl: : Running:
makemap:/etc/mail/access
Jun 17 18:20:45 host1 journal[452543]: pperld
/usr/sausalito/handlers/base/email/mapmaker.pl: : Running:
/usr/sbin/makemap hash /etc/mail/access < /etc/mail/access >>/dev/null
2>&1
Jun 17 18:20:45 host1 journal[452543]: pperld
/usr/sausalito/handlers/base/email/mapmaker.pl: : Result: 32512
Jun 17 18:20:45 host1 journal[452543]: pperld
/usr/sausalito/handlers/base/email/mapmaker.pl: : Error processing
/etc/mail/access file. Error code: 32512
Jun 17 18:20:45 host1 journal[452543]: pperld
/usr/sausalito/handlers/base/email/mapmaker.pl: : Error during
makemap:/etc/mail/access!
Jun 17 18:20:45 host1 cced(smd)[452315]: handler
handlers/base/email/mapmaker.pl failed
Jun 17 18:20:45 host1 cced(smd)[452315]: client
6:handlers/base/user/reserve_email.pl: CREATE failed
Jun 17 18:20:45 host1 cced(smd)[452315]: handler
handlers/base/user/reserve_email.pl failed
Jun 17 18:20:46 host1 cced(smd)[452315]: client 6:[49:449084]: CREATE failed
Jun 17 18:20:46 host1 cced(smd)[452648]: client [0:452647] has admin rights

It was resolved below.
ln -s /usr/sbin/makemap.sendmail /usr/sbin/makemap

Thanks.


More information about the Blueonyx mailing list