<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div><div><div>Dear members,<br><br></div>I have fully working setup Sendmail 8.14.5 + Cyrus-SASL 2.1.25 (the server delivers mail, accept mail and working as ordinary mail server with LDAP functionality by getting users' passwords from LDAP database). For now I'm trying to add majordomo mail lists to the server, but unsuccessful.<br>
<br></div><div>In /var/log/maillog I have:<br><br>mail sendmail[6399]: rA1CVlYN006399: to=<a href="mailto:majordomo@mydomain.org">majordomo@mydomain.org</a>, ctladdr=root (0/0), delay=00:00:00,<br> xdelay=00:00:00, mailer=relay, pri=30032, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (rA1CVlUc015733 Message accepted for delivery)<br>
mail sm-mta[2942]: rA1CVlUc015733: to=<<a href="mailto:majordomo@mydomain.org">majordomo@mydomain.org</a>>, delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=30332, relay=localhost, dsn=5.1.1, stat=User unknown<br>
<br></div><div></div><div>I beat with it for some days with no result, unfortunately. Please give some advice where is an error could be? Highly appreciate your help.<br></div><div><br></div><div>More detailed description is below:<br>
</div><div>
<br></div>I've installed majordomo and groff from openbsd5.1/ports and make all the configuration changes which were need to do by hand (as described in /usr/local/doc/majordomo/post-install-notes):<br> <br>1. Added user '_majordomo' to group '_majordomo' by editing '/etc/group' file<br>
</div><div>#cat /etc/group | grep majordomo<br>_majordomo:*:520:_majordomo<br><br></div><div>2. Reviewed '/etc/majordomo/<a href="http://majordomo.cf" target="_blank">majordomo.cf</a>' by adding my "<a href="http://domain.org" target="_blank">domain.org</a>"<br>
</div><div>#cat /etc/majordomo/<a href="http://majordomo.cf" target="_blank">majordomo.cf</a> | grep <a href="http://mydomain.org" target="_blank">mydomain.org</a><br>$whereami = "<a href="http://mydomain.org" target="_blank">mydomain.org</a>";<br>
<br></div><div>
3. Added '_majordomo' user to a trusted sendmail users in '/etc/mail/trusted-users' file. Rebuilt and installed '/usr/share/sendmail/cf/<a href="http://openbsd-proto.mc" target="_blank">openbsd-proto.mc</a>' with 'use_ct_file' option enabled.<br>
</div><div>#cat /etc/mail/trusted-users | grep majordom<br></div><div>_majordomo<br></div><div><br></div><div>all the parameters below are present in /etc/mail/<a href="http://sendmail.cf" target="_blank">sendmail.cf</a> after build<br>
</div>
<div>#cat /usr/share/sendmail/cf/<a href="http://openbsd-proto.mc" target="_blank">openbsd-proto.mc</a> <br>...<br>dnl<br>FEATURE(`use_ct_file')dnl<br>dnl<br>...<br>dnl<br>MAILER(`local')dnl<br>MAILER(`smtp')dnl<br>
dnl<br>define(`confLOCAL_MAILER', `cyrusv2')dnl<br>
MAILER(`cyrusv2')dnl<br>....<br></div><div><br></div><div>4. Created majordomo aliases file in '/etc/mail/<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a>'. Rebuilt '<a href="http://openbsd-proto.mc" target="_blank">openbsd-proto.mc</a>' with feature `ALIAS_FILE' which points to 'aliases' and '<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a>' file. Hash has been generated from these files successfully. '/var/log/maillog' shows that 'aliases' and 'mj-alias-mydomain.org.db' are correctly built and used by sendmail.<br>
</div><div>#cat /var/log/maillog<br>...<br>Nov 1 15:55:01 mail sendmail[10826]: alias database /etc/mail/aliases rebuilt by root<br>Nov 1 15:55:01 mail sendmail[10826]: /etc/mail/aliases: 58 aliases, longest 16 bytes, 1768 bytes total<br>
Nov 1 15:55:01 mail sendmail[10826]: alias database /etc/mail/<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a> rebuilt by root<br>Nov 1 15:55:01 mail sendmail[10826]: /etc/mail/<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a>: 6 aliases, longest 79 bytes, 414 bytes total<br>
...<br></div><div><br></div><div>I have symbolic link between original 'majordomo's' file and '/etc/mail/mj-alias <a href="http://mydomain.org" target="_blank">mydomain.org</a>' file<br>#ln -s /var/spool/majordomo/lists/<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a> /etc/mail/<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a> <br>
</div><div><br></div>5. The file '<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a>' contains required listnames:<br><div>#cat /etc/mail/<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a><br>
</div><div>majordomo: "|/usr/local/lib/majordomo/wrapper resend -l <a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a> majordomo-list"<br>majordomo-list :include:/etc/mail/<a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a><br>
majordomo-request: "|/usr/local/lib/majordomo/wrapper request-answer <a href="http://mj-alias-mydomain.org" target="_blank">mj-alias-mydomain.org</a>"<br>majordomo-approval: admin<br>majordomo-owner: admin<br>
owner-majordomo: majordomo-owner<br>
<br></div><div>6. The output of 'config-test' give me no errors at all, but majordomo not working <span lang="en"><span>though.</span></span><br>#/var/local/lib/majordomo/wrapper config-test<br>
<br>------------------------------------------------------------<br>---------------- Config-test for Majordomo ----------------<br>------------------------------------------------------------<br><br><br>--------------------- Obvious things: ---------------------<br>
------------------ environment variables ------------------<br> HOME=/usr/local/lib/majordomo<br> LOGNAME=root<br> MAJORDOMO_CF=/etc/majordomo/<a href="http://majordomo.cf" target="_blank">majordomo.cf</a><br> MAJORDOMO_CFDIR=/etc/majordomo<br>
PATH=/bin:/usr/bin<br> SHELL=/bin/sh<br> USER=root<br>--------------------- euid/egid checks ---------------------<br> effective user = _majordomo (uid 520)<br> effective group = _majordomo wheel kmem sys tty operator staff guest (gid 520 0 2 3 4 5 20 31 )<br>
---------------------- uid/gid checks ----------------------<br> real user = _majordomo (uid 520)<br> real group = _majordomo wheel kmem sys tty operator staff guest (gid 520 0 2 3 4 5 20 31 )<br>------------------------------------------------------------<br>
<br> Non obvious things that cause headaches:<br><br>------------------------------------------------------------<br>Good: 'require'd /etc/majordomo/<a href="http://majordomo.cf" target="_blank">majordomo.cf</a> okay.<br>
Good: found <a href="http://ctime.pl" target="_blank">ctime.pl</a> okay.<br>
Good: found <a href="http://majordomo_version.pl" target="_blank">majordomo_version.pl</a> okay.<br>$* is no longer supported at /usr/local/lib/majordomo/<a href="http://majordomo.pl" target="_blank">majordomo.pl</a> line 47.<br>
Good: found <a href="http://majordomo.pl" target="_blank">majordomo.pl</a> okay.<br>
Good: found <a href="http://shlock.pl" target="_blank">shlock.pl</a> okay.<br>Good: found <a href="http://config_parse.pl" target="_blank">config_parse.pl</a> okay.<br><br>You're running Majordomo Version 1.94.5.<br>
<br>--==> Majordomo home directory is /usr/local/lib/majordomo.<br>
------------------- Include directories -------------------<br> /usr/local/lib/majordomo<br> /usr/local/lib/majordomo<br> /usr/local/libdata/perl5/site_perl/amd64-openbsd<br> /usr/libdata/perl5/site_perl/amd64-openbsd<br>
/usr/local/libdata/perl5/site_perl<br> /usr/libdata/perl5/site_perl<br> /usr/libdata/perl5/amd64-openbsd/5.12.2<br> /usr/local/libdata/perl5/amd64-openbsd/5.12.2<br> /usr/libdata/perl5<br>
/usr/local/libdata/perl5<br> .<br>--------------------------- Home ---------------------------<br>Good: changedir to /usr/local/lib/majordomo succeeded.<br>Good: Created a mock lock file.<br>---------------------- temp directory ----------------------<br>
Good: Created a temp file in $TMPDIR (/var/spool/majordomo/tmp).<br>---------------------- list directory ----------------------<br>Good: list directory /var/spool/majordomo/lists has good permissions.<br>--------------------------- log ---------------------------<br>
Good: logfile /var/log/majordomo.log exists and is writeable.<br>------------------------- Mailers -------------------------<br>You have defined a mailer for delivery.<br>Attempting to verify that this is a valid mailer...looks okay.<br>
You have defined a mailer for delivering administrative messages.<br>Attempting to verify that this is a valid mailer...looks okay.<br>------------------ Checking <a href="http://majordomo.cf" target="_blank">majordomo.cf</a> ------------------<br>
Checking to see if there are new variables that should be in<br>your <a href="http://majordomo.cf" target="_blank">majordomo.cf</a> file...Nope, none that I see.<br><br>Have you configured where Majordomo is?<br> $whereami is <a href="http://mydomain.org" target="_blank">mydomain.org</a><br>
Good: yup!<br>----------------------- end of tests -----------------------<br><br><br>Nothing bad found! Majordomo _should_ work correctly.<br><br>If it doesn't, check your configuration file<br> (/etc/majordomo/<a href="http://majordomo.cf" target="_blank">majordomo.cf</a>)<br>
closely, and if it still looks okay, consider asking the majordomo-users<br>mailing list at "<a href="mailto:majordomo-users@greatcircle.com" target="_blank">majordomo-users@greatcircle.com</a>" for assistance. Be sure<br>
and fully specify what your problems are, and what type of machine (and<br>
operating system) you are using.<br><br>Enjoy!<br>-----------------------------------------------------------------------<br></div><div><br></div><div><div><div><div><div><div><div><div><div>7. All the installed packages on the OpenBSD 5.1 mail server:<br>
<br>cyrus-imapd-2.4.13p0 Cyrus IMAP server<br>cyrus-imapd-perl-2.4.13 perl utils for the Cyrus IMAP server<br>cyrus-sasl-2.1.25p2-ldap RFC 2222 SASL (Simple Authentication and Security Layer)<br>db-4.6.21v0 Berkeley DB package, revision 4<br>
groff-1.21p6 GNU troff typesetter<br>libltdl-2.4.2 GNU libtool system independent dlopen wrapper<br>majordomo-1.94.5p6 mailing list manager<br>openldap-client-2.4.26 Open source LDAP software (client)<br>pcre-8.21 perl-compatible regular expression library<br>
quirks-1.59 exceptions to pkg_add rules<span class=""><font color="#888888"><br><br clear="all"><br>-- <br>Best regards,<br><br>Denis<a href="mailto:deniza956@gmail.com" target="_blank"></a>
</font></span></div></div></div></div></div></div></div></div></div></div>
</div>
</div>