#Gmail secure smtp control panel how to
If Google Mail is still rejecting your authentication or your ability to send mail, here's how to troubleshot:
If the latter happens, you can look in your server logs (turbine.log most commonly has the problem), which are located in /data/xnat/home/logs. This will either work properly, or give you an error page with a Server Error (500) report. (If none exist, you can remedy that in the Administer > Users control panel.) Click the "To" checkbox next to that user's name and send a test email. Select a user that has a valid email account. Return to your XNAT and go to Administer > Send Email in the top navigation. You may also receive a security warning notification after setting this feature. Note: Google will silently and automatically adjust this setting back to its default if you are not using the SMTP server for a certain period of time. To enable your XNAT instance to use your Gmail credentials and route email through their SMTP server, set "Allow less secure apps: ON". Your Google Account may have a security setting that prevents "less secure apps" from using services associated with your account. Step 2: Adjust Your Google Account Permissions Then, configure your SMTP mail server like this, using your Gmail user credentials. In your XNAT, go to Administer > Site Administration in the top navigation, then click on the Email Server tab in the admin panel. These instructions will attempt to point you in the right direction. Google has become more security-conscious over time, and has made it more difficult to use this service.
Note: This is more difficult than it used to be. If not, it is possible to use a valid Gmail account for this purpose. In some cases, you can use an email server provided by your enterprise or institution. However, XNAT does not ship with an SMTP server. XNAT has several functions where it needs to send emails to users - particularly when notifying users of project invitations, or when data processing commands have been completed. This is most useful for development instances of XNAT, such as one running on a Vagrant VM, for users who don't have ready access to an institutional SMTP server for managing notifications.