Skip to contentSkip to conversation

mail accepted but not retransmitted?

DISCUSSION Andrew Kohlsmith 4 participants 12 messages Oct 15, 2004 – Oct 18, 2004

lore
Share & tools
lore
#0 lore raw

Pardon my ignorance, I am new to postfix and mlmmj, but I have been a diehard qmail + ezmlm user for damn near a decade now (well the qmail part anyway).

I am setting up an entirely-virutal mail domain just like I do with qmail+vpopmail and the virtual domain part is working great. I created a [email protected] mailing list and subscribed my email address (different domain, different server) to it.

I can send a message to [email protected] and I see it delivered via the mlmmj-receive program.

My /etc/aliases line:
mlmmj-test: "|/usr/local/bin/mlmmj-recieve -L /var/spool/mlmmj/mlmmj-test/"

Now I look in /var/spool/mlmmj/mlmmj-test/queue and I see the message there:

# cat /var/spool/mlmmj/mlmmj-test/queue/245a58f23ff51521
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from me.com (localhost [127.0.0.1])
        by gromit.mixdown.ca (Postfix) with SMTP id B7E93414E0B
        for <[email protected]>; Tue, 12 Oct 2004 10:25:04 -0400 (EDT)
From: [email protected]
To: [email protected]
Subject: test x
Message-Id: <[email protected]>
Date: Tue, 12 Oct 2004 10:25:04 -0400 (EDT)

test x
#

but mlmmj-deliver never seems to get called. Relevant bits from maillog:

Oct 12 10:25:23 gromit postfix/cleanup[30745]: B7E93414E0B: 
message-id=<[email protected]>
Oct 12 10:25:23 gromit postfix/qmgr[30715]: B7E93414E0B: 
from=<[email protected]>, size62, nrcpt=1 (queue active)
Oct 12 10:25:23 gromit postfix/local[30746]: B7E93414E0B: 
to=<[email protected]>, orig_to=<[email protected]>, 
relay=local, delay, status=sent (delivered to 
command: /usr/local/bin/mlmmj-recieve -L /var/spool/mlmmj/mlmmj-test/)
Oct 12 10:25:23 gromit postfix/qmgr[30715]: B7E93414E0B: removed

And that's it... I do have the maintenance cron task running but it doesn't seem to do much, as evidenced in the maintenance log...

I feel I'm missing something REALLY basic here but I can't figure it out.

-A.

#1 lore raw
Quoted 43 lines · Andrew Kohlsmith

Pardon my ignorance, I am new to postfix and mlmmj, but I have been a diehard qmail + ezmlm user for damn near a decade now (well the qmail part anyway).

I am setting up an entirely-virutal mail domain just like I do with qmail+vpopmail and the virtual domain part is working great. I created a [email protected] mailing list and subscribed my email address (different domain, different server) to it.

I can send a message to [email protected] and I see it delivered via the mlmmj-receive program.

My /etc/aliases line:
mlmmj-test: "|/usr/local/bin/mlmmj-recieve -L /var/spool/mlmmj/mlmmj-test/"

Now I look in /var/spool/mlmmj/mlmmj-test/queue and I see the message there:

# cat /var/spool/mlmmj/mlmmj-test/queue/245a58f23ff51521
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from me.com (localhost [127.0.0.1])
        by gromit.mixdown.ca (Postfix) with SMTP id B7E93414E0B
        for <[email protected]>; Tue, 12 Oct 2004 10:25:04 -0400 (EDT)
From: [email protected]
To: [email protected]
Subject: test x
Message-Id: <[email protected]>
Date: Tue, 12 Oct 2004 10:25:04 -0400 (EDT)

test x
#

but mlmmj-deliver never seems to get called. Relevant bits from maillog:

