2014-07-10

‎Problems sending to hotmail

← Older revision

Revision as of 00:33, 10 July 2014

(4 intermediate revisions by one user not shown)

Line 100:

Line 100:

</pre>}}

</pre>}}

The most important part to look at here is the '''H''' value. The IP in the square brackets is the real IP address that the message has been received from, and the domain directly following the ''H'' is the name found after doing a reverse-DNS lookup on the IP. If the name is surrounded by round brackets it means that no reverse-DNS entry was found, and the name that the server is publishing in response to an SMTP ''HELO'' or ''EHLO'' command (exim's ''primary_domain'' value) is being used instead. If there's both a reverse_DNS name and also a bracketed name, then this means the reverse-DNS name is not the same as the name returned from the ''HELO'' command. {{h|It's very important that there be a reverse-DNS entry and that it exactly match the ''HELO'' domain because otherwise many mail servers will reject the message as spam}}. More information about the Exim log format of received messages can be found [http://www.exim.org/exim-html-current/doc/html/spec_html/ch-log_files.html#SECID251 here] in the Exim documentation.

The most important part to look at here is the '''H''' value. The IP in the square brackets is the real IP address that the message has been received from, and the domain directly following the ''H'' is the name found after doing a reverse-DNS lookup on the IP. If the name is surrounded by round brackets it means that no reverse-DNS entry was found, and the name that the server is publishing in response to an SMTP ''HELO'' or ''EHLO'' command (exim's ''primary_domain'' value) is being used instead. If there's both a reverse_DNS name and also a bracketed name, then this means the reverse-DNS name is not the same as the name returned from the ''HELO'' command. {{h|It's very important that there be a reverse-DNS entry and that it exactly match the ''HELO'' domain because otherwise many mail servers will reject the message as spam}}. More information about the Exim log format of received messages can be found [http://www.exim.org/exim-html-current/doc/html/spec_html/ch-log_files.html#SECID251 here] in the Exim documentation.

+

+

To see what domain your mail server is responding with you can use ''telnet'' to test the SMTP with. If you're connecting from a consumer DSL you may need to use the 2525 port since many ISP block port 25 to prevent spammers. If you're connecting from another server then the usual 25 will be fine. Type the command '''telnet''' with no parameters first and then form the telnet prompt do the following two commands.

+

{{code|<pre>

+

o organicdesign.co.nz 25

+

EHLO foo.com

+

</pre>}}

+

+

The mail server will then return some information about its configuration which should look like the following:

+

{{code|<pre>

+

250-organicdesign.co.nz Hello foo.com [179.181.169.137]

+

250-SIZE 52428800

+

250-PIPELINING

+

250-AUTH PLAIN

+

250-STARTTLS

+

250 HELP

+

</pre>}}

=== Setting up a secure SMTP server with authentication ===

=== Setting up a secure SMTP server with authentication ===

Line 619:

Line 635:

=== Problems sending to hotmail ===

=== Problems sending to hotmail ===



Hotmail have increased their spam security and require a number of steps to be taken for
smtp
servers to be able to send mail to them without being blocked as spammers.

+

Hotmail have increased their spam security and require a number of steps to be taken for
SMTP
servers to be able to send mail to them without being blocked as spammers.
Start at
[
https
://
postmaster
.
live
.com/
snds
/ this
link
] to
sign up for Microsoft's "Smart Network Data Services" so you can get info about their status of your IP address, then
fill in [https://support.msn.com/eform.aspx?productKey=edfsmsbl2&ct=eformts this form].



+



First an SPF (
[
[w:Sender Policy Framework|Sender Policy Framework]]) record must be added to the domains DNS record. I used the MS [http
://
www
.
microsoft
.com/
senderid
/
wizard Sender ID wizard] which gave me
this
following content for the record which is added as a TXT record with the @ prefix:

+



{{code|<pre>v=spf1 ptr ip4:69.64.87.188 -all</pre>}}

+



+



In addition to this a form must be filled out [https://support.msn.com/eform.aspx?productKey=edfsjmrpp&page=support_home_options_form_byemail&ct=eformts&scrx=1 here
] to
be sent to MS. They got back to me via email quite promptly and got me to
fill in [https://support.msn.com/eform.aspx?productKey=edfsmsbl2&ct=eformts this form]
.

+



+



After reading up on Wikipedia about the [[w:Sender Policy Framework|Sender Policy Framework]], I think that the following is probably a better record to use as the ''PTR'' is a bit confusing, and ''IP4'' will fail if the server moves to a new IP address.

+



{{code|<pre>v=spf1 a mx -all</pre>}}

+



This version means that the mail will pass as long as the senders address matches at least one ''A'' or ''MX'' record for the domain
.

+

=== Exim broken after apt-get upgrade ===

=== Exim broken after apt-get upgrade ===

Show more