Koozali.org: home of the SME Server

How to make EZMLM do something

Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
How to make EZMLM do something
« on: March 17, 2004, 11:50:30 PM »
I want to use mailing lists on my SME 6 server and I've installed the latest version but what I cannot find anywhere is how to make it actually do something.

Setting up a mailing list is just a matter of using the new panel in Server Manager - but the system won't accept any emails - subscribe doesn't do anything and the address mailinglist@serverdomain is non-functioning.

Is there another stage of configuration that no one discusses in their howtos?

And before anyone says: 'Get thee to the manual!' I have, and its about as much use as a chocolate fireguard. It gives pages of things I'm supposed to be able to do but none of them do anything.

There has to be a magic key, but I can't spot it. Anyone able to help?

Ed Form

Anonymous

How to make EZMLM do something
« Reply #1 on: March 20, 2004, 06:19:23 PM »
What error message do you receive, when you try to send a mail to the list? Jesper

Offline edform

  • *
  • 178
  • +0/-0
    • http://www.workgroupsolutions.co.uk
How to make EZMLM do something
« Reply #2 on: March 21, 2004, 02:34:23 PM »
Quote from: "Anonymous"
What error message do you receive, when you try to send a mail to the list? Jesper


The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'prophecy@ipswichchristadelphians.com'. Subject 'test message', Account: 'xxx.xxx.xxx.x', Server: 'outmail.f2s.com', Protocol: SMTP, Server Response: '553 Sorry, that is an invalid e-mail address', Port: 25, Secure(SSL): No, Server Error: 553, Error Number: 0x800CCC79

It looks as though I have to manually create the mailing list email account, but I don't want to do that because I'd have expected the system to do it automatically, along with all of the addresses for subscribing, unsubscribing etc.

Ed Form

Anonymous

How to make EZMLM do something
« Reply #3 on: March 21, 2004, 11:28:08 PM »
I've got ezmlm running on a SME 5.5 with no problems. You don't have to create accounts for the mailing lists, so something else must have gone wrong. Do the names of the mailing lists you've created appear in the file /home/e-smith/accounts ? And do they appear as directories under /home/e-smith/files/ezmlm/lists ?
Jesper

Offline Smitro

  • *
  • 350
  • +0/-0
How to make EZMLM do something
« Reply #4 on: June 18, 2005, 12:06:22 PM »
I have the same problem. My mailing lists have been working fine, then all of a suddern something happened today. I checked both of these files and yes the list is in both places. Any Suggestions?
.........

Offline kmccarn

  • ****
  • 112
  • +0/-0
How to make EZMLM do something
« Reply #5 on: June 18, 2005, 12:36:00 PM »
Don't know if this helps - or even if it's true - but I run ezmlm on a couple servers - and....

My admin on the west coast said he couldn't get his new lists to work until he added at least one local address to it.

After adding one local - all the externals went through.

I'll test this - if I get time.
Kevin in WV 8-)......

Offline Smitro

  • *
  • 350
  • +0/-0
How to make EZMLM do something
« Reply #6 on: June 18, 2005, 01:41:09 PM »
I just tested your theory, and unfortuantly it doesn't work. (thanks for trying :-)) I have created other mailing lists without a problem in the past, something has happened since the last list I created.

I havn't installed any more software. I have tried several different names for lists, and I have also tried adding all users from the local machine and users all from external.

The thing I can't understand is that I use to create lists no problem.

btw- maybe what your friend was talking about was the fact that the owner has to be a local user.
.........

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
How to make EZMLM do something
« Reply #7 on: June 19, 2005, 06:21:10 AM »
For those have problem with ezmlm, first check if exist this files in your system:
/etc/e-smith/templates/var/qmail/users/assign/
30admin
40alias
45shared
50system
60users
70pseudonyms
80groups
90mailinglists
template-begin
template-end

In case you don't have 90mailinglists, investigate why tou lost this file. Here is the content to restore the file. Then make expand-template and restart server, or try post-upgrade event

Code: [Select]
{
    use esmith::config;
    use esmith::db;

    $OUT = '';

    # Generate qmail user assignments for mailing lists. These will be handled
    # by ~ezmlm/.qmail-listname and ~ezmlm/.qmail-listname-ext.

    my %accounts;
    tie %accounts, 'esmith::config', "/home/e-smith/accounts";

    my (undef, undef, $uid, $gid, undef, undef, undef, $dir, undef)
        = getpwnam("ezmlm");

    # It is almost impossible to get Text::Template to output nothing
    # on failure. It can be done by removing the newline at the end of
    # this file but that is messy. Therefore, we'll simply return an
    # error message that will make qmail-newu fail. Also send a
    # warning message that will be captured in the logs.

    unless (defined $uid && defined $gid && defined $dir)
    {
        my $msg =
            "Failed to obtain user details for \'ezmlm\' "
            . "while processing group assignments.";

        warn "$msg\n";
        $OUT = $msg;
        return;
    }

    my $ezmlm_assign = "ezmlm:${uid}:${gid}:${dir}";

    foreach my $listname (db_get(\%accounts))
    {
        next unless db_get_type(\%accounts, $listname) eq "mailinglist";

        # Assign mail for listname@
        $OUT .= "=${listname}:${ezmlm_assign}:-:${listname}:\n";
        # Assign mail for listname-ext@
        $OUT .= "+${listname}-:${ezmlm_assign}:-${listname}-::\n";
    }

    # Need to remove the final newline character. Blank lines in
    # /var/qmail/users/assign are prohibited.

    chomp($OUT);

    # Failsafe: /var/qmail/users/assign cannot have blank lines.
    # Therefore, if $OUT is empty, simply set up an assign for the
    # ezmlm user.

    $OUT = "=ezmlm:${ezmlm_assign}:::" unless $OUT;
}