Oct 12 10:25:23 gromit postfix/cleanup[30745]: B7E93414E0B: 
message-id=<[email protected]>
Oct 12 10:25:23 gromit postfix/qmgr[30715]: B7E93414E0B: 
from=<[email protected]>, size62, nrcpt=1 (queue active)
Oct 12 10:25:23 gromit postfix/local[30746]: B7E93414E0B: 
to=<[email protected]>, orig_to=<[email protected]>, 
relay=local, delay, status=sent (delivered to 
command: /usr/local/bin/mlmmj-recieve -L /var/spool/mlmmj/mlmmj-test/)
Oct 12 10:25:23 gromit postfix/qmgr[30715]: B7E93414E0B: removed
Quoted 4 lines

And that's it... I do have the maintenance cron task running but it doesn't seem to do much, as evidenced in the maintenance log...

I feel I'm missing something REALLY basic here but I can't figure it out.

What's the To: header, Delivered-To: header and contents of listdir/control/listaddress?

Signature · 4 lines
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                -- A. P. J.
#3 lore raw
In reply to Andrew Kohlsmith
Quoted 2 lines · Mads Martin Joergensen

What's the To: header, Delivered-To: header and contents of listdir/control/listaddress?

The To: and Delivered-To: headers were in the original emal, but I think I see the problem now; To: is to mixdown.ca, Delivered-To: is to gromit.mixdown.ca and listaddress is mixdown.ca.

I'll play with this a little more. :-)

-A.

#4 lore raw
In reply to Andrew Kohlsmith
Quoted 8 lines · Andrew Kohlsmith
Quoted 2 lines

What's the To: header, Delivered-To: header and contents of listdir/control/listaddress?

The To: and Delivered-To: headers were in the original emal, but I think I see the problem now; To: is to mixdown.ca, Delivered-To: is to gromit.mixdown.ca and listaddress is mixdown.ca.

I'll play with this a little more. :-)

Does it work if you touch listdir/control/tocc ?

Signature · 4 lines
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                -- A. P. J.
#5 lore raw
In reply to Andrew Kohlsmith
Quoted 1 line · Mads Martin Joergensen

Does it work if you touch listdir/control/tocc ?

No. :-(

# ls -l control/tocc
-rw-r--r--  1 vmail vmail 0 2004-10-16 12:32 control/tocc

At what point is mlmmj supposed to take the messages in the queue and send them?

-A.

#6 lore raw
In reply to Andrew Kohlsmith
Quoted 2 lines · Mads Martin Joergensen

What's the To: header, Delivered-To: header and contents of listdir/control/listaddress?

Ok I corrected what I thought was the problem but the message still gets queued but never sent out.

# cat control/listaddress
[email protected]
# cat queue/70ad17649119f61
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from me.com (localhost [127.0.0.1])
        by gromit.mixdown.ca (Postfix) with SMTP id C0882400079
        for <[email protected]>; Sat, 16 Oct 2004 12:25:38 -0400 
(EDT)
From: [email protected]
To: [email protected]
Subject: Test 1
Message-Id: <[email protected]>
Date: Sat, 16 Oct 2004 12:25:38 -0400 (EDT)

test 1

I do have a subscriber, too... :-)

# cat subscribers.d/a
[email protected]

-A.

#7 lore raw
In reply to Andrew Kohlsmith
Quoted 9 lines · Andrew Kohlsmith
Quoted 1 line

Does it work if you touch listdir/control/tocc ?

