Opened 9 years ago

Closed 9 years ago

#27 closed bug (fixed)

Ror-farm: define MAILTO for 'ror' user crontab

Reported by: Vincent Caron Owned by: Lucas Bonnet
Priority: minor Component: RoR Farm
Keywords: Cc: Benjamin Linet, stephane.akkaoui@…


Ror-farm templates currently use nullmailer in the vserver context to synchronously transfer the mail to the root server MTA (it's local, hence as fast as possible).

Nullmailer defaults to a single adress for 'root' or undefined users, which has obviously been mapped to Bearstech's own root email collector.

OTOH, the user crontab should send mail to the user. But MAILTO is undefined in the default crontab, and the root collector receives various stuff about user's applications and custom scripts.

Fix proposal:

  • Define a MAILTO=null@… in the template crontab for the 'ror' user; apply on existing instances if MAILTO is undefined
  • Find a way to automatically grab the user's email adress (from the Redmine account) and use it in the crontab's MAILTO

Change History (5)

comment:1 Changed 9 years ago by Vincent Caron

Cc: <stephane.akkaoui@… added

comment:2 Changed 9 years ago by Vincent Caron

Cc: stephane.akkaoui@… added; <stephane.akkaoui@… removed

comment:3 Changed 9 years ago by lucas

(In [614]) redmine-find: extract and pass mail address to ror-farm-add (see #27)

comment:4 Changed 9 years ago by lucas

(In [615]) ror-farm-add: add crontab template (see #27)

comment:5 Changed 9 years ago by Lucas Bonnet

Resolution: fixed
Status: newclosed

Done :

  • added to all crontabs not already containing a MAILTO directive
  • ror-farm-add deploys a crontab template containing the e-mail address of the rorette owner
Note: See TracTickets for help on using tickets.