12 Sep 2012

Configure your Test Mail Server for Apache Syncope

Written by mdisabatino

This post will show you how to create a mail server for test Apache Syncope notification.


Install and configure Postfix on Debian

  1. Install Postfix
    apt-get install postfix
  2. Install PCRE (Perl Compatible Regular Expressions) map support
    apt-get install postfix-pcre
  3. Create a new file /etc/postfix/virtual
    admin@postfixtest.org admin
    user@postfixtest.org user
  4. /.*/ catchall
  5. Configure /etc/postfix/main.cf
    # Debian specific:  Specifying a file name will cause the first
                  # line of that file to be used as the name.  The Debian default
                  # is /etc/mailname.
                  myorigin = /etc/mailname
                  smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
                  biff = no
                  # appending .domain is the MUA's job.
                  append_dot_mydomain = no
                  # Uncomment the next line to generate "delayed mail" warnings
                  #delay_warning_time = 4h
                  readme_directory = no
                  # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
                  # information on enabling SSL in the smtp client.
                  myhostname = debian
                  alias_maps = hash:/etc/aliases
                  alias_database = hash:/etc/aliases
                  mydestination = $myhostname  localhost postfixtest.org
                  mynetworks =
                  mydomain = postfixtest.org
                  mailbox_command = procmail -a "$EXTENSION"
                  mailbox_size_limit = 0
                  mail_spool_directory = /var/mail
                  home_mailbox = Maildir/
                  recipient_delimiter = +
                  default_transport = error
                  relay_transport = error
                  inet_interfaces =,
                  virtual_alias_maps = pcre:/etc/postfix/virtual
  6. Reload Postfix Server postfix reload

Apache Syncope Notification

This page aims to show how to configure notifications by using Apache Syncope.

  1. Click on Configuration Tab
  2. Click on Notification Tab
  3. Click on Create new notification button
  4. Click on About and Event subtab and provide a condition to filter users interested by the specified events.
  5. Click on Recipients and configure the recipient of the mail

Test notification with Apache Syncope

Now you can check if everything works fine.

  1. Create new user and assign resource-testdb
  2. Go to Tasks - Notification Tasks
  3. Check Last status column
  4. Check if the mail has been sent
    mail -u catchall or vi /var/mail/catchall

« Return