All of lore.kernel.org
 help / color / mirror / Atom feed
* [mlmmj] Help setting up my first mailing list
@ 2014-11-21 17:42 Joe Eaves
  2014-11-21 21:26 ` Ben Schmidt
  2014-11-22 16:41 ` Joe Eaves
  0 siblings, 2 replies; 3+ messages in thread
From: Joe Eaves @ 2014-11-21 17:42 UTC (permalink / raw)
  To: mlmmj

[-- Attachment #1: Type: text/plain, Size: 2147 bytes --]

Hi guys,

I'm having some trouble setting up a mailing list with mlmmj, I'm running 1.2.18.1 from the EPEL repo on CentOS 7. I have set my smtp server to pipe emails destined for the mailing list as so:

|/bin/mlmmj-receive -L /opt/mlmmj/mylist/

Everything seems to be going well, the email is received, but then I get errors when it tries to send a reply. The log looks as follows:

/bin/mlmmj-process[6791]: mlmmj-process.c:828: Found To: right2-general@right2.org: Success
/bin/mlmmj-send[6791]: mlmmj-send.c:925: Could not prepare headers: No such file or directory

The only info I can find in the list directory is a file in the queue directory which seems to be the version of my email that the list is supposed to receive. It has the following headers:

Envelope-To: <right2-general@right2.org>
Authentication-Results: email.right2.org; ; ^M
Received: from email.right2.org (garum.right2.org [178.62.6.212])^M
        by email.right2.org (Haraka/2.5.0) with ESMTP id F4EF895C-E9E9-443D-8D34-81EB88DF501C.1^M
        envelope-from <joe@right2.org>;^M
        Fri, 21 Nov 2014 17:39:47 +0000^M
Received: (Haraka outbound); Fri, 21 Nov 2014 17:39:46 +0000^M
Received: from [192.168.33.137] (212.44.18.254.ip.redstone-isp.net [212.44.18.254])^M
        by email.right2.org (Haraka/2.5.0) with ESMTPSA id 770D3771-B9E8-48BA-B1EF-CD8161FC9183.1^M
        envelope-from <joe@right2.org> (authenticated bits=0)^M
        (version=TLSv1/SSLv3 cipher=AES128-SHA verify=FAIL);^M
        Fri, 21 Nov 2014 17:39:46 +0000^M
From: Joe Eaves <joe@right2.org>^M
Content-Type: text/plain; charset=us-ascii^M
Content-Transfer-Encoding: 7bit^M
Subject: [Right2] -general- Hi^M
Message-Id: <79939293-967A-4149-A48F-DAAF9FEA6D09@right2.org>^M
Date: Fri, 21 Nov 2014 17:39:45 +0000^M
To: "right2-general@right2.org" <right2-general@right2.org>^M
X-Mailinglist: right2-general
Reply-To: right2-general@right2.org
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))^M
X-Mailer: Apple Mail (2.1510)^M

Any ideas? The ^M worries me but I don't know if it's a major issue? Maybe I'm missing a header?

Cheers,

Joe

--
:wq!


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [mlmmj] Help setting up my first mailing list
  2014-11-21 17:42 [mlmmj] Help setting up my first mailing list Joe Eaves
@ 2014-11-21 21:26 ` Ben Schmidt
  2014-11-22 16:41 ` Joe Eaves
  1 sibling, 0 replies; 3+ messages in thread
From: Ben Schmidt @ 2014-11-21 21:26 UTC (permalink / raw)
  To: mlmmj

Hi!

The "No such file or directory" is a known red herring.

I do think it's the ^M.

Suspect Haraka doesn't convert the CRLF line endings in SMTP to unix LF-only line 
endings before piping to external programs as other MTAs do. Looks like some parts 
of Mlmmj cope with this and other parts don't.

Try piping the mail through tr(1) to filter out the CRs and see if it works:

|tr -d '\r' | /bin/mlmmj-receive -L /opt/mlmmj/mylist/

If it doesn't like the pipe in aliases, try making a script that does the piping 
and referring to that in aliases rather than mlmmj-receive directly.

Cheers,

Ben.



