[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [magicmail-users] segfaults
Strange.. We did have a bug in previous versions to 0.7.1 that caused a
segfault, if control files missing, but that was corrected. However, this
MAY be a new bug with a dependency on 'ip2country' that might have snuck in
from our commercial version. Please check to see if 'ip2country' and
'gethostmxs' from the script directory are correctly installed and used.
Reviewing the INSTALL docs, I do not see anything about installing the 2
scripts, so I suggest that you copy the two scripts to /usr/local/bin and let
me know if that solves it for you.
PS You MUST have a control file to indicate the MSD_COUNTRY_CODE_PROG
(This was missing from the INSTALL descriptions)
This should be in /etc/magic-mail/control directory as
"country_code_prog"
ie
`echo "/usr/local/bin/ip2country" > /etc/magic-mail/control/country_code_prog`
I see that we need to fix up config_defaults.h to indicate the correct program
You can do this yourself to test, but if you have the control file, it will
ignore this problem. Actually, while we are at it, we should fix gethostmxs
as well, Same problem. Control File is called
'/etc/magic-mail/control/get_mx_rec_prog'
Fix via ...
echo "/usr/local/bin/gethostmxs" > /etc/magic-mail/control/get_mx_rec_prog
Or apply patch below, and do a make clean, make all
------------------------- Start Patch Code -------------------------
--- config_defaults.h Thu May 8 14:14:09 2003
+++ config_defaults.h.new Fri May 16 17:40:56 2003
@@ -82,8 +82,8 @@
#define MSD_ADD_CHECK_FLAGS_DEFAULT (0)
#define MSD_CHECK_FLAG_SEP_DEFAULT "-%-"
-#define MSD_COUNTRY_CODE_PROG_DEFAULT "echo \"**\""
+#define MSD_COUNTRY_CODE_PROG_DEFAULT "/usr/local/bin/ip2country"
-#define MSD_GET_MX_REC_PROG_DEFAULT "/bin/false"
+#define MSD_GET_MX_REC_PROG_DEFAULT "/usr/local/bin/gethostmxs"
#endif
--------------------------- End Patch Code -------------------------
Thanks for pointing this out, and we will patch the sources and get another
release out this week.
On Friday 16 May 2003 16:14, Jon Griffin wrote:
> On further investigation, here is the error:
> May 16 16:08:38 zuma msd[32722]: internal server error, segfault
> May 16 16:08:54 zuma msd[32739]: country code lookup program does not
> exist! setting to default: ech
> o "**"
> -----
>
> On gentoo 2.4.19 kernel,
> all versions of magic-smtpd segfault and return 500.
> If I run this manually it works fine, but when called by qmail I get the
> problem.
>
> I am not sure what else to do as I don't have any log info other than
> the return from imap.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: magicmail-users-unsubscribe@linuxmagic.com
> For additional commands, e-mail: magicmail-users-help@linuxmagic.com
--
--
"Catch the Magic of Linux..."
--------------------------------------------------------
Michael Peddemors - Senior Consultant
LinuxAdministration - Internet Services
NetworkServices - Programming - Security
Wizard IT Services http://www.wizard.ca
Linux Support Specialist - http://www.linuxmagic.com
LinuxMagic is a Registered TradeMark of Wizard Tower TechnoServices Ltd.
--------------------------------------------------------
(604)589-0037 Beautiful British Columbia, Canada
- References:
- segfaults
- From: "Jon Griffin" <jon@jongriffin.com>