Welcome Guest, Not a member yet? Register   Sign In

I'm getting a lot of emails sent through Codeigniter knocked back as spam. The relevent record on spamhaus.org is:

Quote is listed on the Policy Block List (PBL)

Outbound Email Policy of BT Retail for this IP range:

It is the policy of BT Retail that unauthenticated email sent from this IP address should be sent out only via the designated outbound mail server allocated to BT Retail customers. Please consult the following URL for details on how to configure your email client appropriately. http://btybb.custhelp.com/cgi-bin/btybb....faqid=6876

End quote

I don't use a BT account to send emails but this has never caused a problem before. This doesn't happen when the same email is sent through Thunderbird.

The email config file is:

ini_set('SMTP', '******************');
$config['mailtype'] = 'text';
$config['charset'] = 'iso-8859-1';
$config['wordwrap' = TRUE;
$config['wrapchars']= 76;
$config['useragent'] = "CodeIgniter";
$config['protocol'] = 'smtp';
$config['_smtp_auth'] = TRUE;
$config['smtp_host'] = '**********';
$config['smtp_user'] = '**********';
$config['smtp_pass'] = '*********';
$config['smtp_port'] = '25';
$config['smtp_timeout']= '10';
$config['validate'] = FALSE;
$config['priority'] = 3;
$config['newline'] = "\r\n";


I added

$config['_smtp_auth'] = TRUE;
$config['validate'] = FALSE;
$config['priority'] = 3;
$config['newline'] = "\r\n";

To see if that cured the problem. It didn't. Has anybody any idea what is going on?

If the smtp_host is the mail server allocated to BT customers, there should not be a problem.

If you are trying to send out email yourself (p.e. using a local sendmail), this will happen. Your mailclient is probably configured to use this mailserver as well, hence the lack of problems there...

Theme © iAndrew 2016 - Forum software by © MyBB