[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [mlmmj] testing mlmmj using Sendmail on a CentOS server


Ben,

Success!!!

The LOCAL_SHELL_FLAGS entry for sendmail.cf worked, and I'm now able to send posts to my mlmmj email list.

To recap my steps to getting mlmmj working with Sendmail on a CentOS server:

- mlmmj installed into /usr/local/bin/ by default... but I had to create symlinks, one for each mlmmj script, in the /etc/smrsh/ directory before they would run when called from sendmail (which uses the smrsh shell).

- to get sendmail to include a Return Path, I added this line to /etc/mail/sendmail.mc:

    define(`LOCAL_SHELL_FLAGS', `eu9P')dnl

...then ran "m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf" ...to update the changes to the real sendmail.cf file, and restarted the sendmail service

- I ran mlmmj-make-ml to create a mailing list

- I created an entry in the /etc/mail/virtusertable file:

listname@xxxxxxxxxxxx    listname.mydomain.com


- I had to update/change the /etc/aliases entry that was auto-created by mlmmj-make-ml, from:

   listname: "|/usr/local/bin/mlmmj-receive -L /var/spool/mlmmj/listname"

to:

   listname.mydomain.com : "|mlmmj-receive -L /var/spool/mlmmj/listname"

to correctly match the list alias in the virtusertable file, and because the symlinks were now directly in the /etc/mail/smrsh directory

- I ran the following chown command, to set the owner of the list dir and files to the "mail" user:

chown -R mail /var/spool/mlmmj/[listdir]

- I'm not sure I needed to, but I also created a list-owner entry in the virtusertable file:

listname-owner@xxxxxxxxxxxx    listname-owner.mydomain.com

and an entry in the /etc/aliases file:

listname-owner.mydomain.com   myownaddr@xxxxxxxxxxxx
I think this covers all the steps I took to successfully configure mlmmj for the Sendmail MTA on my CentOS server. It looks complicated, but it's actually not that much work to get it running. (it was a long slog to figure out, though!)

I've already created a couple of our small working lists already, and have several more to build - which leads me to a couple follow-on questions, but I'll send them to the support list under a new thread heading.

Thanks again to Ben and Geof for helping me get from zero to 100% up and running!

Philip


On 10/16/2014 9:39 PM, Ben Schmidt wrote:
On 17/10/14 6:02 AM, webmaster@xxxxxxxx wrote:
Oct 16 18:30:00 cloud /etc/smrsh/mlmmj-process[5506]: mlmmj-process.c:811: Discarding /var/spool/mlmmj/listname/incoming/6386743745f1a098 due to missing envelope from address: Success

I understand the "due to missing envelope from address" error is a reference to an (empty) envelope from address, but I'm not sure why this is being triggered.

The envelope from isn't empty, it's just not passing from Sendmail to
Mlmmj properly.

Strangely, Mlmmj doesn't look for a Unix/mbox "From " line to extract an
envelope from address. I actually think this is an Mlmmj shortcoming,
and I will attempt to address it in a future release.

However, Mlmmj does look for a Return-Path header, and that is
conspicuously missing from the headers you posted. Did you include

define(`LOCAL_SHELL_FLAGS', `eu9P')dnl

in your Sendmail config as per <http://mlmmj.org/docs/readme-sendmail/>?

It's the capital P that is necessary to include the Return-Path header.

Best regards,

Ben.







-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4765 / Virus Database: 4040/8403 - Release Date: 10/16/14




Follow-Ups:
Re: [mlmmj] testing mlmmj using Sendmail on a CentOS serverBen Schmidt <mail_ben_schmidt@xxxxxxxxxxxx>
References:
[mlmmj] testing mlmmj using Sendmail on a CentOS server"webmaster@xxxxxxxx" <webmaster@xxxxxxxx>
Re: [mlmmj] testing mlmmj using Sendmail on a CentOS serverG Stansfield <gstansfield@xxxxxxxxxx>
Re: [mlmmj] testing mlmmj using Sendmail on a CentOS server"webmaster@xxxxxxxx" <webmaster@xxxxxxxx>
Re: [mlmmj] testing mlmmj using Sendmail on a CentOS serverBen Schmidt <mail_ben_schmidt@xxxxxxxxxxxx>
Re: [mlmmj] testing mlmmj using Sendmail on a CentOS server"webmaster@xxxxxxxx" <webmaster@xxxxxxxx>
Re: [mlmmj] testing mlmmj using Sendmail on a CentOS serverBen Schmidt <mail_ben_schmidt@xxxxxxxxxxxx>
Re: [mlmmj] testing mlmmj using Sendmail on a CentOS server"webmaster@xxxxxxxx" <webmaster@xxxxxxxx>
Re: [mlmmj] testing mlmmj using Sendmail on a CentOS serverBen Schmidt <mail_ben_schmidt@xxxxxxxxxxxx>