Normando Hall

Offline raem

  • *
  • 3,972
  • +4/-0
How to make EZMLM do something
« Reply #8 on: June 19, 2005, 08:53:58 AM »
edform

>...'553 Sorry, that is an invalid e-mail address

Have you installed one of the mailblocking rpm variants ?

They do not work correctly with ezmlm.
Try saving any user account and that should reread the mail lists.
If you are using the dungog-mailblocking rpm, get the latest one for sme6 (dungog-mailblocking-1.0-4.noarch.rpm) as I believe it caters for ezmlm mail list changes and stops them from being seen as invalid addresses (which appears to be your problem).
...

Offline Smitro

  • *
  • 350
  • +0/-0
How to make EZMLM do something
« Reply #9 on: June 19, 2005, 10:59:13 AM »
Ok, I have just checked and the file /etc/e-smith/templates/var/qmail/users/assign/90mailinglists  is there and looks to be the same as below.

Yes, I have the mail blocking RPM in place.
dungog-mailblocking-1.1-2.noarch.rpm

I would have through this was a newer version looking at the numbers?

I will try installing the version you said.

Weird part is that it's been in place longer than some of my mailing lists. Maybe is just decided enough was enough??

It apears all my mailing lists are working ok, but when I try to add another one is when this error shows up for this new address.
.........

Offline Smitro

  • *
  • 350
  • +0/-0
How to make EZMLM do something
« Reply #10 on: June 19, 2005, 12:30:51 PM »
Interesting...

I tried to uninstall dungog-mailblocking-1.1-2.noarch.rpm but it said it was not installed?? so I re-installed it. still same thing. so I went to dungog's web site, and I noticed there is a new version dungog-mailblocking-1.1-3.noarch.rpm dated 9th June 2005. I also found in another post some where else that version 1.0.4 is for older versions of SME. 1.1-3 is for 6.5.

So I installed the new one over the top. Still no luck.

I then added a rule for my mailing list to the mailblocking page. all of a suddern that address worked. So to see if this is fixed, I created a new list. Same problem as before. It didn't work. I created a rule and it worked. (plus all the addresses surrounding the list). I then deleted the rules from mailblocking and it still worked.

It seems that you just have to update the mailblocking tool. And all you have to do to update it is to added a rule then remove it... I'm guessing that this reloads it... If some one knows what is involved in this process that may be able to be fixed in future releases I would love to see it. Maybe even a button on the mail blocking panel saying "reload/update rules".
.........

Offline raem

  • *
  • 3,972
  • +4/-0
How to make EZMLM do something
« Reply #11 on: June 20, 2005, 05:49:23 AM »
Smitro

You appear to be running sme 6.5RC1 so dungog-mailblocking-1.1-3.noarch.rpm is the correct one to use.

Looking at the changelog the mail list actions have been removed (in v 1.1-1test), so that may be why it's not working correctly with mail list changes, also note the release is marked as "release for testing only" with very little changes since then, so perhaps there is more work to be done to integrate it properly with sme6.5RC1.
You best ask the author about that.

* Tue Jun  7 02:00:00 2005 Stephen Noble <support@dungog.net>
- accept syntax corrected, p=pass
- [1.1-3]

* Fri Apr  8 02:00:00 2005 Stephen Noble <support@dungog.net>
- clarification, to block a user sending mail externally, create a custom rule
- [1.1-2]

* Sat Feb 12 03:00:00 2005 Stephen Noble <support@dungog.net>
- supports and requires sme 6.5 which blocks unknown mail by default
- remove mailing list actions
- maillocal=on record replaced with existing Visible=internal record
- release for testing only
- [1.1-1test]

* Tue Dec  7 03:00:00 2004 Stephen Noble <support@dungog.net>
- allow qmail- addresses, needed for TMDA
- fix display of groups restricted to local
- BUG, doesn't stop mail being sent externally
- [1.0-4]

* Thu Aug 19 02:00:00 2004 Stephen Noble <support@dungog.net>
- add actions to the ezmlm mailinglist events
- [1.0-3]

* Thu Aug 12 02:00:00 2004 Stephen Noble <support@dungog.net>
- 20ValidateLocalRecipients split, new fragment 40RejectLocalNotDefined
- added panel shortcut to restrict users to local email only
-  you can overide with custom rules to allow to/from some addresses
- [dungog-mailblocking-1.0-2]

* Tue Aug  3 02:00:00 2004 Stephen Noble <support@dungog.net>
- rewrite/combine dmc-mitel-mailrules and e-smith-domain_mail_user
- prior data from e-smith-domain_mail_user is used
- prior data from dmc-mitel-mailrules is not
- new
- more selective event allows saves on every rule change




> I tried to uninstall dungog-mailblocking-1.1-
> 2.noarch.rpm but it said it was not installed??

To uninstall do rpm -e dungog-mailblocking
To check if installed do rpm -q dungog-mailblocking
...

Offline Smitro

  • *
  • 350
  • +0/-0
How to make EZMLM do something
« Reply #12 on: June 20, 2005, 11:29:31 PM »
Thanks, I'll see if I can get in contact with him.
.........

glindsay

How to make EZMLM do something
« Reply #13 on: February 08, 2006, 09:48:45 PM »
I was having the same issues where any new group I created would not work but new users were just fine.

In my Mailfront mailrules I created a new rule to accept from *@mydomain.com to *@mydomain.com and it fixed it.