What's new

Email server

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

rod

Occasional Visitor
Hello... Does anyone have implemented email capabilities on the router. So far I tryed xmail with no sucess. Also tried exim, xmail inside chrooted debian, and wasn't able to make it work. I get owncloud to use the phpmail and it says the email is sent, but it remains trapped in exims quewe. And for the receive part, is worst.... if I send emails to the asuscomm.com domain... they start to bounce after 2 days...and for 3 days.

I just need a working config file(s) for entware xmail or for exim/postfix inside chrooten debian 6.

Thanks in advance.

PS: I will use this to create a valid certificate from cacert.. the verify your server sending emails to the webmaster or root in the domain.
 
xmail works very well as a private E-mail server under Asuswrt-Merlin. I don't use it as an SMTP gateway to the outside world, though, just as a private E-mail server. Configuring it is easy, if you read the documentation.

The xmail configuration files get installed here: /opt/var/MailRoot.

Full documentation is at http://www.xmailserver.org/Readme.html. Read the CONFIGURATION section.

If you have issues with xmail not automatically starting/stopping along with the other Optware services on your router, here are my tweaks from years ago:

Integrating xmail with Optware

1. Add the service start/stop entries:
ln -s /opt/var/MailRoot/xmail /opt/etc/init.d/K27xmail
ln -s /opt/var/MailRoot/xmail /opt/etc/init.d/S43xmail

2. Replace the xmail script with my tweaked one, here:
/opt/var/MailRoot/xmail
Code:
#!/bin/sh
#
# skeleton	example file to build /etc/init.d/ scripts.
#		This file should be used to construct scripts for /etc/init.d.
#
#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#		Modified by Davide Libenzi <davidel@xmailserver.org>
#
# Version:	@(#)skeleton  1.8  03-Mar-1998  miquels@cistron.nl
#

XMAIL_ROOT=/opt/var/MailRoot
XMAIL_CMD_LINE="-SX 1 -Qn 1 -Yt 1 -Ln 1 -PX 1 -CX 1 -P- -S-"
PATH=$XMAIL_ROOT/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/opt/bin/XMail
NAME=XMail
DESC="XMail Server"

test -f $DAEMON || exit 0

set -e
ulimit -c 10000
ulimit -s 128

if [ -z "$1" ] ; then
    case `echo "$0" | sed 's:^.*/\(.*\):\1:g'` in
        S??*) rc="start" ;;
        K??*) rc="stop" ;;
        *) rc="usage" ;;
    esac
else
    rc="$1"
fi
                                   
start_xmail()
{
    MAIL_ROOT=$XMAIL_ROOT
    export MAIL_ROOT
    MAIL_CMD_LINE=$XMAIL_CMD_LINE
    export MAIL_CMD_LINE
    rm -f /var/run/$NAME.pid
    $DAEMON
    while [ ! -f /var/run/$NAME.pid ]
    do
        sleep 1
    done
}

stop_xmail()
{
    if [ -f /var/run/$NAME.pid ]
    then
        echo `date` > $XMAIL_ROOT/.shutdown
        kill -INT `cat /var/run/$NAME.pid`
        while [ -f $XMAIL_ROOT/.shutdown ]
        do
            sleep 1
        done
    fi
}


case "$rc" in
  start)
      echo -n "Starting $DESC: "
      start_xmail
      echo "$NAME.[" `cat /var/run/$NAME.pid` "]"
	;;
  stop)
      echo -n "Stopping $DESC: "
      stop_xmail
      echo "$NAME."
	;;
  #reload)
	#
	#	If the daemon can reload its config files on the fly
	#	for example by sending it SIGHUP, do it here.
	#
	#	If the daemon responds to changes in its config file
	#	directly anyway, make this a do-nothing entry.
	#
	# echo "Reloading $DESC configuration files."
	# start-stop-daemon --stop --signal 1 --quiet --pidfile \
	#	/var/run/$NAME.pid --exec $DAEMON
  #;;
  restart|force-reload)
	#
	#	If the "reload" option is implemented, move the "force-reload"
	#	option to the "reload" entry above. If not, "force-reload" is
	#	just the same as "restart".
	#
	echo -n "Restarting $DESC: "
	stop_xmail
	sleep 1
	start_xmail
        echo "$NAME.[" `cat /var/run/$NAME.pid` "]"	
	;;
  *)
	N=/etc/init.d/$NAME
	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac

exit 0


3. Enable the xmail service under Asuswrt-Merlin, as follows:
app_set_enabled.sh xmail yes
 
HI All,
Any suggestions how to configure DefaultSMTPGateways to deliver all external email to a mail server on port 465 with SSL?
My provider blocking port 25 and have no option using provider's server on port 25.
Thanks.
 
As many others who found all information to do here in this forum in the past and never realized the forum changed its mind last year.

Maybe he changed his router since his last posting 1 1/2 years ago and updated his signature now as it is not valid anymore?

I had about 10 routers in the last 5 years too, sell them if I get a good price and take another one cheaper.
But ok, I dont like but respect your comment.

@Yah: Sorry for beeing OT!
 
My signature was setup long time ago.....
Anyway, my issue is resolved by means of personal digging.
Thanks to M@rco - no solution provided here.
Thanks
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top