If I have a home mail server, what could prevent someone from sending me an email at my IP address?

2

1

I've found that my 2 domain providers both prevent me from putting my static IP address in the MX record for my domains.

But let's say my IP is 71.222.111.33.

If I open up port 25 on my Wifi router and have a mail server listening for incoming connections, what would prevent someone from successfully sending an email to warren@71.222.111.33 ?

Warren

Posted 2012-08-17T11:23:57.837

Reputation: 249

The email server they are using wouldn't accept it. – Ramhound – 2012-08-17T11:46:11.543

If email systems are structured in a way that effectively every email can be wiretapped, because it has to go through some corporation's server, then email itself is a worthless technology. – Warren – 2012-08-17T12:02:52.843

Actually an interesting question that I'd like to see answered as well. – invert – 2012-08-17T12:04:53.120

Your static IP (as, you own it), or your providers static IP which you are leasing? – Hennes – 2013-09-09T15:27:02.767

Answers

3

Have you asked your ISP if they permit home e-mail or other servers? In many cases the ISP will simply block any traffic to certain ports like 25. As the traffic passes their router(s), it is either dropped or blocked in some way. Same for HTTP and HTTPS and many other protocols. If you by a "business" or "commercial" package from them, then the traffic passes without issue. But you are now paying a much higher price.

Dave M

Posted 2012-08-17T11:23:57.837

Reputation: 12 811

Working for an ISP for years, I can tell that this answer is absolutely correct. Customers with a home or residential package are often blocked from using providing commercial services such as email, although http is rarely blocked since this can be a legitimate service such as a personal Web page or device configuration page, but I have heard other ISP blocking this as well. – acejavelin – 2016-03-26T13:08:21.790

1

As explained in section 4.1.3 of the STMP specification (PFC5321#4.1.3), you have to use an address literal if the host has no name. The correct syntax would be:

warren@[71.222.111.33]

As by the standard, this is supposed to work. I tested it, and it works fine with Thunderbird and Postfix.

But there are email clients and/or mail servers that will choke on this syntax (basically because they don't respect the standard). For example, the email provider WEB.DE marks that address as invalid.

Dennis

Posted 2012-08-17T11:23:57.837

Reputation: 42 934

Bottom line: Either switch providers or get a cheap VPS. All of the problems described here and in your other question will go away if you get a VPS. – Dennis – 2012-08-17T12:14:39.043

I've confirmed that Comcast and Yahoo mail servers reject this format. I've already paid for web hosting for a couple years with Network Solutions, whose provided email is utterly useless. The pop3/imap servers don't even work. – Warren – 2012-08-17T13:23:29.007

I mean a VPS with root access, not some pre-configured one. You can configure the VPS as you wish, just as you would do with your home computer. It's what I'm doing, and it's working very well for me. – Dennis – 2012-08-17T15:16:59.903

Oh well, the money's spent already. I'll keep VPS in mind for next time. – Warren – 2012-08-17T15:29:39.190

1

This is not a direct answer to your question, however it may be a solution to your problem.

If your domain registrar allows you to change the Nameserver records for your domains (which all good registrars should) you can use a 3rd party DNS management provider to set your static IP as an MX record.

I have used ZoneEdit for many years.

Shevek

Posted 2012-08-17T11:23:57.837

Reputation: 15 408

0

There are a few reasons your email might not reach it's destination.

ISP Restrictions

Your Internet Service Provider might not like you having your own email server, by blocking all email servers they significantly reduce spam on the internet and email remains a reasonably trustworthy communication medium.
This is most likely done by blocking common email ports (25, 110, 143, 465, 993, 995, 2525).

Email Provider Restrictions

The Email Provider might not like untrustworthy IP addresses as destination for outgoing emails, thus does not allow numeric addresses as destination, only domain names (sometimes they only allow a list of trustworthy email servers).

Routing Issues

The Email Server that sends the email might be unable to find the correct route to your server for some reason, this is a bit unlikely if you use your unique, external IP as server address.

Misconfiguration

You might have misconfigured some things, like port forwarding incorrectly configured or a non-functioning email server.

IP Address Renewal

Your ISP most likely gave you a dynamic IP address, when your lease expires you might be assigned a different IP then you sent the email to, this can be solved by using a dynamic DNS service such as No-IP.com that uses a client to update your dynamic DNS record to your current IP whenever you obtain a new IP.

Power Outages and Similar Events

Of course there can be special circumstances that render your email server inoperable. But this is highly unlikely.


I'm home-hosting a Raspberry Pi with some services like a VPN, SSH, and HTTP. But no email since i discovered my ISP blocks port 25.
I'm using noIP for dynamic DNS services, although i don't really need it because my ISP has not changed my IP for over a year.

x13

Posted 2012-08-17T11:23:57.837

Reputation: 183

Wow, just great, i clicked a "related"-link on another email question and did not see this is a 4 year old question. – x13 – 2016-03-26T11:29:32.767