Allow to configure and use mail relay server

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Some further cleanup

Signed-off-by: Sven Strickroth <email@cs-ware.de>