I want to send the mail from one server to an external domain (xxx@yyy.com
).
How can I implement this?
I want to send the mail from one server to an external domain (xxx@yyy.com
).
How can I implement this?
If you are configuring a mail server, it should be able to send mail just about anywhere on its own. It may be a relay server for your own netwwork, but should not relay from the Internet to the Internet.
For a properly configured mail server you will need:
mail
, smtp
or mta
.You should now have a working mail server. There is some additional work you will want to do.
MX
record. TXT
record containing v=spf1 a mx -all
.www.example.com
). Create a TXT
record containing v=spf1 -all
. TXT
record containing v=spf1 mx ~all
would be a starting point. Research and implement a better policy.DKIM
and start signing outgoing email.DMARC
and configure DNS accordingly. As you work run tests to ensure you are properly configured.
Most of the above is not required if you are sending within your own network, or to a co-operating network which will relay for you. I would still recommend setting up SPF, especially for your servers.
While SPF was originally intended to protect envelope sender (MAIL FROM) addresses, it is much more reliable in protecting the server address (HELO, and/or rDNS). Almost anything return other than pass
or none
is a strong indication of a spoofed host address.