Stash is now known as Bitbucket Server.
See the

Unknown macro: {spacejump}

of this page, or visit the Bitbucket Server documentation home page.

Setting up Stash to use your SMTP mail server:

  • allows Stash to send notifications about events to do with pull requests. See Using pull requests in Stash. Note that if the mail server fails, notifications will be dropped.
  • allows Stash to email a link to a newly created user, which the user can use to generate their own password.
  • allows a user to reset his or her password if they forget it.

To configure a mail server for Stash, go to the administration area and click Mail server (under 'Settings'). See Supported platforms for the mail clients supported by Stash.

Fill in the form and click Save.

HostnameThe hostname of the mail server (for example "localhost" or "192.168.1.15").
PortThe port of the mail server (if unspecified, the port 25 will be used).
UsernameThe username to use to connect to the mail server.
PasswordThe password to use to connect to the mail server.
Use TLSCheck if the SMTP server you are connecting to uses TLS.
Email fromSpecifies the 'From' header in notification emails (for example: noreply@yourcompany.com).

Anonymous User

If you are looking to setup the outgoing mail server as an anonymous user, simply leave the username and password fields empty. In Chrome, these fields could be auto-populated, leading to an error.  Try with another browser to help work around it.

 

Configuring the Mail Server to Use GMail

If you wish to connect to a Gmail account for email notifications in Stash, refer to the Configuring the Mail Server to Use Gmail guide.