No. :-(

# ls -l control/tocc
-rw-r--r--  1 vmail vmail 0 2004-10-16 12:32 control/tocc

At what point is mlmmj supposed to take the messages in the queue and send them?

What are the permissions on the listdirectory?

Signature · 4 lines
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                -- A. P. J.
#8 lore raw
In reply to Andrew Kohlsmith
Quoted 1 line · Mads Martin Joergensen

What are the permissions on the listdirectory?

# ls -ld /var/spool/mlmmj/mlmmj-test
drwxr-xr-x  13 vmail vmail 4096 2004-10-16 12:39 /var/spool/mlmmj/mlmmj-test/
# ls -l /var/spool/mlmmj/mlmmj-test
total 8
drwxr-xr-x  2 vmail vmail   6 2004-10-11 22:17 archive/
drwxr-xr-x  2 vmail vmail   6 2004-10-11 22:17 bounce/
drwxr-xr-x  2 vmail vmail  47 2004-10-16 12:32 control/
drwxr-xr-x  2 vmail vmail   6 2004-10-16 12:34 incoming/
-rw-r--r--  1 vmail vmail   1 2004-10-16 12:34 index
-rw-------  1 vmail root  525 2004-10-16 12:39 mlmmj-maintd.lastrun.log
drwxr-xr-x  2 vmail vmail   6 2004-10-11 22:17 moderation/
drwxr-xr-x  3 vmail vmail  67 2004-10-16 12:35 queue/
drwxr-xr-x  2 vmail vmail  28 2004-10-16 12:35 requeue/
drwxr-xr-x  2 vmail vmail   6 2004-10-11 22:17 subconf/
drwxr-xr-x  2 vmail vmail  14 2004-10-11 22:23 subscribers.d/
drwxr-xr-x  2 vmail vmail   6 2004-10-11 22:17 text/
drwxr-xr-x  2 vmail vmail   6 2004-10-11 22:17 unsubconf/

and to answer your earlier question about the binaries:

ls -l /usr/local/bin/mlmmj*

-rwxr-xr-x  1 root root 144171 2004-10-12 10:09 /usr/local/bin/mlmmj-bounce*
-rwxr-xr-x  1 root root 132250 2004-10-12 10:09 /usr/local/bin/mlmmj-maintd*
-rwxr-xr-x  1 root root   2939 2004-10-12 
10:09 /usr/local/bin/mlmmj-make-ml.sh*
-rwxr-xr-x  1 root root 277327 2004-10-12 10:09 /usr/local/bin/mlmmj-process*
-rwxr-xr-x  1 root root 100143 2004-10-12 10:09 /usr/local/bin/mlmmj-recieve*
-rwxr-xr-x  1 root root 217562 2004-10-12 10:09 /usr/local/bin/mlmmj-send*
-rwxr-xr-x  1 root root 164834 2004-10-12 10:09 /usr/local/bin/mlmmj-sub*
-rwxr-xr-x  1 root root 166315 2004-10-12 10:09 /usr/local/bin/mlmmj-unsub*

Everything seems to be as it should be as far as I can tell -- It was a standard install.

-A.

#9 lore raw
In reply to Andrew Kohlsmith
Quoted 2 lines · Andrew Kohlsmith

Everything seems to be as it should be as far as I can tell -- It was a standard install.

Could you try adding the -F option to mlmmj-recieve in your alias? That will force mlmmj-recieve to NOT fork into the background, thereby getting the output from it back to the mail server. That should give you (the sender) an error mail with the output from mlmmj-recieve.

Morten

Signature · 2 lines
Morten K. Poulsen <[email protected]>
http://www.afdelingp.dk/
#10 lore raw
In reply to Andrew Kohlsmith
Quoted 4 lines · Morten K. Poulsen

Could you try adding the -F option to mlmmj-recieve in your alias? That will force mlmmj-recieve to NOT fork into the background, thereby getting the output from it back to the mail server. That should give you (the sender) an error mail with the output from mlmmj-recieve.

Oct 18 09:27:34 gromit postfix/local[2267]: 1DEBB414CE0: 

to=<[email protected]>, relay=local, delay", status�ferred (Command died with signal 11: "/usr/local/bin/mlmmj-recieve -F -L /var/spool/mlmmj/mlmmj-test/")

Well there we go. Now to figure out why the damn thing is sig11'ing. I know the RAM's good, I just tested it.

-A.

#11 lore raw
In reply to Andrew Kohlsmith
Quoted 6 lines · Andrew Kohlsmith
Oct 18 09:27:34 gromit postfix/local[2267]: 1DEBB414CE0: 

to=<[email protected]>, relay=local, delay", statusÞferred (Command died with signal 11: "/usr/local/bin/mlmmj-recieve -F -L /var/spool/mlmmj/mlmmj-test/")

Well there we go. Now to figure out why the damn thing is sig11'ing.

Ouch! Not good.

Are you familiar with gdb?

Morten

Signature · 2 lines
Morten K. Poulsen <[email protected]>
http://www.afdelingp.dk/