[Kolab-devel] Is it possible to have root sent emails via kolab?
Richard Bos
ml at radoeka.nl
Wed Jan 30 22:39:56 CET 2008
Op Wednesday 30 January 2008 21:19:00 schreef Alain Spineux:
> > Anyway I think, may I state that there should be someway to force "root"
> > on the server machine to sent it's messages via kolab??
> >
> > At this point in the code it goes "wrong":
> > /usr/share/php5/PEAR/Kolab/Filter/Content.php
> > 89 $rc = verify_sender($this->_sasl_username,
> > $this->_sender,
> > 90 $from,
> > $this->_client_address); 91 if ($rc instanceof
> > PEAR_Error) {
> > 92 return $rc;
> > 93 } else if ($rc === true) {
> > 94 /* All OK, do nothing */
> > 95 } else if ($rc === false) {
> > 96 /* Reject! */
> > 97 $senderok = false;
> >
> > Would it be okay to after line '97' some code that does something like:
> >
> > if ($from === root at my_domain) {
> > $senderok = true;
> > } else {
> > $senderok = false;
> > }
> >
> > There is a "is_my_domain" is the same php file, so it should be
> > possible..... Or is the only possible when the kolab server is not build
> > up of multiple systems?
> >
> > I have Cc-ed the devel-list as this might be a developers issue now....
>
> Some error messages, log and information about your kolab version could
> help.
I have only log information (and of course the email (that I included in the
initial message) that is sent by system). I have included an excerpt of the
filter.log file (I inserted the blank lines, to make it better readable).
kolab is last beta version 2.2b3 (natively running on openSUSE-10.3)
> As a work around, you could create the root account; now ?
Yes, that is possible. But I want to know, whether I should open an issue for
this? Is there a chance that it will get solved?
--
Richard Bos
Without a home the journey is endless
-------------- next part --------------
Jan 30 17:15:03 Kolab Filter [debug] [horde] Arguments: Array
(
[0] => /var/lib/kolab/kolab-filter/kolabfilter.php
[1] => -h
[2] => mail.example.com
[3] => -s
[4] => root at example.com
[5] => -r
[6] => user at example.com
[7] => -c
[8] =>
[9] => -u
[10] =>
)
[on line 198 of "/usr/share/php5/PEAR/Kolab/Filter/Filter.php"]
Jan 30 17:15:03 Kolab Filter [debug] [horde] Filter_Content starting up (sender=root at example.com, recipients=user at example.com, client_address=) [on line 184 of "/usr/share/php5/PEAR/Kolab/Filter/Filter.php"]
Jan 30 17:15:03 Kolab Filter [debug] [horde] root at example.com is not an allowed From address for unauthenticated users. [on line 483 of "/usr/share/php5/PEAR/Kolab/Filter/Content.php"]
Jan 30 17:15:03 Kolab Filter [error] [horde] Invalid From: header. root at example.com (root) looks like a forged sender <ID: <20080130161503.386793FC58 at mail.example.com>> [on line 180 of "/usr/share/php5/PEAR/Kolab/Filter/Content.php"]
Jan 30 17:15:03 Kolab Filter [debug] [horde] Arguments: Array
(
[0] => /var/lib/kolab/kolab-filter/kolabmailboxfilter.php
[1] => -h
[2] => mail.example.com
[3] => -s
[4] =>
[5] => -r
[6] => user at example.com
[7] => -c
[8] =>
)
[on line 198 of "/usr/share/php5/PEAR/Kolab/Filter/Filter.php"]
Jan 30 17:15:03 Kolab Filter [debug] [horde] Filter_Incoming starting up (sender=, recipients=user at example.com, client_address=) [on line 184 of "/usr/share/php5/PEAR/Kolab/Filter/Filter.php"]
Jan 30 17:15:03 Kolab Filter [debug] [horde] Filter_Incoming successfully completed. [on line 155 of "/usr/share/php5/PEAR/Kolab/Filter/Incoming.php"]
Jan 30 17:15:03 Kolab Filter [info] [horde] Filter_Incoming successfully completed (sender=, recipients=user at example.com, client_address=, id=<20080130161503.692E73FC5C at mail.example.com>) [on line 163 of "/usr/share/php5/PEAR/Kolab/Filter/Filter.php"]
More information about the users
mailing list