[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: About apache + sendmail (was: Re: Solved: Re: Is this an Apachefeature or a bug?-ans)
- From: Alejandro González Hernández - Imoq <imoq imoqland com>
- To: seawolf-list redhat com
- Subject: Re: About apache + sendmail (was: Re: Solved: Re: Is this an Apachefeature or a bug?-ans)
- Date: Sat, 16 Jun 2001 16:21:27 -0400
Michael Schwendt wrote:
>
> On 2001-06-15, Alejandro González Hernández - Imoq wrote:
>
> >open(MAIL, "|$MAILPROG -t");
>
> But what is the value of $MAILPROG? ;-)
Um, sorry, I forgot to include it, since I didn't want to post the
entire script :P
$MAILPROG = "/usr/sbin/sendmail";
> If the script is run as user "apache" by mistake, that user name is
> put in the From line, of course.
No, as I posted before, the script belongs to user.group, altough it is
called (of course) from apache, so, I don't know... but the email
arrives "From:user mydomain com", only the undeliverable ones return to
apache mydomain com
> >I didn't find anything strange in /var/log/httpd/suexec_log, it doesn't
> >mention the script.
>
> Did you disable suEXEC?
um.. no? I didn't change anything about suexec.
> You should have a [notice] in error_log if it is enabled
> (which it is by default).
>
> When executing a user's script with ~username in the URL, you should
> get something like this in suexec_log:
>
> [2001-06-15 02:03:18]: info: (target/actual) uid: (imagemty/imagemty) gid: (usuarios/usuarios) cmd: registro.cgi
so, that's the problem, I didn't change anything by default, but the
script isn't called from ~user, it's called from a virtualhost, and it's
located something like: /home/imagemty/public_html/blabla/cgi-bin
> >And the script (perl, btw, but you already realized it, didn't you? :P)
> >belongs to user:
> >
> >[root mydomain cgi-bin]# ls -l registro.cgi
> >-rwxr-xr-x 1 8031 Feb 10 20:41 registro.cgi
> >[root mydomain cgi-bin]#
>
> Where is this located?
See above.
> >BTW, it does run fine in FreeBSD, if the email can't be sent, it bounces
> >to user mydomain com instead of apache mydomain com
>
> Well, on FreeBSD how do you change uid to "user"?
>
> Hard to debug things remotely with not much info.
I could provide any extra info, so you can help me to solve this issue.
I'll try the other responses I've seen from the list, tough... I'll let
you know :).
Thanks.
Alex.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]