[Kolab-devel] [issue2438] allow root to sent email from the kolab server
Richard Bos
kolab-issues at intevation.de
Fri Feb 1 12:51:43 CET 2008
New submission from Richard Bos <ml at radoeka.nl>:
The problem is that some native OS services and commands will try to
send email, but this email is rejected by the system.
To circumvent the problem I thought of added root at domain.tld as alias to
my account, but the email is marked as a forged email, e.g.:
---------------
This is the mail system at host mail.example.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<user at example.com> (expanded from <cron at example.com>): permission
denied. Command output: Invalid From: header. root at example.com
(root) looks like a forged sender
According the kolab-user (Alain S) an alternative exists by using nullmailer.
But that's more a workaround than a build in kolab solution...
(This alternative is said to be described in the wiki, but I did not find it)
I think, that I may 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 add 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
systkolab is last beta version 2.2b3 (natively running on openSUSE-10.3)ems?
This is on kolab version 2.2b3 (natively running on openSUSE-10.3)
----------
messages: 13528
nosy: rbos
priority: bug
status: unread
title: allow root to sent email from the kolab server
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue2438>
________________________________________________
More information about the devel
mailing list