View Full Version : Email not working - using Xmail
dangermouse
25-05-06, 07:25 AM
I'm using Xmail and there are not any messages being sent out.
It's as if it's not recognizing the Xmail (sendmail.xmail) within the PHP.ini.
dbotham
26-05-06, 09:28 AM
We are going to need a little more to go on... What logs does your mail systems use? What is in those logs? What other trouble shooting have you done and what data have you gathered?
dave...
dangermouse
26-05-06, 11:20 PM
Dave,
Xmail uses a few different logs - SPAM, SMTP, Control, LMail, Smail. I'm not fully aware of which one logs what (other than the obvious ones), but in this instance they are not catching anything.
So, your question jarred me to look at other logs, and low and behold in the http/error.log there was the following:
/documentroot/dotproject/modules/tasks/do_task_aed.php(47): No pre_save functions.
cannot find environment variable: MAIL_ROOT
cannot find environment variable: MAIL_ROOT
cannot find environment variable: MAIL_ROOT
I'm going to see if there's anything I can find/figure out on this, any help is greatly appreciated.
dangermouse
27-05-06, 12:25 AM
Apparently the MAIL_ROOT var is not getting passed properly.
I know it's working because I have 2 sites on my server that are able to send and receive email. The dotproject is actually in a directory off the root of one of these sites.
dbotham
27-05-06, 12:34 AM
In the System Administration module, what is your mail transport sent to?
dave...
dangermouse
07-06-06, 12:19 AM
Sorry for the late replies, it appears I'm not receiving the updates in the daily message.
My setting for email within the System Admin is PHP default.
dbotham
07-06-06, 12:49 AM
cannot find environment variable: MAIL_ROOT
cannot find environment variable: MAIL_ROOT
cannot find environment variable: MAIL_ROOT
OK, it looks like xmail might not be starting at boot. That is to say, there is an /etc/rc.d/init.d/xmail startup script where this environmental variable is set. You need to make sure this script is both in place and set to start at boot time.
You can get a copy of a sample startup script from:
http://www.xmailserver.org/
Look for the link:
Linux/FreeBSD/OpenBSD/Solaris/OSX/NetBSD
That is the source in tgz format. Untar it and cd into the distribution directory:
[root@fc4-dev xmail]# tar zxf xmail-1.22.tar.gz
[root@fc4-dev xmail]# cd xmail-1.22
Once you have a copy of the xmail startsup script you should do something like the following:
cp xmail /etc/rc.d/init.d/xmail
ln -s ../init.d/xmail /etc/rc.d/rc0.d/K10xmail
ln -s ../init.d/xmail /etc/rc.d/rc1.d/K10xmail
ln -s ../init.d/xmail /etc/rc.d/rc2.d/K10xmail
ln -s ../init.d/xmail /etc/rc.d/rc6.d/K10xmail
ln -s ../init.d/xmail /etc/rc.d/rc3.d/S90xmail
ln -s ../init.d/xmail /etc/rc.d/rc4.d/S90xmail
ln -s ../init.d/xmail /etc/rc.d/rc5.d/S90xmail
These symbolic links will make xmail stop (Kill) when entering run levels 0, 1, 2, & 6 and start in the networked multi user run levels of 3, 4, & 5.
hth,
Dave...
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.