No AOL Emails

Discussion in 'Customization & add-ons' started by patrick_6, Oct 10, 2006.

  1. patrick_6

    patrick_6 New Member

    Joined:
    Aug 22, 2006
    Messages:
    9
    We had a big fiasco this last weekend of almost getting our site deleted by our hosting company, because of so many spam complaints from AOL. They don't like it if your site sends out bulk emails to their users. You can however sign up to be on the whitelist, and they will allow it, but even then if enough users click that its spam you will get another complaint. Our host won't allow us anymore complaints, therefore we are forced to not allow any more subscriptions by AOL members. Its sucks because obviously the emails we send out aren't spam, but to registered users. Some who signed up years ago though, forgot about the site and have reported spam as well.

    My question: in the form validation, how can I set up a simple way to not allow AOL emails to sign up. I think the code below would work, however, I can't figure out where to plug it in to the /includes/jsval/jsval.js code. Can someone help? Here is what I have so far:

    Code:
    var badDomain = new Array('aol.com');
    
    function in_array() {
    var userEmailDomain = document.getElementById('email').value.split('@')[1];
    var badDomainStr = badDomain.toString();
    if (badDomainStr.indexOf(userEmailDomain) != -1) {
    alert('Blocked domain'); return false;
    };
    };
    Thanks in advance!
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    please contact us via helpdesk.
  3. microlinx

    microlinx Member

    Joined:
    Oct 26, 2004
    Messages:
    268
    This may have to be a sticky topic eventually since more and more ISP's are cracking down on SPAM.

    Part of this problem is the fact that aMember sends mail as "nobody".
    To do otherwise requires mail to be sent via SMTP. Something that is included in ver. 3.0.8, but I've yet to get working fully.
    It seems you must select SMTP, then enter the following in the SMTP field:
    "username: password@mail.domain.com". I also looked through the class.phpmailer.php script and it looks like it could be set to use SMTP too.
    I'm checking with Alex today.

    The other part is that your mail server may have no SPF (Sender Policy Framework) record associated with it. If you have a server with WHM, it's easy to add SPF records. Before you start, go to DNSSTUFF.com and do a DNS report to see if you are missing an SPF record.

    1. Go to "DNS Functions"
    2. Select "Edit DNS Zone"
    3. Select the desired domain.
    4. A the bottom of the page, enter your domain name as ""domain.com." in the left most field (without the quotes, notice the trailing period, it is required).
    5. For IN, select TXT.
    6. In the field just to the right of TXT, enter the following WITH the quotes: "v=spf1 a ~all" .
    7. Hit submit and restart BIND.

    Once I did the SPF record addition, I noticed less mail not making it to AOL, Hotmail, Yahoo, sbcglobal, etc... (ISP's with agressive spam filtering).

Share This Page