On 22/11/14 4:42 AM, Joe Eaves wrote:
> Hi guys,
>
> I'm having some trouble setting up a mailing list with mlmmj, I'm running 1.2.18.1 from the EPEL repo on CentOS 7. I have set my smtp server to pipe emails destined for the mailing list as so:
>
> |/bin/mlmmj-receive -L /opt/mlmmj/mylist/
>
> Everything seems to be going well, the email is received, but then I get errors when it tries to send a reply. The log looks as follows:
>
> /bin/mlmmj-process[6791]: mlmmj-process.c:828: Found To: right2-general@right2.org: Success
> /bin/mlmmj-send[6791]: mlmmj-send.c:925: Could not prepare headers: No such file or directory
>
> The only info I can find in the list directory is a file in the queue directory which seems to be the version of my email that the list is supposed to receive. It has the following headers:
>
> Envelope-To: <right2-general@right2.org>
> Authentication-Results: email.right2.org; ; ^M
> Received: from email.right2.org (garum.right2.org [178.62.6.212])^M
>          by email.right2.org (Haraka/2.5.0) with ESMTP id F4EF895C-E9E9-443D-8D34-81EB88DF501C.1^M
>          envelope-from <joe@right2.org>;^M
>          Fri, 21 Nov 2014 17:39:47 +0000^M
> Received: (Haraka outbound); Fri, 21 Nov 2014 17:39:46 +0000^M
> Received: from [192.168.33.137] (212.44.18.254.ip.redstone-isp.net [212.44.18.254])^M
>          by email.right2.org (Haraka/2.5.0) with ESMTPSA id 770D3771-B9E8-48BA-B1EF-CD8161FC9183.1^M
>          envelope-from <joe@right2.org> (authenticated bits=0)^M
>          (version=TLSv1/SSLv3 cipher®S128-SHA verifyúIL);^M
>          Fri, 21 Nov 2014 17:39:46 +0000^M
> From: Joe Eaves <joe@right2.org>^M
> Content-Type: text/plain; charset=us-ascii^M
> Content-Transfer-Encoding: 7bit^M
> Subject: [Right2] -general- Hi^M
> Message-Id: <79939293-967A-4149-A48F-DAAF9FEA6D09@right2.org>^M
> Date: Fri, 21 Nov 2014 17:39:45 +0000^M
> To: "right2-general@right2.org" <right2-general@right2.org>^M
> X-Mailinglist: right2-general
> Reply-To: right2-general@right2.org
> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))^M
> X-Mailer: Apple Mail (2.1510)^M
>
> Any ideas? The ^M worries me but I don't know if it's a major issue? Maybe I'm missing a header?
>
> Cheers,
>
> Joe
>
> --
> :wq!
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [mlmmj] Help setting up my first mailing list
  2014-11-21 17:42 [mlmmj] Help setting up my first mailing list Joe Eaves
  2014-11-21 21:26 ` Ben Schmidt
@ 2014-11-22 16:41 ` Joe Eaves
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Eaves @ 2014-11-22 16:41 UTC (permalink / raw)
  To: mlmmj

[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]

On 21 Nov 2014, at 21:26, Ben Schmidt <mail_ben_schmidt@yahoo.com.au> wrote:

> I do think it's the ^M.
> 
> Suspect Haraka doesn't convert the CRLF line endings in SMTP to unix LF-only line endings before piping to external programs as other MTAs do. Looks like some parts of Mlmmj cope with this and other parts don't.

Thanks for the swift reply Ben, you were right about the line endings I now having a working mailing list!

> Try piping the mail through tr(1) to filter out the CRs and see if it works:
> 
> |tr -d '\r' | /bin/mlmmj-receive -L /opt/mlmmj/mylist/
> 
> If it doesn't like the pipe in aliases, try making a script that does the piping and referring to that in aliases rather than mlmmj-receive directly.

Great suggestions, but Haraka had it all in hand.

The code that does the pipe to external commands is a plugin for Haraka that I wrote myself[1]. The interface for using the content of an email in Haraka is a stream and it takes the following option:

* line_endings (default: "\r\n")

All I had to do was pass "\n" as the value for that option and all was solved :)

Thanks again!

Joe

[1] https://github.com/Joeasaurus/nuxMail/blob/master/plugins/jme.queue.pipe_command.js

--
:wq!


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-22 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-21 17:42 [mlmmj] Help setting up my first mailing list Joe Eaves
2014-11-21 21:26 ` Ben Schmidt
2014-11-22 16:41 ` Joe Eaves

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.