This is a little off topic, but I am not sure where it belongs best, and
because I am sure (almost) everyone here is using vixie-cron and xmail,
I thought I'd ask. My problem is cron doesn't send the output of the
commands it runs. I am not sure whether I am not doing something right
or
I've had the same problem, I solved my php by using a system call so I
could manually specify sendmails parameters like this:
exec(echo -e \here your email with headers if you like\ |
sendmail [EMAIL PROTECTED] [EMAIL PROTECTED]);
For my cron (dillon) I use this script as my /usr/sbin/sendmail
Someone wrote a modification to the sendmail script that removes the
extra parameters. Here is what I have for /usr/bin/sendmail
# nano /usr/bin/sendmail
-
#!/bin/sh
if [ -z $MAIL_ROOT ]; then
export MAIL_ROOT=/etc/xmail
fi
newargs=`echo $* | sed -e
Dustin C. Hatch wrote:
Someone wrote a modification to the sendmail script that removes the
extra parameters.
Since 1.21 xmail handles correctly -oem -oi.
This is a sendmail wrapper that is used in the Debian package.
Maybe a missing default_domain is your problem.
/usr/bin/sendmail:
--
Another simple workaround would be adding
[EMAIL PROTECTED]
to (the beginning of) crontab - normally cron sends mail to root (user
without domain-part) - with MAILTO=... stdout is send to the adress
given.
Achim
Feb 6 13:29:01 [/usr/sbin/cron] (root) CMD (echo hi)
Shouldn't this email
Hi Dustin,
I had the same problem with SuSE Linux.
First, I want to say that some Linux distributions (at least SuSE) are
configured by default with a cron that will not send any output by mail,
but only if the program launched by cron exited with an error status. So
check if this is the
On Sunday, February 06, 2005 8:47 PM [GMT+1=CET],
Dustin C. Hatch [EMAIL PROTECTED] wrote:
Someone wrote a modification to the sendmail script that removes the
extra parameters. Here is what I have for /usr/bin/sendmail
# nano /usr/bin/sendmail
-
Okay, I modified the /usr/bin/sendmail to contain an export
DEFAULT_DOMAIN statement, modified smtprelay.tab to include 127.0.0.0
and 172.16.0.0, changed the crontab from `echo hi` to an
error-producing `ls /asdf` and added [EMAIL PROTECTED] to
the top it. There is nothing in the lmail logs
Not sure if the below is any help.
At some point (not sure whether it was with an RPM package or tarball) I=20
had to modify the sendmail script because it was pointing to the XMail=20
sendmail binary in the wrong directory. Edited the sendmail script to=20
change the path to the XMail binary
No, thats not it because sendmail works just fine from php or from the
command line. My guess is I am missing a configuration file somewhere
for cron, but i have been googleing all day to no avail
Do you suppose it is possible to install ssmtp as well as xmail simply
to handle the sendmail
10 matches
Mail list logo