From: "webmaster@vlsc.org" <webmaster@vlsc.org>
To: mlmmj@mlmmj.org
Subject: Re: [mlmmj] testing mlmmj using Sendmail on a CentOS server
Date: Fri, 17 Oct 2014 20:56:02 +0000 [thread overview]
Message-ID: <54418262.8090907@vlsc.org> (raw)
In-Reply-To: <54356DBC.9020609@vlsc.org>
[-- Attachment #1: Type: text/plain, Size: 3503 bytes --]
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@mydomain.com 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@mydomain.com listname-owner.mydomain.com
and an entry in the /etc/aliases file:
listname-owner.mydomain.com myownaddr@mydomain.com
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@vlsc.org 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
>
>
[-- Attachment #2: Type: text/html, Size: 6179 bytes --]
next prev parent reply other threads:[~2014-10-17 20:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-08 17:00 [mlmmj] testing mlmmj using Sendmail on a CentOS server webmaster
2014-10-14 12:26 ` G Stansfield
2014-10-14 18:16 ` webmaster
2014-10-15 6:02 ` Ben Schmidt
2014-10-15 20:04 ` webmaster
2014-10-15 21:53 ` Ben Schmidt
2014-10-16 10:13 ` Ben Schmidt
2014-10-16 19:02 ` webmaster
2014-10-17 4:39 ` Ben Schmidt
2014-10-17 20:41 ` Ben Schmidt
2014-10-17 20:56 ` webmaster [this message]
2014-10-17 21:30 ` webmaster
2014-10-19 20:33 ` Ben Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54418262.8090907@vlsc.org \
--to=webmaster@vlsc.org \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.