Skip to content

paulstansifer/reminded_by_vegans

Repository files navigation


Setting up the database:

  paul@saffron:~$ sudo -s
  root@saffron:~# su postgres
  postgres@saffron:/home/paul$ psql 
  psql (8.4.5)
  Type "help" for help.
  postgres=# create user vegans with password 'local_login_password';
  CREATE ROLE
  postgres=# create database rbv;
  CREATE DATABASE
  postgres=# grant all privileges on database rbv to vegans;
  GRANT


Setting up mail:

  Set up Haskell:
    $ export PATH="$HOME/.cabal/bin:$PATH"
    $ cabal update
    $ cabal install haskelldb-hdbc-postgresql
    $ cabal install regex-pcre
    $ cabal install time
    $ cabal install happstack
    $ cabal install happstack-util


  Compile:
    $ ghc --make 


  Set up Perl:
    $ sudo cpan
    
    Then:
      > install DBI
      > install DBD::Pg
      > install Email::Address
  
  Install postfix:
    $ sudo apt-get install postfix

  Add to /etc/postfix/main.cf:
    virtual_alias_maps = hash:/etc/postfix/virtual
  Also, add the hostnames people will use to mail this machine to 'mydestination'.


  Create /etc/postfix/virtual with the contents:
    postmaster@saffron admin
    [email protected] admin
    admin@saffron admin
    [email protected] admin

    @september.endoftheinternet.org reminded_by_vegans
    @saffron reminded_by_vegans

  Add to /etc/aliases:
    reminded_by_vegans: |/home/paul/src/reminded_by_vegans/receive_mail.pl
  
  Notify Postfix:
    $ sudo postmap /etc/postfix/virtual
    $ sudo postalias /etc/alias
    $ sudo /etc/init.d/postfix restart

  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published