You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Simon Clark <si...@zebraspot.com> on 2007/11/30 04:10:34 UTC
Changes to RunAsServer?
I just followed the direction from the RunAsServer page on the wiki,
and had some problems.
I am running on Debian Etch with Sun JRE 6.
When I followed the directions exactly, and started James from the
commandline, it seemed to launch, but did not accept any
connections. I stopped it, and went to run it using run.sh. This
caused a bunch of errors in the Phoenix wrapper. I undid the changes
to phoenix.sh, and now it runs as a service from the commandline, but
does not start on reboot.
So,
1) presumably te wiki should change to not mention editing the
phoenix.sh file
2) what is the best way to run on reboot? My symbolic links are all
set up in the /etc/rc0.d/ folder. Where does the log for these
failures go?
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Changes to RunAsServer?
Posted by Norman Maurer <no...@apache.org>.
Hi,
there is a sendmail.py script in the bin directory just be sure to link
it to /usr/sbin/sendmail and /usr/lib/sendmail.
bye
Norman
Am Donnerstag, den 29.11.2007, 23:03 -0500 schrieb Simon Clark:
> > 1) presumably te wiki should change to not mention editing the
> > phoenix.sh file
> > 2) what is the best way to run on reboot? My symbolic links are all
> > set up in the /etc/rc0.d/ folder. Where does the log for these
> > failures go?
>
> Ah, so it is now starting up on restart. not sure what changed. My
> next question is a little more intelligent (perhaps). On the server
> that is running James, I also need to send emails from a php script.
> James and sendmail don't seem to like coexisting. Can I trick them
> into that? or send emails from php through James?
>
> (If I get annoying, please tell me)
>
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: JAMES and sendmail
Posted by Simon Clark <si...@zebraspot.com>.
> sendmail.py was my first python program. Fixes and enhancements are
> welcomed. :-)
>
What I have done probably won't help you much. I needed to generate
the email from a database anyway, so I just passed in the row index,
and forgot about all the other stuff, grabbed it from MySQL instead.
Still your script got me out of a tight spot quickly, so I am in your
debt.
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: JAMES and sendmail
Posted by "Noel J. Bergman" <no...@devtech.com>.
Simon Clark wrote:
> My next avenue was to try disabling sendmail, and use the
> sendmail.py script that comes with James. While this
> worked from the commandline, it was not working from php.
> I took the python code, and altered it to suit my needs
sendmail.py was my first python program. Fixes and enhancements are
welcomed. :-)
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: JAMES and sendmail
Posted by Simon Clark <si...@zebraspot.com>.
On 1-Dec-07, at 10:26 AM, Danny Angus wrote:
> I wrote the faq. Its old now.
> Try changing the script, let us know how you get on and I'll update
> the faq.
I tried altering the script, but had no luck. My next avenue was to
try disabling sendmail, and use the sendmail.py script that comes
with James. While this worked from the commandline, it was not
working from php. I took the python code, and altered it to suit my
needs, and am now using it happily from an exec() command in php.
Sendmail is disabled, and all php mails go through james via my
python script.
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: JAMES and sendmail
Posted by Danny Angus <da...@apache.org>.
I wrote the faq. Its old now.
Try changing the script, let us know how you get on and I'll update the faq.
On 11/30/07, Simon Clark <si...@zebraspot.com> wrote:
>
> On 30-Nov-07, at 1:06 PM, Noel J. Bergman wrote:
>
> >> James and sendmail don't seem to like coexisting. Can I trick them
> >> into that? or send emails from php through James?
> >
> > They co-exist. They even have their own FAQ entry right on the
> > JAMES server
> > menu: http://james.apache.org/server/james_and_sendmail.html.
>
> I've been working with that, but the directions on the page do not
> bear much resemblance to my sendmail install. For instance, there is
> no DAEMON=yes line in my sendmail.conf. I nca set DAEMON_MODE to
> 'none', but that seems to do something different.
>
> Sendmail.cf has a DS line, but no DH, or DR. I can add them in, but
> I am suspicious of them not being there.
>
> > there is a sendmail.py script in the bin directory just be sure to
> > link
> > it to /usr/sbin/sendmail and /usr/lib/sendmail.
>
>
> This looks more like the solution to me. This means that I can
> uninstall sendmail, and trick PHP into using James for it, correct?
>
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
--
Sent from Google Mail for mobile | mobile.google.com
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: JAMES and sendmail
Posted by Simon Clark <si...@zebraspot.com>.
On 30-Nov-07, at 1:06 PM, Noel J. Bergman wrote:
>> James and sendmail don't seem to like coexisting. Can I trick them
>> into that? or send emails from php through James?
>
> They co-exist. They even have their own FAQ entry right on the
> JAMES server
> menu: http://james.apache.org/server/james_and_sendmail.html.
I've been working with that, but the directions on the page do not
bear much resemblance to my sendmail install. For instance, there is
no DAEMON=yes line in my sendmail.conf. I nca set DAEMON_MODE to
'none', but that seems to do something different.
Sendmail.cf has a DS line, but no DH, or DR. I can add them in, but
I am suspicious of them not being there.
> there is a sendmail.py script in the bin directory just be sure to
> link
> it to /usr/sbin/sendmail and /usr/lib/sendmail.
This looks more like the solution to me. This means that I can
uninstall sendmail, and trick PHP into using James for it, correct?
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: JAMES and sendmail
Posted by "Noel J. Bergman" <no...@devtech.com>.
> James and sendmail don't seem to like coexisting. Can I trick them
> into that? or send emails from php through James?
They co-exist. They even have their own FAQ entry right on the JAMES server
menu: http://james.apache.org/server/james_and_sendmail.html.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Changes to RunAsServer?
Posted by Simon Clark <si...@zebraspot.com>.
> 1) presumably te wiki should change to not mention editing the
> phoenix.sh file
> 2) what is the best way to run on reboot? My symbolic links are all
> set up in the /etc/rc0.d/ folder. Where does the log for these
> failures go?
Ah, so it is now starting up on restart. not sure what changed. My
next question is a little more intelligent (perhaps). On the server
that is running James, I also need to send emails from a php script.
James and sendmail don't seem to like coexisting. Can I trick them
into that? or send emails from php through James?
(If I get annoying, please tell me)
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org