Youtrack allow to send email through 3rd party SMTP server. Fields are as follows:
Here is what I finally did:
smtp.gmail.com
;465
;SMTP+SSL
;user@domain.com
or user@gmail.com
;******
;No key
;user@domain.com
.Gmail will ignore the from
parameter so I put the same.