2013年10月7日月曜日

gitlab6.1 on ubuntu12.04でメール通知を有効にする

gitlab6.1でメール通知を有効にする方法。

gitlab/config/environments/production.rbを編集する。

sudo nano -u git production.rbで編集。

  config.action_mailer.delivery_method = :sendmail
  # Defaults to:
  # # config.action_mailer.sendmail_settings = {
  # #   location: '/usr/sbin/sendmail',
  # #   arguments: '-i -t'
  # # }

コメントアウトされている,config.action_mailer.sendmail_settings以下を有効にすればよい。

locationは,sendmailの場所を書く。ubuntu上で使う場合には,/usr/sbin/sendmailのままで問題がない。

なお,ubuntuで,postfixをインストールした場合,sendmailの実態は,postfixになる模様。

$man sendmail

DESCRIPTION
       The Postfix sendmail(1) command implements the Postfix to Sendmail com‐
       patibility interface.  For the  sake  of  compatibility  with  existing
       applications,  some  Sendmail  command-line  options are recognized but
       silently ignored.

0 件のコメント:

コメントを投稿