2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
Printable Version of Topic
Click here to view this topic in its original format |
XMail Forum > XMail Server > Sendmail.xmail From Cron |
Posted by: ciuly Jun 13 2011, 10:52 PM | ||||||||||
This is an old issue, I just now am getting to dig into it properly. I'm running xmail 1.26 on centos (it's an upgrade). Everything is working fine except getting email from cron for jobs that output stuff (I am getting the daily logwatch which contains the jobs ran and "MAIL sending errors X Time(s)", where X varies (today, that X is going to be very high)) my related setup for the scripts:
(this is smaller than sendmail.xmail, not sure if it's right)
now, when the cron runs the job (it's just a script that verifies if the actual job is running and if not it starts it, outputting that it did so), things will look like this (pstree output):
and the jobs:
I looked in the xmail logs but I didn't even find anything in the logs (smtp, for these emails, so it appears it is not getting anywhere. I made a small test script and logged parameters to file in sendmail.xmail.sh resulting in
what's missing/wrong? thanks. |
Posted by: ciuly Jun 16 2011, 10:27 PM | ||
Managed to finally track it down, after reading this message here: http://permalink.gmane.org/gmane.mail.xmail.general/5046 basically I experimented with tweaking the command line parameters and by mistake, at a given point I wrote the newargs expression wrong (I had some debug stuff in place), resulting in a singular word, which raised an error in the mailer daemon of a non-existing account. so in the end I ended up with the following sendmail.xmail.sh
|