#:ipnum::: -> smtp:ipnum:25:2
#::,smtps::465:2 -> smtp:0.0.0.0:25:2 + smtps::465:2
#:: -> smtp:0.0.0.0:25:2
-#SMTPPORTS="::"
+#Examples
#SMTPPORTS=":127.127.10.25:1025:,smtps:127.127.10.25:1026:1"
-SMTPPORTS=":127.127.10.25:1025:"
+#SMTPPORTS=":127.127.10.25:1025:"
#SMTPPORTS="smtps:127.127.10.25:1065:1"
+#Defaults
+SMTPPORTS=":::5,smtps::465:3,smtp::587:2"
#------------------------------------------------
#Defining application name
APPNAME=mailleur
#defining default domain
-DFLTDOMAIN="example.com"
+DFLTDOMAIN="localdomain"
#------------------------------------------------
#Defining SERVER mode Certificate data
CA_ROOT_SRV="./certs/root-safe_CA.pem"
%attr(0755,%{name},mail) %{_sbindir}/sender
%attr(0755,%{name},mail) %{_sbindir}/sorter
%attr(0754,root,root) %{_libdir}/%{name}/shell/*.sh
-%attr(0754,root,root) %{_libdir}/%{name}/support/starting.sh
+%attr(0754,root,root) %{_libdir}/%{name}/support/addconfig.sh
%attr(0754,root,root) %{_libdir}/%{name}/support/crdb.sh
+%attr(0754,root,root) %{_libdir}/%{name}/support/starting.sh
%attr(0755,%{name},mail) %dir %{spooldir}/%{name}/{queue,in.log,out.log}
#-----------------------------------------------------------------------------
--- /dev/null
+! /usr/bin/bash
+#-----------------------------------------------------------------
+#Shell script to add local information to configuration file
+#-----------------------------------------------------------------
+#loading the variable value
+LOCDOM=`dnsdomainname`
+
+sed -i \
+ -e "s/DFLTDOM=.*$/DFLTDOMAIN=$LOCDOM/" \
+ /etc/$APPNAME/$APPNAME.conf
{
if [ ! -f /etc/$APPNAME/config.done ] ; then
+ /usr/lib/$APPNAME/support/addconfig.sh
do_mkdb ;
case "$OS" in
osukiss )