testing mlmmj
Hi,
I just installed and played a bit with mlmmj and my exim. My first confusion was caused by 2 different ways to use it. One is by just adding the lists to /etc/aliases as a pipe to the mlmmj-receive. Second is by using router and transport for mlmmj_domains. The later only makes sense when using a dedicated domain for mlmmj as far as I can see. At least the difference is not clear and there is no distinction made in the README's.
But now to my problem: I created a list [email protected] and successfully subscribed to it. Only when sending a mail to this list I see the following in syslog and the message gets discarded:
---
Mar 19 01:32:41 waterworld /usr/bin/mlmmj-process[23489]:
mlmmj-process.c:612: Discarding /raid/var/spool/mlmmj/mlmmj-test//incoming/ca5b636770aae27 due to invalid envelope from email count (was 0, must be 1): No such file or directory
---
My exim uses the header_from as envelope_from due to a rewrite rule, so there should be an envelope from.
Can you suggest a fix for this behaviour?
Thx & Ciao
Andreas
PS: Sorry if this mail appeared twice, I already sent it once but it
did not appear in the archive.
Quoted 4 lines · Andreas V. Meier
Second is by using router and transport for
mlmmj_domains. The later only makes sense when using a dedicated domain for mlmmj as far as I can see. At least the difference is not clear and there is no distinction made in the README's.
Not necessarily. You'll not need a separate domainlist if you use local_domains.
Quoted 5 lines
Mar 19 01:32:41 waterworld /usr/bin/mlmmj-process[23489]:mlmmj-process.c:612: Discarding /raid/var/spool/mlmmj/mlmmj-test//incoming/ca5b636770aae27 due to invalid envelope from email count (was 0, must be 1): No such file or directory
headers_remove = Delivered-To
headers_add = Delivered-To: $local_part$local_part_suffix@$domain
in the router or transport.
Quoted 7 lines · Jakob Hirsch
Quoted 4 lines · Andreas V. Meier
Second is by using router and transport for
mlmmj_domains. The later only makes sense when using a dedicated domain for mlmmj as far as I can see. At least the difference is not clear and there is no distinction made in the README's.Not necessarily. You'll not need a separate domainlist if you use
local_domains.
Yes, I missed the require_file part.
Quoted 8 lines
Quoted 5 lines
Mar 19 01:32:41 waterworld /usr/bin/mlmmj-process[23489]:mlmmj-process.c:612: Discarding /raid/var/spool/mlmmj/mlmmj-test//incoming/ca5b636770aae27 due to invalid envelope from email count (was 0, must be 1): No such file or directory
headers_remove= Delivered-To
headers_add= Delivered-To: $local_part$local_part_suffix@$domain
in the router or transport.
This did not help, I tried to add the two lines to the system_aliases router and to the pipe transport, without effect related to my problem.
But I felt encouraged and tried the other way using dedicated router and transport for mlmmj again. I found out that there is an error in the README.exim4. After fixing it works now :)
The README.exim4 uses ${lc::$local_part} in the mlmmj_transport. At this point it seems not to be a list any more (it always got expanded to the lower case local_part with a preceeding colon).
So it should correctly read ${lc:$local_part}.
Ciao
Andreas
Quoted 5 lines · Andreas V. Meier
Quoted 5 lines
Quoted 5 lines
Mar 19 01:32:41 waterworld /usr/bin/mlmmj-process[23489]:mlmmj-process.c:612: Discarding /raid/var/spool/mlmmj/mlmmj-test//incoming/ca5b636770aae27 due to invalid envelope from email count (was 0, must be 1): No such file or directory
Hm, now that I look at it, the error message looks a little strange, esp. the "no such file..." part.
Quoted 1 line
The README.exim4 uses ${lc::$local_part} in the
mlmmj_transport. At
Funny enough, somebody else was hit by this a few hours ago.
The updated version (with some other things, too) is in
http://ymmv.de/sw/mlmmj/README.exim4
Mads, could you put that in the next version? Tnx.
Quoted 9 lines · On 20-Mar-2006 Jakob Hirsch wrote:
Quoted 5 lines · Andreas V. Meier
Quoted 5 lines
Quoted 5 lines
Mar 19 01:32:41 waterworld /usr/bin/mlmmj-process[23489]:mlmmj-process.c:612: Discarding /raid/var/spool/mlmmj/mlmmj-test//incoming/ca5b636770aae27 due to invalid envelope from email count (was 0, must be 1): No such file or directory
Hm, now that I look at it, the error message looks a little strange, esp. the "no such file..." part.
It is a debug message. Ignore the "No such file or directory" part.
If the mail has no envelope from address ("MAIL FROM:<>" in SMTP), it is a bounce mail. If such a mail is sent to the list, it must be from a broken mail server, and is therefore ignored.
*But* if your mail server is not configured to add the envelope from address as a Return-Path: header, mlmmj can not see it. Is your server configured to add Return-Path?
In the future mlmmj will also look at environment variables for envelope addresses (for qmail support) but it does not at the moment.
Morten
Signature · 1 line
Morten K. Poulsen <[email protected]>
Quoted 3 lines · Morten K. Poulsen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
invalid envelope from email count (was 0, must be 1): No such file or
*But* if your mail server is not configured to add the envelope from address as a Return-Path: header, mlmmj can not see it. Is your server configured to add
oops, you are right, envelope from is Return-Path, of course.
Exim does not add a Return-Path header by default, this is done by return_path_add in the transport.
Hi,
Quoted 9 lines · Jakob Hirsch
Quoted 3 lines · Morten K. Poulsen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
invalid envelope from email count (was 0, must be 1): No such file or
*But* if your mail server is not configured to add the envelope from address as a Return-Path: header, mlmmj can not see it. Is your server configured to add
oops, you are right, envelope from is Return-Path, of course.
Exim does not add a Return-Path header by default, this is done by
return_path_addin the transport.
Maybe this command should be stated explicitly in the README at the place where it says "Also make sure ...". I read that part, but due to lack of knowledge how to just discarded it :)
Anyway, I have it working now, thx!
Ciao
Andreas
Quoted 5 lines · Andreas V. Meier
Quoted 2 lines
Exim does not add a Return-Path header by default, this is done by
return_path_addin the transport.Maybe this command should be stated explicitly in the README at the place where it says "Also make sure ...". I read that part, but due to lack of knowledge how to just discarded it :)
README.exim4 lists it in its transport, but you'll probably not read it when using mlmmj's default way.
FWIW, the first thing I stumbled over when installing mlmmj was right that. Somehow this line in the readme must have some magic autohide feature. :)