[xmail] Re: SMTP auth on another server
-Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de fred Envoy=E9 : vendredi 4 avril 2008 19:01 =C0 : xmail@xmailserver.org Objet : [xmail] SMTP auth on another server Hi, Just a quick question about what I need to do in order to have a = second server only for SMTP Auth for the users I have on xmail pop server. I understand the smtp server must have a copy of the usernames=20 and passwords but is copying: aliasdomain.tab aliases.tab domains.tab mailusers.tab to the smtp server is enough to replicate xmail's user base?=20 Or I need to copy the whole directory.. Anyone have any advice? Thanks -fred As these files are 'indexed' your can't simply copy them ! And even if you copy them and the indexes files, to run correctly xmail needs 'domain' directories and 'mailbox' directories present too. What is exactly the purpose to have two servers in your setup ? mx backup ? Francis - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Help with Gentoo install
-Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de J. Envoy=E9 : dimanche 6 avril 2008 18:54 =C0 : xmail@xmailserver.org Objet : [xmail] Re: Help with Gentoo install I'm pretty sure the XMail binary is where it should be=20 (/var/MailRoot/bin), because it works when I run it under the test mode suggested in the xmail handbook=20 (the actual lines that work are mentioned below). I may have set something wrong in the=20 startup script or in /etc/conf.d/xmail/. Here's my conf.d/xmail: #CHROOT=3D/chroot/xmail CHROOT=3D/var/MailRoot/xmail MAIL_ROOT=3D/var/MailRoot export CHROOT MAIL_ROOT # variables for simplicity sake MAIL_NAME=3DXMail MAIL_EXEC=3D/var/MailRoot/bin/$MAIL_NAME MAIL_PID=3D/var/run/$MAIL_NAME.pid # set your options here MY_SMTP=3D29025 MY_POP3=3D29110 MY_FING=3D29079 MY_CTRL=3D29617 MAIL_CMD_LINE=3D -Pl -Pp $MY_POP3 -Sl -Sp $MY_SMTP -Ql -Fl -Fp=20 $MY_FING -Cl -Cp $MY_CTRL -Ll And what is the startup script content ? - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP auth on another server
Thanks for your reply Francis, I need two servers because I don't want all my users to bow down my server with their outgoing emails, right now they use their ISP outgoing servers and I am scared of telling them to use mine. I wanted to only run xmail smtp's service on that second server, what solutions I have then? Thanks -fred -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of CLEMENT Francis Sent: 7 avril 2008 04:20 To: 'xmail@xmailserver.org' Subject: [xmail] Re: SMTP auth on another server -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de fred Envoy=E9 : vendredi 4 avril 2008 19:01 =C0 : xmail@xmailserver.org Objet : [xmail] SMTP auth on another server Hi, Just a quick question about what I need to do in order to have a = second server only for SMTP Auth for the users I have on xmail pop server. I understand the smtp server must have a copy of the usernames=20 and passwords but is copying: aliasdomain.tab aliases.tab domains.tab mailusers.tab to the smtp server is enough to replicate xmail's user base?=20 Or I need to copy the whole directory.. Anyone have any advice? Thanks -fred As these files are 'indexed' your can't simply copy them ! And even if you copy them and the indexes files, to run correctly xmail needs 'domain' directories and 'mailbox' directories present too. What is exactly the purpose to have two servers in your setup ? mx backup ? Francis - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Help with Gentoo install
#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-mta/xmail/files/xmail.initd,v 1.3 2005/06/06 13:22:45 ticho Exp $ depend() { need net logger use dns } checkconfig() { if [ $MAIL_NAME == ] ; then eerror MAIL_NAME not set - check your /etc/conf.d/xmail file. fi if [ $MAIL_ROOT == ] ; then eerror MAIL_ROOT not set - check your /etc/conf.d/xmail file. fi if [ $MAIL_PID == ] ; then eerror MAIL_PID not set - check your /etc/conf.d/xmail file. fi if [ $MAIL_CMD_LINE == ] ; then eerror MAIL_CMD_LINE not set - check your /etc/conf.d/xmail file. fi if [ $MAIL_EXEC == ] ; then eerror MAIL_EXEC not set - check your /etc/conf.d/xmail file. fi if [ ! -f ${CHROOT}${MAIL_EXEC} ] ; then eerror $MAIL_EXEC not found! fi set -e ulimit -c 2 } start() { checkconfig || return 1 ebegin Starting $MAIL_NAME CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT=\([^]\+\)/\1/p' /etc/conf.d/xmail 2/dev/null` EXIST=no if [ -z ${CHROOT} -a ! -d /chroot/xmail ]; then CHROOT=/chroot/xmail elif [ -d ${CHROOT} ]; then EXISTS=yes fi if [ ! $EXISTS = yes ]; then einfo; einfo Setting up the chroot directory... mkdir -m 700 -p ${CHROOT} fi for subdir in dev lib var/run var/MailRoot tmp do if [ ! -d ${CHROOT}${subdir} ] then mkdir -p ${CHROOT}/${subdir} fi done if [ ! -c ${CHROOT}/dev/null ] then mknod ${CHROOT}/dev/null c `\ ls -Ll /dev/null |\ awk '{print sub(,,,$5) $6}'` fi cp -R -u /etc/xmail/* ${CHROOT}${MAIL_ROOT} chown -R xmail:xmail ${CHROOT} cp `ldd ${CHROOT}${MAIL_ROOT}/bin/XMail |\ sed -n 's/[[:blank:]]*\([^=]*\=\)\? \([^(]*\).*/\2/p;'` ${CHROOT}/lib/ start-stop-daemon --start -c xmail -r ${CHROOT} \ --startas ${MAIL_EXEC} --pidfile=${MAIL_PID} -- \ ${MAIL_CMD_LINE} /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 110 -j REDIRECT --to-ports 29110 /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-ports 29025 /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 79 -j REDIRECT --to-ports 29079 eend $? Failed to start $MAIL_NAME } stop() { ebegin Stopping $MAIL_NAME /sbin/iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 110 -j REDIRECT --to-ports 29110 /sbin/iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-ports 29025 /sbin/iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 79 -j REDIRECT --to-ports 29079 start-stop-daemon --stop --quiet --pidfile=${CHROOT}${MAIL_PID} --name $MAIL_NAME --retry 120 --oknodo -- signal 2 cd ${CHROOT}${MAIL_ROOT} for i in *\.tab do cp -u -f $i /etc/xmail/ done eend $? Failed to stop $MAIL_NAME } --- CLEMENT Francis [EMAIL PROTECTED] wrote: -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de J. Envoy=E9 : dimanche 6 avril 2008 18:54 =C0 : xmail@xmailserver.org Objet : [xmail] Re: Help with Gentoo install I'm pretty sure the XMail binary is where it should be=20 (/var/MailRoot/bin), because it works when I run it under the test mode suggested in the xmail handbook=20 (the actual lines that work are mentioned below). I may have set something wrong in the=20 startup script or in /etc/conf.d/xmail/. Here's my conf.d/xmail: #CHROOT=3D/chroot/xmail CHROOT=3D/var/MailRoot/xmail MAIL_ROOT=3D/var/MailRoot export CHROOT MAIL_ROOT # variables for simplicity sake MAIL_NAME=3DXMail MAIL_EXEC=3D/var/MailRoot/bin/$MAIL_NAME MAIL_PID=3D/var/run/$MAIL_NAME.pid # set your options here MY_SMTP=3D29025 MY_POP3=3D29110 MY_FING=3D29079 MY_CTRL=3D29617 MAIL_CMD_LINE=3D -Pl -Pp $MY_POP3 -Sl -Sp $MY_SMTP -Ql -Fl -Fp=20 $MY_FING -Cl -Cp $MY_CTRL -Ll And what is the startup script content ? - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL
[xmail] Re: SMTP auth on another server
OK, I see, even if I don't think that using only one server will 'bow down' it. I use only one xmail server for more than 500 users, and never had problems with xmail and the server usage. The Internet available bandwidth is more likely the problem :) But I will give you some possibilities : first option : For the second 'sending only' server, create only one mailbox account that will be used as the login/pass for auth. Eventualy, if you have multiple different branches/companies/services and want to have some log for them, create one 'sending only' mailbox per branche/companie/service. second option : schedule (or manualy started at each user or domain change in primary server) an script that will : - stop the two xmail services on each server - copy from primary to second 'send only' : mailroot files : domains.tab, mailusers.tab mailroot domains sub-dir : complete structure and files (except mailbox contents not needed on second 'send only' server) - before restarting the second server, delete its mailroot\tabindex sub-dir content (the indexes will be recreated from new tab files) - restart the two xmail services (it could be possible to not stop at all the primary server, but you need to be sure that non xmail domain/account is changed when this script run, to avoid bad contents :) ) third option 'the best' :) : create at script that enumerate the domain and accounts of first server (preferred method is from xmail ctrl interface or ctrlclnt tool) and create missing domains accounts/delete no more present domains accounts on second server. You can then schedule it on regular basis on start it manually when dom/accounts changes on first server. I remind that a 'sync' script was written for 'mx backups', that could be adapted to do only this create/delete 'sync' between the two servers (it does many other thinks) but was written for win platforms in vb.net. If you want to try 'mono' (Net Framework implementation for linux/bsd) you could adapt it. Or you could just have a look on its code to seen what it does. Francis -Message d'origine- De: [EMAIL PROTECTED] A: xmail@xmailserver.org Date: 07/04/08 15:21 Objet: [xmail] Re: SMTP auth on another server Thanks for your reply Francis, I need two servers because I don't want all my users to bow down my server with their outgoing emails, right now they use their ISP outgoing servers and I am scared of telling them to use mine. I wanted to only run xmail smtp's service on that second server, what solutions I have then? Thanks -fred -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of CLEMENT Francis Sent: 7 avril 2008 04:20 To: 'xmail@xmailserver.org' Subject: [xmail] Re: SMTP auth on another server -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de fred Envoy=E9 : vendredi 4 avril 2008 19:01 =C0 : xmail@xmailserver.org Objet : [xmail] SMTP auth on another server Hi, Just a quick question about what I need to do in order to have a = second server only for SMTP Auth for the users I have on xmail pop server. I understand the smtp server must have a copy of the usernames=20 and passwords but is copying: aliasdomain.tab aliases.tab domains.tab mailusers.tab to the smtp server is enough to replicate xmail's user base?=20 Or I need to copy the whole directory.. Anyone have any advice? Thanks -fred As these files are 'indexed' your can't simply copy them ! And even if you copy them and the indexes files, to run correctly xmail needs 'domain' directories and 'mailbox' directories present too. What is exactly the purpose to have two servers in your setup ? mx backup ? Francis - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Help with Gentoo install
I'm not a chroot specialist, but your problem should be at least in the bad paths in the various env vars found on conf.d/xmail (CHROOT, ...). I think you could refer to this excelent paper from Sergey Ivanov : http://www.spectr.org/~seriv/HowTo-Chrooted-XMail.html You will find detailled instructions to run xmail in chroot mode on Gentoo :) And better, directly use the ebuild for xmail in Gentoo portage. It will install xmail 'chrooted' on Gentoo (use same technics from the 'paper') Francis - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]