https://github.com/m-tmatma/svnmailer/blob/master/test/gmail-template.conf
smtp_user と smtp_pass と from_addr と to_addr を変更します。svnmailer.conf
# # This is a example of configuration for gmail. # Please change smtp_user, smtp_pass, from_addr, to_addr, and optionally ssl_mode. # [general] ## use smtp server of gmail. smtp_host = smtp.googlemail.com ## set the following values. ## ssl : use SMTP over TLS/SSL ## start_ssl : use SMTP and start_tls. ## others : use plain SMTP. ssl_mode = ssl ## smtp username of gmail smtp_user = xxxx ## smtp password of gmail smtp_pass = yyyy [defaults] default_charsets = utf-8 shift-jis euc-jp show_applied_charset = yes mail_transfer_encoding = 8bit ## from address from_addr = zzz@gmail.com ## to address to_addr = zzz@gmail.com generate_diffs = add copy modify propchange for_repos = .*/(?P.*) commit_subject_prefix = [%(project)s commit] propchange_subject_prefix = [%(project)s propchange] lock_subject_prefix = [%(project)s lock] unlock_subject_prefix = [%(project)s unlock]
#!/bin/sh REPOS="$1" REV="$2" /usr/bin/svn-mailer --commit --repository "$REPOS" --revision "$REV" --config "$REPOS/svnmailer.conf" &
#!/bin/sh REPOS="$1" REV="$2" export PYTHONPATH=/home/svnuser/root/usr/lib/python2.7/site-packages /home/svnuser/root/usr/bin/svn-mailer --commit --repository "$REPOS" --revision "$REV" --config "$REPOS/svnmailer.conf" &
chmod +x post-commit