I want to send an email to a external server using the public IP address of the email server.
e.g. Send email to [email protected] to the following IP
(If is not possible, can I send an email to
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It only takes a minute to sign up.Sign up to join this community
You can send email direct to an IP address... maybe. There is nothing needed client side, success depends on how the server is configured.
For example on my mail server, the domain in the destination (an IP in your use case) is checked against the contents of a mysql db table, and if it is in that table the mail is accepted and added to the queue for delivery processing.
A very basic set up though for a mail server would NOT run such a check and instead simply accept the message and apply its delivery rules.
So definitely maybe.
As to doing something like modifying your
hosts file to give a name to your IP address or to point a "real" name to some other IP address, while that works with web browsers, game consoles, etc. it doesn't work with email. The sending mail server uses DNS to look up a
MX Record for the destination domain/IP, not your local computer.