Possible Duplicate:
how to avoid email header Received: from unknown and email going to spam
I try to send email from our server using php and Zend_Mail. I use smtp transport. This is confirmation email of subscribing on my site. But for some reason email that I send has strange headers and email goes to spam folder:
Message-Id: <50f41c80.67e3440a.2d32.6aabSMTPIN_ADDED_MISSING@mx.google.com>
Received: (qmail 18457 invoked from network); 14 Jan 2013 14:55:59 -0000
Received: from unknown (HELO smtp1-1.searchboxindustries.com) (username@searchboxindustries.com@207.162.215.30)
by searchboxindustries.com with SMTP; 14 Jan 2013 14:55:59 -0000
smtp1.searchboxindustries.com should resolve to 207.162.215.30. Why do I have this header then?
What does it mean list header "Recieved: from uknown"? Can it make email go to spam? How to avoid this strange header and make email avoid spam folder? Maybe I have some problems with DNS settings of this domain?
Spf seems ok:
Received-SPF: pass
Code for setting headers:
$mailer->clearFrom();
$mailer->setFrom($params['list_email'], $params['list_from_name']);
$mailer->setReplyTo($params['list_email']);
$mailer->addHeader('Sender', $params['list_email'] . '.emailname.com');
$mailer->setReturnPath($params['list_email'] . '.emailname.com');
$mailer->addTo($params['email_address']);
Code to configure transport:
$emailConfig = $this->getOption('email');
$transport = new Zend_Mail_Transport_Smtp($emailConfig['server'], $emailConfig);
Zend_Mail::setDefaultTransport($transport);
Email config from application.ini:
email.name = emailname.com
email.server = emailserver.com
email.username = email@address.com
email.password = password
email.auth = plain
email.port = 999
email.from_address = "address@email.com"
email.from_name = "Mailable";