* [mlmmj] Configuration problems using mlmmj+postfix
@ 2015-11-23 18:20 Christian Gleerup
2015-11-23 19:12 ` Morten Shearman Kirkegaard
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Christian Gleerup @ 2015-11-23 18:20 UTC (permalink / raw)
To: mlmmj
Hi List,
I have migrated to a new server, and have done a reconfiguration of mlmmj, the old installation was kind of the same, but not following best practice.
I have configured following the documentation here: http://mlmmj.org/docs/readme-postfix/
But I have some problems getting mlmmj to send mails out, and I don't know where to look, so I hope you can help me.
I have the following clues
In /var/log/mail.err
Nov 23 16:00:01 Lists /usr/local/bin/mlmmj-send[21648]: init_sockfd.c:56: Could not connect to 127.0.0.1: Connection refused
I have set up the transport in postfix as recommended, and the transport files are owned by the root, with read access to multiple users
root@lists:/var/spool/mlmmj# ls -la
total 44
drwxr-xr-x 3 mlmmj mlmmj 4096 Nov 9 21:12 .
drwxr-xr-x 7 root root 4096 Nov 9 20:22 ..
drwxr-xr-x 13 mlmmj mlmmj 4096 Nov 23 16:00 nyhedsbrev
-rw-r--r-- 1 root root 90 Nov 9 21:11 transport
-rw-r--r-- 1 root root 12288 Nov 9 21:12 transport.db
-rw-r--r-- 1 root root 82 Nov 9 21:09 virtual
-rw-r--r-- 1 root root 12288 Nov 9 21:12 virtual.db
In /var/spool/mlmmj/transport
# for a flat structure
lists.[my-tld]--nyhedsbrev@localhost.mlmmj mlmmj:nyhedsbrev
In /var/spool/mlmmj/virtual
nyhedsbrev@lists.[my.tld] lists.[my.tld]--nyhedsbrev@localhost.mlmmj
I am able to subscribe, unsubscribe and wiev the subscribers from the web interface, I do this in the following way
sudo -u mlmmj /usr/local/bin/mlmmj-sub ...
sudo -u mlmmj /usr/local/bin/mlmmj-unsub ...
sudo -u mlmmj /usr/local/bin/mlmmj-list ...
this works fine, ofcourse the relavent stuff is configured for sudoers.
If needed I will post main.cf and master.cf from postfix.
Kind regards
Christian Gleerup
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mlmmj] Configuration problems using mlmmj+postfix
2015-11-23 18:20 [mlmmj] Configuration problems using mlmmj+postfix Christian Gleerup
@ 2015-11-23 19:12 ` Morten Shearman Kirkegaard
2015-11-24 2:45 ` Piotr Auksztulewicz
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Morten Shearman Kirkegaard @ 2015-11-23 19:12 UTC (permalink / raw)
To: mlmmj
Hi Christian,
On 2015-11-23 at 19:20:38 +0100, Christian Gleerup wrote:
> I have some problems getting mlmmj to send mails out, and I don't know
> where to look, so I hope you can help me.
>
> I have the following clues
> In /var/log/mail.err
> Nov 23 16:00:01 Lists /usr/local/bin/mlmmj-send[21648]:
> init_sockfd.c:56: Could not connect to 127.0.0.1: Connection refused
By default mlmmj uses 127.0.0.1 as relay host, when sending mails. It
appears that you don't have an SMTP server listening there.
Does the following command (assuming you're on Linux) show an SMTP
daemon?
$ netstat -nltp
Kind regards,
Morten
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mlmmj] Configuration problems using mlmmj+postfix
2015-11-23 18:20 [mlmmj] Configuration problems using mlmmj+postfix Christian Gleerup
2015-11-23 19:12 ` Morten Shearman Kirkegaard
@ 2015-11-24 2:45 ` Piotr Auksztulewicz
2015-11-24 7:40 ` Morten Shearman Kirkegaard
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Piotr Auksztulewicz @ 2015-11-24 2:45 UTC (permalink / raw)
To: mlmmj
On Mon, Nov 23, 2015 at 11:08:19PM +0100, Christian Gleerup wrote:
> Good question,
> there is 'something' at port 25, here is the output
I had a quick look at the code, are you sure you are not overriding the
port in the control/smtpport setting for your list? Also, there's
a "secret" MLMMJ_TESTING environment variable which overrrides the port
to 10025 :-)
--
Piotr "Malgond" Auksztulewicz firstname@lastname.net
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mlmmj] Configuration problems using mlmmj+postfix
2015-11-23 18:20 [mlmmj] Configuration problems using mlmmj+postfix Christian Gleerup
2015-11-23 19:12 ` Morten Shearman Kirkegaard
2015-11-24 2:45 ` Piotr Auksztulewicz
@ 2015-11-24 7:40 ` Morten Shearman Kirkegaard
2015-11-24 12:29 ` Morten Shearman Kirkegaard
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Morten Shearman Kirkegaard @ 2015-11-24 7:40 UTC (permalink / raw)
To: mlmmj
Hi Christian,
On 2015-11-23 at 23:08:19 +0100, Christian Gleerup wrote:
> Good question,
> there is 'something' at port 25, here is the output
...
> tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1135/master
So, Postfix *is* listening on TCP/25. Can you telnet to 127.0.0.1 25 ?
Kind regards,
Morten
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mlmmj] Configuration problems using mlmmj+postfix
2015-11-23 18:20 [mlmmj] Configuration problems using mlmmj+postfix Christian Gleerup
` (2 preceding siblings ...)
2015-11-24 7:40 ` Morten Shearman Kirkegaard
@ 2015-11-24 12:29 ` Morten Shearman Kirkegaard
2015-11-25 23:52 ` Ben Schmidt
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Morten Shearman Kirkegaard @ 2015-11-24 12:29 UTC (permalink / raw)
To: mlmmj
On 2015-11-24 at 08:45:07 +0100, Christian Gleerup wrote:
> you are right, the port is overridden in
>
> /etc/mlmmj/nyhedsbrev/control/smtpport
>
> the old server must have listened to port 10025.
> would you recomend me just changing it to 25?
Yes, and you can do that by just removing the "smtpport" file.
> should I just empty the /var/spool/mlmmj/nyhedsbrev/queue using the
> commandline or should i use some mlmmj command?
The command line is fine.
Kind regards,
Morten
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mlmmj] Configuration problems using mlmmj+postfix
2015-11-23 18:20 [mlmmj] Configuration problems using mlmmj+postfix Christian Gleerup
` (3 preceding siblings ...)
2015-11-24 12:29 ` Morten Shearman Kirkegaard
@ 2015-11-25 23:52 ` Ben Schmidt
2015-11-26 8:49 ` Morten Shearman Kirkegaard
2015-11-26 10:55 ` Christian Gleerup
6 siblings, 0 replies; 8+ messages in thread
From: Ben Schmidt @ 2015-11-25 23:52 UTC (permalink / raw)
To: mlmmj
Ideas:
See if you can submit a mail using /usr/sbin/sendmail which is delivered to Mlmmj
or not. If that doesn't work, something is wrong with the Postfix configuration.
Then check further outwards. Are you firewalled? Is Postfix listening on external
interfaces, or loopback only? Can you connect to port 25 of the server with telnet
externally?
Ben
On 25/11/2015 9:04 pm, Christian Gleerup wrote:
> Hi again list,
>
> There still seems to be a problem,
> Now I have a doubt if the server receives the mail at all and the errors was all from old mailqueue that I copied from the old server?
>
> any hint on what I should look at besided DNS/MX-records?
>
>
> -----Original Message-----
>> From: "Christian Gleerup" <cromozon@swn.nu>
>> To: mlmmj@mlmmj.org, "Morten Shearman Kirkegaard" <moki@fabletech.com>
>> Date: 24/11/2015 14:48
>> Subject: Re[2]: [mlmmj] Configuration problems using mlmmj+postfix
>>
>> Morten and Piotr
>>
>> I have updated and deleted the emails, now the 'editor' just need to write a new newsletter and see if it is send out.
>>
>> thank you both for you help.
>>
>> Kind Regards
>> Christian Gleerup
>>
>>
>> -----Original Message-----
>>> From: "Morten Shearman Kirkegaard" <moki@fabletech.com>
>>> To: mlmmj@mlmmj.org
>>> Date: 24/11/2015 13:48
>>> Subject: Re: [mlmmj] Configuration problems using mlmmj+postfix
>>>
>>> On 2015-11-24 at 08:45:07 +0100, Christian Gleerup wrote:
>>>> you are right, the port is overridden in
>>>>
>>>> /etc/mlmmj/nyhedsbrev/control/smtpport
>>>>
>>>> the old server must have listened to port 10025.
>>>> would you recomend me just changing it to 25?
>>>
>>> Yes, and you can do that by just removing the "smtpport" file.
>>>
>>>> should I just empty the /var/spool/mlmmj/nyhedsbrev/queue using the
>>>> commandline or should i use some mlmmj command?
>>>
>>> The command line is fine.
>>>
>>> Kind regards,
>>> Morten
>>>
>>>
>>>
>>>
>
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mlmmj] Configuration problems using mlmmj+postfix
2015-11-23 18:20 [mlmmj] Configuration problems using mlmmj+postfix Christian Gleerup
` (4 preceding siblings ...)
2015-11-25 23:52 ` Ben Schmidt
@ 2015-11-26 8:49 ` Morten Shearman Kirkegaard
2015-11-26 10:55 ` Christian Gleerup
6 siblings, 0 replies; 8+ messages in thread
From: Morten Shearman Kirkegaard @ 2015-11-26 8:49 UTC (permalink / raw)
To: mlmmj
On 2015-11-26 at 10:52:18 +1100, Ben Schmidt wrote:
> See if you can submit a mail using /usr/sbin/sendmail which is
> delivered to Mlmmj or not. If that doesn't work, something is wrong
> with the Postfix configuration.
...
> > > I have updated and deleted the emails, now the 'editor' just need
> > > to write a new newsletter and see if it is send out.
You could create a test mailing list, with the same configuration as
your newsletter list, but with only you as a subscriber. That would
allow you to test Ben's suggestions, without risk of delivering test
newsletters to your subscribers.
Kind regards,
Morten
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [mlmmj] Configuration problems using mlmmj+postfix
2015-11-23 18:20 [mlmmj] Configuration problems using mlmmj+postfix Christian Gleerup
` (5 preceding siblings ...)
2015-11-26 8:49 ` Morten Shearman Kirkegaard
@ 2015-11-26 10:55 ` Christian Gleerup
6 siblings, 0 replies; 8+ messages in thread
From: Christian Gleerup @ 2015-11-26 10:55 UTC (permalink / raw)
To: mlmmj
VGhhbmtzIGZvciB5b3VyIHN1Z2dlc3Rpb25zLiANCg0KVGhlIHNlcnZlciBzdWRkZW5seSBzdGFy
dGVkIGRlbGl2ZXJpbmcgdGhlIG1haWxzIGFzIGl0IHdhcyBzdXBwb3NlZCB0by4gQW5kIG5vdGhp
bmcgaXMgY2hhbmdlZC4NCg0KSSBzdXNwZWN0IHRoYXQgdGhlIHByb2JsZW0gbWlnaHQgaGF2ZSBi
ZWVuIHNvbWUgc3BhbSBmaWx0ZXIgYXQgdGhlIHZtLWhvc3QuDQoNCkJ1dCBpIGFtIG5vdCBzdXJl
DQoNCkRlbiB0b3IuIG5vdi4gMjYgMDk6NDk6MzkgMjAxNSBHTVQrMDEwMCBza3JldiBNb3J0ZW4g
U2hlYXJtYW4gS2lya2VnYWFyZDoNCj4gT24gMjAxNS0xMS0yNiBhdCAxMDo1MjoxOCArMTEwMCwg
QmVuIFNjaG1pZHQgd3JvdGU6DQo+ID4gU2VlIGlmIHlvdSBjYW4gc3VibWl0IGEgbWFpbCB1c2lu
ZyAvdXNyL3NiaW4vc2VuZG1haWwgd2hpY2ggaXMNCj4gPiBkZWxpdmVyZWQgdG8gTWxtbWogb3Ig
bm90LiBJZiB0aGF0IGRvZXNuJ3Qgd29yaywgc29tZXRoaW5nIGlzIHdyb25nDQo+ID4gd2l0aCB0
aGUgUG9zdGZpeCBjb25maWd1cmF0aW9uLg0KPiAuLi4NCj4gPiA+ID4gSSBoYXZlIHVwZGF0ZWQg
YW5kIGRlbGV0ZWQgdGhlIGVtYWlscywgbm93IHRoZSAnZWRpdG9yJyBqdXN0IG5lZWQNCj4gPiA+
ID4gdG8gd3JpdGUgYSBuZXcgbmV3c2xldHRlciBhbmQgc2VlIGlmIGl0IGlzIHNlbmQgb3V0Lg0K
PiANCj4gWW91IGNvdWxkIGNyZWF0ZSBhIHRlc3QgbWFpbGluZyBsaXN0LCB3aXRoIHRoZSBzYW1l
IGNvbmZpZ3VyYXRpb24gYXMNCj4geW91ciBuZXdzbGV0dGVyIGxpc3QsIGJ1dCB3aXRoIG9ubHkg
eW91IGFzIGEgc3Vic2NyaWJlci4gVGhhdCB3b3VsZA0KPiBhbGxvdyB5b3UgdG8gdGVzdCBCZW4n
cyBzdWdnZXN0aW9ucywgd2l0aG91dCByaXNrIG9mIGRlbGl2ZXJpbmcgdGVzdA0KPiBuZXdzbGV0
dGVycyB0byB5b3VyIHN1YnNjcmliZXJzLg0KPiANCj4gS2luZCByZWdhcmRzLA0KPiBNb3J0ZW4N
Cj4gDQo+
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-11-26 10:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-23 18:20 [mlmmj] Configuration problems using mlmmj+postfix Christian Gleerup
2015-11-23 19:12 ` Morten Shearman Kirkegaard
2015-11-24 2:45 ` Piotr Auksztulewicz
2015-11-24 7:40 ` Morten Shearman Kirkegaard
2015-11-24 12:29 ` Morten Shearman Kirkegaard
2015-11-25 23:52 ` Ben Schmidt
2015-11-26 8:49 ` Morten Shearman Kirkegaard
2015-11-26 10:55 ` Christian Gleerup
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.