Koozali.org: home of the SME Server

qpsmtp config to allow mailman list address

Offline timlitw

  • **
  • 35
  • +0/-0
qpsmtp config to allow mailman list address
« on: March 29, 2006, 06:21:38 AM »
After investigating why mail to a mailman list is getting blocked, I found that we are now using qpsmtpd - So I went and found thier site but I still didnt find a way so that I can allow the email addresses I need for a mailman list on my server to work.

I need to be able to allow  listname@domain.com, listname-owner@domain.com etc.

Any suggestion are welcomed.

Thanks

Offline JonB

  • *
  • 351
  • +0/-0
qpsmtp config to allow mailman list address
« Reply #1 on: March 29, 2006, 08:15:17 AM »
Tim, the qpsmtpd plugin that is blocking your mailman list addresses is the goodrcptto plugin. /var/service/qpsmtpd/config/goodrcptto

You need to add your list addresses to the goodrcptto list.

The easiest way of doing this is to create a custom template fragment

/etc/e-smith/templates-custom/var/service/qpsmtpd/config/goodrcptto/50mailman

and add your list email addresses to the template fragment 50mailman
and when finished and saved.

signal-event email-update

Check that the email addresses are added to  /var/service/qpsmtpd/config/goodrcptto

I said that is the easiest way. The harder way would be to automate it by  creating a script that would populate a database called mailman with the list names every time you create a new list.
The custom goodrcptto template fragment could then be scripted to access's the mailman database and use the listnames to update goodrcptto with listname@, list-admin@, list-owner@, list-bounces@ etc.
You would then be halfway to creating a good mailman contrib for SME7.

Jon
...

Offline timlitw

  • **
  • 35
  • +0/-0
qpsmtp config to allow mailman list address
« Reply #2 on: March 29, 2006, 04:27:23 PM »
Thanks - that will take the pressure off and if there are any other show stoppers.

Offline timlitw

  • **
  • 35
  • +0/-0
qpsmtp config to allow mailman list address
« Reply #3 on: March 29, 2006, 05:46:21 PM »
these are in goodrcptto
listname@lists.domain.com
listname@domain.com
listname@mail.domain.com

but I still get this

@40000000442aa0c22061ecb4 15056 dispatching MAIL FROM:<tim@#######.net>
@40000000442aa0c220670564 15056 full from_parameter: FROM:<tim@#######.net>
@40000000442aa0c220696aac 15056 from email address : [<tim@#######.net>]
@40000000442aa0c22074e044 15056 running plugin (mail): require_resolvable_fromhost
@40000000442aa0c220883964 15056 running plugin (mail): check_badmailfrom
@40000000442aa0c22093513c 15056 getting mail from <tim@######.net>
@40000000442aa0c22095e564 15056 250 <tim@#######.net>, sender OK - how exciting to get mail from you!
@40000000442aa0c22466ac14 15056 dispatching RCPT TO:<#######@mail.######.com>
@40000000442aa0c2246ce9bc 15056 to email address : [<#######@mail.######.com>]
@40000000442aa0c22473043c 15056 running plugin (rcpt): check_badmailfrom
@40000000442aa0c2247adc0c 15056 running plugin (rcpt): check_badrcptto_patterns
@40000000442aa0c2248c8394 15056 running plugin (rcpt): check_badrcptto
@40000000442aa0c224a3e3f4 15056 running plugin (rcpt): check_goodrcptto
@40000000442aa0c224a7a4e4 15056 check_goodrcptto plugin: stripping '-' extensions
@40000000442aa0c2260a654c 15056 check_goodrcptto plugin: recipient #######@mail.######.com denied
@40000000442aa0c226143cd4 15056 550 invalid recipient #######@mail.######.com
@40000000442aa0c22a844124 15056 dispatching QUIT
@40000000442aa0c22a8ad4bc 15056 221 ######.com closing connection. Have a wonderful day.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
qpsmtp config to allow mailman list address
« Reply #4 on: March 29, 2006, 08:54:02 PM »
Quote from: "JonB"

The easiest way of doing this is to create a custom template fragment


An easier way might be to use an smeserver-mailman contrib. I think that Gordon put/was putting one of those together.

Tim, if you want people to help, it'd be better if you posted uncensored logs. You've probably hidden the problem.

Offline JonB

  • *
  • 351
  • +0/-0
qpsmtp config to allow mailman list address
« Reply #5 on: March 30, 2006, 12:04:03 AM »
Tim,

You did add the additional addresses via a custom template, not just by editing goodrctto and did a signal-event email-update.

Jon
...

Offline timlitw

  • **
  • 35
  • +0/-0
qpsmtp config to allow mailman list address
« Reply #6 on: March 30, 2006, 01:03:49 AM »
Yes, I made 50Mailman and put the addresses that I wanted in there.

I found later that it isn't expanding templates-custom
so I moved that file into templates - then the names moved into the file
and now they get thru qpsmtpd but still bounce as qmail doesn't know where to deliver them.

So I'll have to figure that out.  Charlie mentioned that Gordon has a smeserver-mailman. But all I'm finding is ezmlm and my client doesn't like the way that one works. I think for now I'll forward this address to the 6.0.1 server that mailman works very well on and let it run the mailing list till we figure it out.

daemonix

qpsmtp config to allow mailman list address
« Reply #7 on: April 17, 2006, 06:24:15 PM »
Did you ever get this worked out? I am experiencing this same issue.

Offline timlitw

  • **
  • 35
  • +0/-0
qpsmtp config to allow mailman list address
« Reply #8 on: April 17, 2006, 06:58:42 PM »
No, I didn't have time to mess with it anymore - I installed the ezmlm contrib - it isn't nearly as nice and I haven't been able to make it moderated - but at least the list is up and if/when all my other projects slow down I can get back to it and figure it out.

I really liked that contrib on 6.* as it made a web archive of the list etc.

daemonix

qpsmtp config to allow mailman list address
« Reply #9 on: April 17, 2006, 08:04:06 PM »
So you have it working on SME7 ?

I have posted a bug
http://bugs.contribs.org/show_bug.cgi?id=1268

I can't get it to allow outside email addresses to subscribe. If I try to subscribe to the list from user@<mydomain> it works. user@<ouside_domain> does not. See the bug for more info.

If you have any ideas they would be greatly appreciated.

Offline timlitw

  • **
  • 35
  • +0/-0
qpsmtp config to allow mailman list address
« Reply #10 on: April 17, 2006, 09:56:35 PM »
the ezmlm contrib is working in SME 7 - but I don't know if an outside user can subscribe - this is a school and the subsribers leave their email address at the office if they want to get emails from the school.  Then the administrator adds then from the admin interface. They also only ask during enrollment so we already had the addresses for this year and bulk added them.

That part worked.

One problem with it so far is that this is supposed to be a moderated list - but it isn't straight forward on how to turn that on - there is an option and that is set but emails still go thru without being moderated.

The Mailman contrib from SME 6 isn't working and I don't have time for a few months to figure out where the problem is.