Mail server module proposal (fate #307142)
---------------------------------------------

  Copyright © 2009-10 Novell, Inc.

  Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or (at your option) version 1.3; with the Invariant Section being this copyright notice and license. A copy of the license version 1.2 is included in the section entitled "GNU Free Documentation License". 

Tasks: 
    - configure the SMTP server used for sending mails:
	- smtp server address
	- authentication fields

Model

    singleton class Mail
    
    attributes
	string smtp_server
	string login
	string password
	string tls

    access to the system:
	YaPI::MailServer
	YaPI::SERVICES


Policies

    org.opensuse.yast.modules.yapi.mail.read
    org.opensuse.yast.modules.yapi.mail.write

API

    URL: /mail

    REST service pseudo-code:

    # GET method
    def show

	read and return current settings

    # PUT method
    def update (params)

	save new settings: smtp server address and credentials
	if there was a change, reload of postfix service is needed
