SMTP AUTH)

Source: Internet
Author: User
Tags smtp auth
SMTP identity authentication is a method to ensure the security of the SMTP server. It requires that you want to use the SMTP server to send emails (that is, emails are finally sent to another SMTP server) before sending a message, you must first identify James. In this way, spammers cannot use your SMTP server to send unauthorized emails. However, they can still send messages to users without fixed IP addresses.
An email server that allows spammers to send unauthorized emails is called an open relay. Therefore, smtp auth is a mechanism to ensure that your email server is not an open relay.
Currently, James only supports Simple user name/password authentication.
Configure James as the SMTP server for Identity Authentication
It takes several steps to configure James as the SMTP server for identity authentication and adjust the configuration. xml file. The specific method is as follows:
1. As described above, smtp auth requires James to distinguish between local and remote emails. James determines the domain to which the email is sent and the <servernames> element in the configuration file. Any local region should be explicitly placed in the <servername> element list.
2. James's initial configuration makes it not an open relay for spam senders. It uses remoteaddrnotinnetwork mailet to restrict the IP addresses of senders who can receive emails. To enable users to send emails from any client, you must first remove this restriction. The solution is to comment out or delete the mailet tag that contains the "remoteaddrnotinnetwork" class attribute. You can find this tag in the root processor configuration of the spoolmanager configuration block.
3. Set the authrequired element in the smtpserver configuration block to "true ".
4. If you want to ensure that authenticated users can only send emails using their own accounts, set the verifyidentity element in the smtpserver configuration block to "true ".
5. Restart James to make the configuration take effect.
Verify your configuration
In the end, you need to verify that your configuration is correct. This step is important and should not be ignored.
Make sure that you have not inadvertently configured your server as an open relay. This verification can be easily completed by using the services provided by ordb.org. Ordb.org will check your email server. If it is an open relay, ordb.org will notify you.
It is extremely important to ensure that you do not configure the server as an open relay. In addition to the consumption caused by spammers, the SMTP server routinely rejects connections from servers that open relay, which seriously affects the ability of your email server to send emails.
It is also necessary to verify that a user can log on to the server and send an email on your server. This can be done with any standard mail client (such as outlook, Eudora, and evolution ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.