FAQ
I am new to the administrative functions of CPANEL and I've tried reading the Mailman online manual at the Python website but I cannot find an answer to my question.

I have setup several email lists whereby only specific email addresses are accepted to go through to those defined in the email list. I would like to create the ability whereby if an email has specific text in the SUBJECT then, like the accepted email addresses, I would like these emails to be accepted as well and go through to those defined in the email list.

I tried using the SPAM filter where in the regex textbox I entered: Subject: Here is my text
but this did not work.

Any direction or suggestion on how to best accomplish this would be greatly appreciated.

Regards.


Melinda Savoy
Sr. Programmer Analyst
Financial Applications - Enterprise Systems



The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system.

Search Discussions

  • Mark Sapiro at Feb 19, 2008 at 6:33 pm

    Savoy, Melinda wrote:
    I have setup several email lists whereby only specific email addresses are accepted to go through to those defined in the email list. I would like to create the ability whereby if an email has specific text in the SUBJECT then, like the accepted email addresses, I would like these emails to be accepted as well and go through to those defined in the email list.

    I tried using the SPAM filter where in the regex textbox I entered: Subject: Here is my text
    but this did not work.

    Mailman does not have the ability to unconditionally accept mail with a
    specific Subject:. header_filter_rules doesn't work for this because
    the Accept action just means "pass the Spam filters"; it doesn't mean
    unconditionally accept the message.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Jason Pruim at Feb 19, 2008 at 6:39 pm

    On Feb 19, 2008, at 12:56 PM, Savoy, Melinda wrote:

    I am new to the administrative functions of CPANEL and I've tried
    reading the Mailman online manual at the Python website but I cannot
    find an answer to my question.

    I have setup several email lists whereby only specific email
    addresses are accepted to go through to those defined in the email
    list. I would like to create the ability whereby if an email has
    specific text in the SUBJECT then, like the accepted email
    addresses, I would like these emails to be accepted as well and go
    through to those defined in the email list.

    I tried using the SPAM filter where in the regex textbox I entered:
    Subject: Here is my text
    but this did not work.

    Any direction or suggestion on how to best accomplish this would be
    greatly appreciated.

    Hi Melinda,

    What is the problem you're really trying to solve? Would it not be
    possible to add the e-mail addresses that would have to include a
    certain subject to the list and don't subscribe them just allow them
    to post? Just a thought :)


    --

    Jason Pruim
    Raoset Inc.
    Technology Manager
    MQC Specialist
    3251 132nd ave
    Holland, MI, 49424
    www.raoset.com
    japruim at raoset.com
  • Savoy, Melinda at Feb 19, 2008 at 6:46 pm
    Jason,

    That is exactly what I would like to have happen.

    We are a homeowners association and I have several forms that are
    submitted to our email lists and each form has a specific subject line
    that when released by the administrator (me) because they are not in
    the accepted email addresses listing of the list goes to each of the
    members of that email list and because that email could be submitted
    from anyone who completes the form I just was looking for a way to not
    have to release "accept" the email manually and let it pass through to
    that email list.

    Hope that makes sense.

    Is there a way to do what you're suggesting? If so, how?

    Thanks.

    -----Original Message-----
    From: Jason Pruim [mailto:japruim at raoset.com]
    Sent: Tuesday, February 19, 2008 12:39 PM
    To: Savoy, Melinda
    Cc: mailman-users at python.org
    Subject: Re: [Mailman-Users] Need ability to allow emails with specific
    subject line

    On Feb 19, 2008, at 12:56 PM, Savoy, Melinda wrote:

    I am new to the administrative functions of CPANEL and I've tried
    reading the Mailman online manual at the Python website but I cannot
    find an answer to my question.

    I have setup several email lists whereby only specific email addresses
    are accepted to go through to those defined in the email list. I
    would like to create the ability whereby if an email has specific text
    in the SUBJECT then, like the accepted email addresses, I would like
    these emails to be accepted as well and go through to those defined in
    the email list.

    I tried using the SPAM filter where in the regex textbox I entered:
    Subject: Here is my text
    but this did not work.

    Any direction or suggestion on how to best accomplish this would be
    greatly appreciated.

    Hi Melinda,

    What is the problem you're really trying to solve? Would it not be
    possible to add the e-mail addresses that would have to include a
    certain subject to the list and don't subscribe them just allow them
    to post? Just a thought :)


    --

    Jason Pruim
    Raoset Inc.
    Technology Manager
    MQC Specialist
    3251 132nd ave
    Holland, MI, 49424
    www.raoset.com
    japruim at raoset.com






    The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system.
  • Mark Sapiro at Feb 19, 2008 at 7:25 pm

    Savoy, Melinda wrote:
    We are a homeowners association and I have several forms that are
    submitted to our email lists and each form has a specific subject line
    that when released by the administrator (me) because they are not in
    the accepted email addresses listing of the list goes to each of the
    members of that email list and because that email could be submitted
    from anyone who completes the form I just was looking for a way to not
    have to release "accept" the email manually and let it pass through to
    that email list.

    I think what Jason was suggesting is to put the email addresses of the
    potential senders of the messages in accept_these_nonmembers, but I
    think you're saying you don't know these addresses in advance, so that
    won't work.

    If your web form actually generates the email to the list, you can
    generate it with an

    Approved: <password>

    header, where <password> is the list admin or list moderator password
    (moderator would be safer in case it gets inadvertently exposed via
    your web application).

    This 'pre-approves' the mail and bypasses the membership tests. The
    header is removed from the mail to the list members so the password
    isn't exposed that way.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Savoy, Melinda at Feb 19, 2008 at 7:40 pm
    You are correct to say that I do not know the email addresses that could
    possibly use the form.

    Thanks anyway.

    -----Original Message-----
    From: Mark Sapiro [mailto:mark at msapiro.net]
    Sent: Tuesday, February 19, 2008 1:26 PM
    To: Savoy, Melinda; Jason Pruim
    Cc: mailman-users at python.org
    Subject: Re: [Mailman-Users] Need ability to allow emails with
    specificsubject line

    Savoy, Melinda wrote:
    We are a homeowners association and I have several forms that are
    submitted to our email lists and each form has a specific subject line
    that when released by the administrator (me) because they are not in
    the accepted email addresses listing of the list goes to each of the
    members of that email list and because that email could be submitted
    from anyone who completes the form I just was looking for a way to not
    have to release "accept" the email manually and let it pass through to
    that email list.

    I think what Jason was suggesting is to put the email addresses of the
    potential senders of the messages in accept_these_nonmembers, but I
    think you're saying you don't know these addresses in advance, so that
    won't work.

    If your web form actually generates the email to the list, you can
    generate it with an

    Approved: <password>

    header, where <password> is the list admin or list moderator password
    (moderator would be safer in case it gets inadvertently exposed via your
    web application).

    This 'pre-approves' the mail and bypasses the membership tests. The
    header is removed from the mail to the list members so the password
    isn't exposed that way.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan





    The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system.
  • Jason Pruim at Feb 19, 2008 at 7:46 pm

    On Feb 19, 2008, at 2:40 PM, Savoy, Melinda wrote:

    You are correct to say that I do not know the email addresses that
    could
    possibly use the form.

    Thanks anyway.
    There still might be away to do this... It's not a pure mailman
    solution, but I did it for a contact form I use at my office. I simply
    set the address that the e-mail is coming from to an approved sender
    address... So in other words: japruim at raoset.com is okay to post to
    the list, so I set the form e-mail from address to: japruim at raoset.com
    and then have it print their e-mail address in the e-mail so I can
    contact them :)

    It may be considered a dirty solution, but it works great for me.

    If you'ld like, I could send you a copy of my contact form offlist
    which only requires PHP to run it..



    I think what Jason was suggesting is to put the email addresses of the
    potential senders of the messages in accept_these_nonmembers, but I
    think you're saying you don't know these addresses in advance, so that
    won't work.
    Hi Mark,

    Yeah, that's what I was thinking :)


    --

    Jason Pruim
    Raoset Inc.
    Technology Manager
    MQC Specialist
    3251 132nd ave
    Holland, MI, 49424
    www.raoset.com
    japruim at raoset.com
  • Savoy, Melinda at Feb 20, 2008 at 11:46 am
    Well I found a workaround for my problem. I used in the CGIEmail, as
    was suggested yesterday, to just use an email address in the FROM line
    of my CGI form file that was accepted by the email list and it worked
    famously.

    I don't know why I had not thought of that but I appreciate the insight
    and direction that was given.

    Thanks so much for all the help and the responses.

    Jason, thanks for all your help and the code that you gave. I may be
    using it in the future. Thanks so much.

    Regards.

    -----Original Message-----
    From: Jason Pruim [mailto:japruim at raoset.com]
    Sent: Tuesday, February 19, 2008 1:58 PM
    To: Savoy, Melinda
    Subject: Re: [Mailman-Users] Need ability to allow emails with
    specificsubject line

    Hi Melinda,

    I haven't done much with CGI myself, but I guess you would just have to
    change the form to process this new script :) Obviously make sure
    to change any of contact at raoset.com to what ever you want it to be.
    And this form is setup to use the POSt method, but can be changed to use
    GET... Let me know if you have any questions about it. And if you
    improve it, definitely let me know... This was something I cooked up on
    my own, and there could be issues with it, but it's been working great
    for me for about a year with no spam... But that could be because I
    don't allow hardly any spam into my system... Or I'm just lucky :)

    I went ahead and zipped both the php script, and my webpage that I
    display to gather the info, just so you can see how everything fits
    together.


    --

    Jason Pruim
    Raoset Inc.
    Technology Manager
    MQC Specialist
    3251 132nd ave
    Holland, MI, 49424
    www.raoset.com
    japruim at raoset.com




    The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system.
  • Cyndi Norwitz at Feb 19, 2008 at 7:49 pm
    When I have had forms on my web pages, I was shocked by just how many of
    the submissions were spam. I could never figure out if a human took the
    time to fill out all those little text boxes or if there was a generator
    somewhere. Sometimes the boxes were filled randomly and sometimes they
    were done coherently. More than half the submissions were total spam.

    I strongly recommend that you do not set things up to post from a website
    automatically. I see that you are talking about forms distributed in
    email, but the chances for spam are still there.

    It takes some time to screen them all but it is worth it IMHO because even
    one spam really pisses people off and makes a huge mess.

    Cyndi
  • Jason Pruim at Feb 19, 2008 at 8:04 pm

    On Feb 19, 2008, at 2:49 PM, Cyndi Norwitz wrote:

    When I have had forms on my web pages, I was shocked by just how
    many of
    the submissions were spam. I could never figure out if a human took
    the
    time to fill out all those little text boxes or if there was a
    generator
    somewhere. Sometimes the boxes were filled randomly and sometimes
    they
    were done coherently. More than half the submissions were total spam.

    I strongly recommend that you do not set things up to post from a
    website
    automatically. I see that you are talking about forms distributed in
    email, but the chances for spam are still there.

    It takes some time to screen them all but it is worth it IMHO
    because even
    one spam really pisses people off and makes a huge mess.

    Cyndi

    Hi Cyndi,

    Yes spam is a big issue, and to an extent, you will never get rid of
    spam... I say this as someone who runs a company email server and is
    in charge of keeping the spam down :)

    There are ways though to make sure that no bots can submit to your
    forms... And the way I setup my mailman lists, is that no one but
    authorized people can post to the list, which does block e-mail
    harvesting techniques.

    There are also CAPTCHA's that you can put on your web form's to avoid
    spam, but that has it's own set of drawbacks... Plenty of info on the
    web about it.

    If you have someone paying people to submit forms on websites, there
    is no way to avoid that... Other then not having a form at all.

    And there are people who do that... I have seen lots of adds
    requesting people to do just that...

    So basically I agree with you, with a few stipulations.

    :)

    --

    Jason Pruim
    Raoset Inc.
    Technology Manager
    MQC Specialist
    3251 132nd ave
    Holland, MI, 49424
    www.raoset.com
    japruim at raoset.com
  • Mark Sapiro at Feb 19, 2008 at 8:07 pm

    Savoy, Melinda wrote:
    You are correct to say that I do not know the email addresses that could
    possibly use the form.

    Thanks anyway.

    Did you read the rest of my reply quoted below? It contains a solution
    (if you still want to do it after reading Cyndi's reply). If you don't
    understand the solution, but are interested, please ask specific
    questions about it.

    If your web form actually generates the email to the list, you can
    generate it with an

    Approved: <password>

    header, where <password> is the list admin or list moderator password
    (moderator would be safer in case it gets inadvertently exposed via your
    web application).

    This 'pre-approves' the mail and bypasses the membership tests. The
    header is removed from the mail to the list members so the password
    isn't exposed that way.
    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Jason Pruim at Feb 19, 2008 at 8:11 pm

    On Feb 19, 2008, at 3:07 PM, Mark Sapiro wrote:

    Savoy, Melinda wrote:
    You are correct to say that I do not know the email addresses that
    could
    possibly use the form.

    Thanks anyway.

    Did you read the rest of my reply quoted below? It contains a solution
    (if you still want to do it after reading Cyndi's reply). If you don't
    understand the solution, but are interested, please ask specific
    questions about it.
    Hi Mark,

    I actually have a question about this... Normally, I create an archive
    of all the mailing lists that I run, if I were to add a header that
    said Approved: <My super Hard password> would that get archived? I'll
    be honest, I haven't taken the time to read through the possibilities,
    but thought I would ask you real quick :)

    Off to google and the docs to see what I can figure out!


    If your web form actually generates the email to the list, you can
    generate it with an

    Approved: <password>

    header, where <password> is the list admin or list moderator password
    (moderator would be safer in case it gets inadvertently exposed via
    your
    web application).

    This 'pre-approves' the mail and bypasses the membership tests. The
    header is removed from the mail to the list members so the password
    isn't exposed that way.
    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
    --

    Jason Pruim
    Raoset Inc.
    Technology Manager
    MQC Specialist
    3251 132nd ave
    Holland, MI, 49424
    www.raoset.com
    japruim at raoset.com
  • Mark Sapiro at Feb 19, 2008 at 8:26 pm

    Jason Pruim wrote:
    I actually have a question about this... Normally, I create an archive
    of all the mailing lists that I run, if I were to add a header that
    said Approved: <My super Hard password> would that get archived? I'll
    be honest, I haven't taken the time to read through the possibilities,
    but thought I would ask you real quick :)

    The header is removed prior to any Mailman archiving and prior to
    Mailman delivering the post anywhere such as an external archiver.

    If you are somehow archiving incoming mail before it is delivered to
    Mailman, then that will still contain the header.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Mark Sapiro at Feb 19, 2008 at 8:44 pm

    Savoy, Melinda wrote:
    I am working with a CGI form that I am calling from a PHP page.

    So I'm not sure how I would implement an Approve <password> option on
    the form. Hope that makes sense.

    See the additional_headers argument to the php mail() function at
    <http://us2.php.net/function.mail>.

    <rant>
    Also note that the note on that page which says "Note: If messages are
    not received, try using a LF (\n) only. Some poor quality Unix mail
    transfer agents replace LF by CRLF automatically (which leads to
    doubling CR if CRLF is used). This should be a last resort, as it does
    not comply with ? RFC 2822." was written by someone with a poor
    understanding of the difference between a message "on the wire" and a
    message in the local system. With php on a *nix server, the proper
    termination is LF (\n) only which is the *nix end of line convention
    and which is appropriately translated to CRLF (\r\n) for transmission
    on the wire.
    </rant>

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedFeb 19, '08 at 5:56p
activeFeb 20, '08 at 11:46a
posts14
users4
websitelist.org

People

Translate

site design / logo © 2022 Grokbase