can't add domains

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

can't add domains

Norbert Lechner
Hi,

i installed exim4u on arch linux. i got a working exim setup, but
i can't add domains to the mysql database. i logged in to the exim4u
web interface with the siteadmin user and changed the password, which
got written to the users table. but when i try to add a local domain,
i get a blank page. no errors are printed to the http server log, only
a couple of warnings ( http://sprunge.us/aETF ). there are no errors in
the mysql and exim logs either.
the mail folder is /home/exim4u/mail and owned by user exim4u(150) and
group exim4u(150). permissions on the folder are 775. any ideas on how
to debug this ?

thx in advance,


Norbert Lechner


Reply | Threaded
Open this post in threaded view
|

Re: can't add domains

gldickens3
Administrator
Hi Norbert,

I am not sure what the problem is....

I would make sure that you have all of the php extensions installed that
are necessary for exim4u to work such as: php5-gettext, php5-session,
php5-dom and php5-posix.  I have seen the exim4u php code hang before
with a blank page when php extensions are missing. Sorry, but I do not
have any experience with arch linux.  The php script that is executed
when you add a new domain is siteadd.php which posts to
siteaddsubmit.php which updates the mysql database.  I would use
echo/print statements to determine where the code is hanging up
(probably somewhere in siteaddsubmit.php).  I anticipate that you may
find that it is hanging on a php function that is part of an extension
that is not yet installed on your system.  However, the problem could
also be something else.  I just don't know.

I am strongly suspicious that this must be some sort of apache/php
configuration issue on your arch linux box. Exim4U is a derivative work
of the Vexim project.  I went and looked at the Vexim archives and their
are several occurrences of people reporting this issue several years ago
such as:

http://www.exim-users.org/forums/showthread.php?t=55239&highlight=blank+page 
and;
http://www.exim-users.org/forums/showthread.php?t=52129&highlight=blank+page

However, nobody ever says how the problem was solved.  I suspect that it
was a configuration issue that was discovered.  Too bad those folks
never reported back their resolution.

Good luck and let me know how it goes.

Gordon



Norbert Lechner wrote:

> Hi,
>
> i installed exim4u on arch linux. i got a working exim setup, but
> i can't add domains to the mysql database. i logged in to the exim4u
> web interface with the siteadmin user and changed the password, which
> got written to the users table. but when i try to add a local domain,
> i get a blank page. no errors are printed to the http server log, only
> a couple of warnings ( http://sprunge.us/aETF ). there are no errors in
> the mysql and exim logs either.
> the mail folder is /home/exim4u/mail and owned by user exim4u(150) and
> group exim4u(150). permissions on the folder are 775. any ideas on how
> to debug this ?
>
> thx in advance,
>
>
> Norbert Lechner
>
> _______________________________________________
> users mailing list
> [hidden email]
> https://exim4u.org/mailman/listinfo/users



Reply | Threaded
Open this post in threaded view
|

Re: can't add domains

Norbert Lechner
Hi Gordon,

thank you for your help. You pointed me in the right direction. The
posix module was commented in php.ini. I didn't know I needed it.
However, I can now add domains and users. Only the mailroot isn't
properly recognized. value="<?php echo $mailroot; ?>"> in siteadd.php
prints the correct path, which is /home/exim4u/mail/, to the textfield.
But siteaddsubmit.php inserts /mydomain.tld into the domains table.
It looks like realpath ($_POST['maildir'] in siteaddsubmit.php returns
an empty string. Could another missing module be the reason for that ?

Thanks again,


Norbert Lechner

On 04/21/10 at 05:00pm, Gordon Dickens wrote:

> Hi Norbert,
>
> I am not sure what the problem is....
>
> I would make sure that you have all of the php extensions installed that
> are necessary for exim4u to work such as: php5-gettext, php5-session,
> php5-dom and php5-posix.  I have seen the exim4u php code hang before
> with a blank page when php extensions are missing. Sorry, but I do not
> have any experience with arch linux.  The php script that is executed
> when you add a new domain is siteadd.php which posts to
> siteaddsubmit.php which updates the mysql database.  I would use
> echo/print statements to determine where the code is hanging up
> (probably somewhere in siteaddsubmit.php).  I anticipate that you may
> find that it is hanging on a php function that is part of an extension
> that is not yet installed on your system.  However, the problem could
> also be something else.  I just don't know.
>
> I am strongly suspicious that this must be some sort of apache/php
> configuration issue on your arch linux box. Exim4U is a derivative work
> of the Vexim project.  I went and looked at the Vexim archives and their
> are several occurrences of people reporting this issue several years ago
> such as:
>
> http://www.exim-users.org/forums/showthread.php?t=55239&highlight=blank+page 
> and;
> http://www.exim-users.org/forums/showthread.php?t=52129&highlight=blank+page
>
> However, nobody ever says how the problem was solved.  I suspect that it
> was a configuration issue that was discovered.  Too bad those folks
> never reported back their resolution.
>
> Good luck and let me know how it goes.
>
> Gordon
>
>
>
> Norbert Lechner wrote:
> > Hi,
> >
> > i installed exim4u on arch linux. i got a working exim setup, but
> > i can't add domains to the mysql database. i logged in to the exim4u
> > web interface with the siteadmin user and changed the password, which
> > got written to the users table. but when i try to add a local domain,
> > i get a blank page. no errors are printed to the http server log, only
> > a couple of warnings ( http://sprunge.us/aETF ). there are no errors in
> > the mysql and exim logs either.
> > the mail folder is /home/exim4u/mail and owned by user exim4u(150) and
> > group exim4u(150). permissions on the folder are 775. any ideas on how
> > to debug this ?
> >
> > thx in advance,
> >
> >
> > Norbert Lechner
> >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > https://exim4u.org/mailman/listinfo/users
>
>
> _______________________________________________
> users mailing list
> [hidden email]
> https://exim4u.org/mailman/listinfo/users


Reply | Threaded
Open this post in threaded view
|

Re: can't add domains

gldickens3
Administrator
Hi Norbert,

I don't know why this would be happening. Make sure that you are adding
a "Local Domain" since the path is not stored for relay and alias
domains. Then, when you add the local domain, you are able to specify
the domain's mail directory in the Domain Mail Directory field in
siteadd.php which should default to whatever you specified in
config/variables.php (such as /home/exim4u/mail/). Also, make sure that
the UID/GID values are correctly set to the values for the exim4u
user/group on your system.

I guess that it could be a missing php extension module as you suggested
but that seems improbable at this point.  This maybe is an exim4u
configuration issue specific to your installation. However, I haven't
had this reported before so that seems improbable too.  Sorry that I am
not better help here but I am not sure what to recommend. Nevertheless,
please let me know how it goes and what you find.

Gordon




Norbert Lechner wrote:

> Hi Gordon,
>
> thank you for your help. You pointed me in the right direction. The
> posix module was commented in php.ini. I didn't know I needed it.
> However, I can now add domains and users. Only the mailroot isn't
> properly recognized. value="<?php echo $mailroot; ?>"> in siteadd.php
> prints the correct path, which is /home/exim4u/mail/, to the textfield.
> But siteaddsubmit.php inserts /mydomain.tld into the domains table.
> It looks like realpath ($_POST['maildir'] in siteaddsubmit.php returns
> an empty string. Could another missing module be the reason for that ?
>
> Thanks again,
>
>
> Norbert Lechner
>
> On 04/21/10 at 05:00pm, Gordon Dickens wrote:
>> Hi Norbert,
>>
>> I am not sure what the problem is....
>>
>> I would make sure that you have all of the php extensions installed that
>> are necessary for exim4u to work such as: php5-gettext, php5-session,
>> php5-dom and php5-posix.  I have seen the exim4u php code hang before
>> with a blank page when php extensions are missing. Sorry, but I do not
>> have any experience with arch linux.  The php script that is executed
>> when you add a new domain is siteadd.php which posts to
>> siteaddsubmit.php which updates the mysql database.  I would use
>> echo/print statements to determine where the code is hanging up
>> (probably somewhere in siteaddsubmit.php).  I anticipate that you may
>> find that it is hanging on a php function that is part of an extension
>> that is not yet installed on your system.  However, the problem could
>> also be something else.  I just don't know.
>>
>> I am strongly suspicious that this must be some sort of apache/php
>> configuration issue on your arch linux box. Exim4U is a derivative work
>> of the Vexim project.  I went and looked at the Vexim archives and their
>> are several occurrences of people reporting this issue several years ago
>> such as:
>>
>> http://www.exim-users.org/forums/showthread.php?t=55239&highlight=blank+page 
>> and;
>> http://www.exim-users.org/forums/showthread.php?t=52129&highlight=blank+page
>>
>> However, nobody ever says how the problem was solved.  I suspect that it
>> was a configuration issue that was discovered.  Too bad those folks
>> never reported back their resolution.
>>
>> Good luck and let me know how it goes.
>>
>> Gordon
>>
>>
>>
>> Norbert Lechner wrote:
>>> Hi,
>>>
>>> i installed exim4u on arch linux. i got a working exim setup, but
>>> i can't add domains to the mysql database. i logged in to the exim4u
>>> web interface with the siteadmin user and changed the password, which
>>> got written to the users table. but when i try to add a local domain,
>>> i get a blank page. no errors are printed to the http server log, only
>>> a couple of warnings ( http://sprunge.us/aETF ). there are no errors in
>>> the mysql and exim logs either.
>>> the mail folder is /home/exim4u/mail and owned by user exim4u(150) and
>>> group exim4u(150). permissions on the folder are 775. any ideas on how
>>> to debug this ?
>>>
>>> thx in advance,
>>>
>>>
>>> Norbert Lechner
>>>
>>> _______________________________________________
>>> users mailing list
>>> [hidden email]
>>> https://exim4u.org/mailman/listinfo/users
>>
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> https://exim4u.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> [hidden email]
> https://exim4u.org/mailman/listinfo/users



Reply | Threaded
Open this post in threaded view
|

Re: can't add domains

Norbert Lechner
Hi Gordon,

it turned out to be a permission issue. As far as I understand it,
realpath requires the user who executes the script (http in my case) to
have executable permissions on all directories in the hierarchy. The
arch linux default for home directory creation is 700. I think there
should be a permission check in siteaddsubmit.php, because if the
realpath function returns FALSE, the script tries to create /domain.tld.
I would have supplied a patch but unfortunately I don't know enough about
php. On a side note the display of "Anti-Virus: On" on line 48 of
userchange.php seems a bit strange, since it just gets printed without
a check.

Thanks a lot for your help,


Norbert


On 04/22/10 at 09:30am, Gordon Dickens wrote:

> Hi Norbert,
>
> I don't know why this would be happening. Make sure that you are adding
> a "Local Domain" since the path is not stored for relay and alias
> domains. Then, when you add the local domain, you are able to specify
> the domain's mail directory in the Domain Mail Directory field in
> siteadd.php which should default to whatever you specified in
> config/variables.php (such as /home/exim4u/mail/). Also, make sure that
> the UID/GID values are correctly set to the values for the exim4u
> user/group on your system.
>
> I guess that it could be a missing php extension module as you suggested
> but that seems improbable at this point.  This maybe is an exim4u
> configuration issue specific to your installation. However, I haven't
> had this reported before so that seems improbable too.  Sorry that I am
> not better help here but I am not sure what to recommend. Nevertheless,
> please let me know how it goes and what you find.
>
> Gordon
>
>
>
>
> Norbert Lechner wrote:
> > Hi Gordon,
> >
> > thank you for your help. You pointed me in the right direction. The
> > posix module was commented in php.ini. I didn't know I needed it.
> > However, I can now add domains and users. Only the mailroot isn't
> > properly recognized. value="<?php echo $mailroot; ?>"> in siteadd.php
> > prints the correct path, which is /home/exim4u/mail/, to the textfield.
> > But siteaddsubmit.php inserts /mydomain.tld into the domains table.
> > It looks like realpath ($_POST['maildir'] in siteaddsubmit.php returns
> > an empty string. Could another missing module be the reason for that ?
> >
> > Thanks again,
> >
> >
> > Norbert Lechner
> >
> > On 04/21/10 at 05:00pm, Gordon Dickens wrote:
> >> Hi Norbert,
> >>
> >> I am not sure what the problem is....
> >>
> >> I would make sure that you have all of the php extensions installed that
> >> are necessary for exim4u to work such as: php5-gettext, php5-session,
> >> php5-dom and php5-posix.  I have seen the exim4u php code hang before
> >> with a blank page when php extensions are missing. Sorry, but I do not
> >> have any experience with arch linux.  The php script that is executed
> >> when you add a new domain is siteadd.php which posts to
> >> siteaddsubmit.php which updates the mysql database.  I would use
> >> echo/print statements to determine where the code is hanging up
> >> (probably somewhere in siteaddsubmit.php).  I anticipate that you may
> >> find that it is hanging on a php function that is part of an extension
> >> that is not yet installed on your system.  However, the problem could
> >> also be something else.  I just don't know.
> >>
> >> I am strongly suspicious that this must be some sort of apache/php
> >> configuration issue on your arch linux box. Exim4U is a derivative work
> >> of the Vexim project.  I went and looked at the Vexim archives and their
> >> are several occurrences of people reporting this issue several years ago
> >> such as:
> >>
> >> http://www.exim-users.org/forums/showthread.php?t=55239&highlight=blank+page 
> >> and;
> >> http://www.exim-users.org/forums/showthread.php?t=52129&highlight=blank+page
> >>
> >> However, nobody ever says how the problem was solved.  I suspect that it
> >> was a configuration issue that was discovered.  Too bad those folks
> >> never reported back their resolution.
> >>
> >> Good luck and let me know how it goes.
> >>
> >> Gordon
> >>
> >>
> >>
> >> Norbert Lechner wrote:
> >>> Hi,
> >>>
> >>> i installed exim4u on arch linux. i got a working exim setup, but
> >>> i can't add domains to the mysql database. i logged in to the exim4u
> >>> web interface with the siteadmin user and changed the password, which
> >>> got written to the users table. but when i try to add a local domain,
> >>> i get a blank page. no errors are printed to the http server log, only
> >>> a couple of warnings ( http://sprunge.us/aETF ). there are no errors in
> >>> the mysql and exim logs either.
> >>> the mail folder is /home/exim4u/mail and owned by user exim4u(150) and
> >>> group exim4u(150). permissions on the folder are 775. any ideas on how
> >>> to debug this ?
> >>>
> >>> thx in advance,
> >>>
> >>>
> >>> Norbert Lechner
> >>>
> >>> _______________________________________________
> >>> users mailing list
> >>> [hidden email]
> >>> https://exim4u.org/mailman/listinfo/users
> >>
> >> _______________________________________________
> >> users mailing list
> >> [hidden email]
> >> https://exim4u.org/mailman/listinfo/users
> >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > https://exim4u.org/mailman/listinfo/users
>
>
> _______________________________________________
> users mailing list
> [hidden email]
> https://exim4u.org/mailman/listinfo/users


Reply | Threaded
Open this post in threaded view
|

Re: can't add domains

gldickens3
Administrator
Hi Norbert,

Glad that you figured it out and thanks for reporting your findings and
the solution.

Thanks for your other comments and recommendations as well.

Gordon



Norbert Lechner wrote:

> Hi Gordon,
>
> it turned out to be a permission issue. As far as I understand it,
> realpath requires the user who executes the script (http in my case) to
> have executable permissions on all directories in the hierarchy. The
> arch linux default for home directory creation is 700. I think there
> should be a permission check in siteaddsubmit.php, because if the
> realpath function returns FALSE, the script tries to create /domain.tld.
> I would have supplied a patch but unfortunately I don't know enough about
> php. On a side note the display of "Anti-Virus: On" on line 48 of
> userchange.php seems a bit strange, since it just gets printed without
> a check.
>
> Thanks a lot for your help,
>
>
> Norbert
>
>
> On 04/22/10 at 09:30am, Gordon Dickens wrote:
>> Hi Norbert,
>>
>> I don't know why this would be happening. Make sure that you are adding
>> a "Local Domain" since the path is not stored for relay and alias
>> domains. Then, when you add the local domain, you are able to specify
>> the domain's mail directory in the Domain Mail Directory field in
>> siteadd.php which should default to whatever you specified in
>> config/variables.php (such as /home/exim4u/mail/). Also, make sure that
>> the UID/GID values are correctly set to the values for the exim4u
>> user/group on your system.
>>
>> I guess that it could be a missing php extension module as you suggested
>> but that seems improbable at this point.  This maybe is an exim4u
>> configuration issue specific to your installation. However, I haven't
>> had this reported before so that seems improbable too.  Sorry that I am
>> not better help here but I am not sure what to recommend. Nevertheless,
>> please let me know how it goes and what you find.
>>
>> Gordon
>>
>>
>>
>>
>> Norbert Lechner wrote:
>>> Hi Gordon,
>>>
>>> thank you for your help. You pointed me in the right direction. The
>>> posix module was commented in php.ini. I didn't know I needed it.
>>> However, I can now add domains and users. Only the mailroot isn't
>>> properly recognized. value="<?php echo $mailroot; ?>"> in siteadd.php
>>> prints the correct path, which is /home/exim4u/mail/, to the textfield.
>>> But siteaddsubmit.php inserts /mydomain.tld into the domains table.
>>> It looks like realpath ($_POST['maildir'] in siteaddsubmit.php returns
>>> an empty string. Could another missing module be the reason for that ?
>>>
>>> Thanks again,
>>>
>>>
>>> Norbert Lechner
>>>
>>> On 04/21/10 at 05:00pm, Gordon Dickens wrote:
>>>> Hi Norbert,
>>>>
>>>> I am not sure what the problem is....
>>>>
>>>> I would make sure that you have all of the php extensions installed that
>>>> are necessary for exim4u to work such as: php5-gettext, php5-session,
>>>> php5-dom and php5-posix.  I have seen the exim4u php code hang before
>>>> with a blank page when php extensions are missing. Sorry, but I do not
>>>> have any experience with arch linux.  The php script that is executed
>>>> when you add a new domain is siteadd.php which posts to
>>>> siteaddsubmit.php which updates the mysql database.  I would use
>>>> echo/print statements to determine where the code is hanging up
>>>> (probably somewhere in siteaddsubmit.php).  I anticipate that you may
>>>> find that it is hanging on a php function that is part of an extension
>>>> that is not yet installed on your system.  However, the problem could
>>>> also be something else.  I just don't know.
>>>>
>>>> I am strongly suspicious that this must be some sort of apache/php
>>>> configuration issue on your arch linux box. Exim4U is a derivative work
>>>> of the Vexim project.  I went and looked at the Vexim archives and their
>>>> are several occurrences of people reporting this issue several years ago
>>>> such as:
>>>>
>>>> http://www.exim-users.org/forums/showthread.php?t=55239&highlight=blank+page 
>>>> and;
>>>> http://www.exim-users.org/forums/showthread.php?t=52129&highlight=blank+page
>>>>
>>>> However, nobody ever says how the problem was solved.  I suspect that it
>>>> was a configuration issue that was discovered.  Too bad those folks
>>>> never reported back their resolution.
>>>>
>>>> Good luck and let me know how it goes.
>>>>
>>>> Gordon
>>>>
>>>>
>>>>
>>>> Norbert Lechner wrote:
>>>>> Hi,
>>>>>
>>>>> i installed exim4u on arch linux. i got a working exim setup, but
>>>>> i can't add domains to the mysql database. i logged in to the exim4u
>>>>> web interface with the siteadmin user and changed the password, which
>>>>> got written to the users table. but when i try to add a local domain,
>>>>> i get a blank page. no errors are printed to the http server log, only
>>>>> a couple of warnings ( http://sprunge.us/aETF ). there are no errors in
>>>>> the mysql and exim logs either.
>>>>> the mail folder is /home/exim4u/mail and owned by user exim4u(150) and
>>>>> group exim4u(150). permissions on the folder are 775. any ideas on how
>>>>> to debug this ?
>>>>>
>>>>> thx in advance,
>>>>>
>>>>>
>>>>> Norbert Lechner
>>>>>
>>>>> _______________________________________________
>>>>> users mailing list
>>>>> [hidden email]
>>>>> https://exim4u.org/mailman/listinfo/users
>>>> _______________________________________________
>>>> users mailing list
>>>> [hidden email]
>>>> https://exim4u.org/mailman/listinfo/users
>>> _______________________________________________
>>> users mailing list
>>> [hidden email]
>>> https://exim4u.org/mailman/listinfo/users
>>
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> https://exim4u.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> [hidden email]
> https://exim4u.org/mailman/listinfo/users