Skip to contentSkip to conversation

Configuration problems using mlmmj+postfix

mlmmj Christian Gleerup 4 participants 8 messages Nov 23, 2015 – Nov 26, 2015

lore
Share & tools
lore
#0 lore raw

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][email protected]   mlmmj:nyhedsbrev

In /var/spool/mlmmj/virtual
nyhedsbrev@lists.[my.tld]    lists.[my.tld][email protected]

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

#1 lore raw

Hi Christian,

Quoted 7 lines · Christian Gleerup

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

#2 lore raw
In reply to Christian Gleerup
Quoted 2 lines · Christian Gleerup

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 :-)

Signature · 1 line
Piotr "Malgond" Auksztulewicz                     [email protected]
#3 lore raw
In reply to Christian Gleerup

Hi Christian,

Quoted 2 lines · Christian Gleerup

Good question,
there is 'something' at port 25, here is the output

...

Quoted 1 line

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

#4 lore raw
In reply to Christian Gleerup
Quoted 6 lines · Christian Gleerup

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.

Quoted 2 lines

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

#5 lore raw
In reply to Christian Gleerup

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

Quoted 55 lines · Christian Gleerup

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-----

Quoted 42 lines

From: "Christian Gleerup" <[email protected]>
To: [email protected], "Morten Shearman Kirkegaard" <[email protected]>
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-----

Quoted 26 lines

From: "Morten Shearman Kirkegaard" <[email protected]>
To: [email protected]
Date: 24/11/2015 13:48
Subject: Re: [mlmmj] Configuration problems using mlmmj+postfix

Quoted 6 lines · Christian Gleerup

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.

Quoted 2 lines

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

#6 lore raw
In reply to Christian Gleerup
Quoted 3 lines · Ben Schmidt

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.

...

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

#7 lore raw
In reply to Christian Gleerup

VGhhbmtzIGZvciB5b3VyIHN1Z2dlc3Rpb25zLiANCg0KVGhlIHNlcnZlciBzdWRkZW5seSBzdGFy dGVkIGRlbGl2ZXJpbmcgdGhlIG1haWxzIGFzIGl0IHdhcyBzdXBwb3NlZCB0by4gQW5kIG5vdGhp bmcgaXMgY2hhbmdlZC4NCg0KSSBzdXNwZWN0IHRoYXQgdGhlIHByb2JsZW0gbWlnaHQgaGF2ZSBi ZWVuIHNvbWUgc3BhbSBmaWx0ZXIgYXQgdGhlIHZtLWhvc3QuDQoNCkJ1dCBpIGFtIG5vdCBzdXJl DQoNCkRlbiB0b3IuIG5vdi4gMjYgMDk6NDk6MzkgMjAxNSBHTVQrMDEwMCBza3JldiBNb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