re,

Dunno how to add default_domain in sendmail scripts. i have
sendmail.xmail.sh:
#!/bin/sh


if [ -z $MAIL_ROOT ]; then
        export MAIL_ROOT=/var/MailRoot
fi


/usr/sbin/sendmail.xmail $*

About logs....

i dunno where to find in ??/?? ... i can't fins msg
[EMAIL PROTECTED] spool]# find . -name *1065513660000*

I check spool with xmail queue manager and i see errors like:

127.0.0.1:0;127.0.0.1:0;Tue, 7 Oct 2003 12:01:03 +0200
testdomint.com
XD9
MAIL FROM:<[EMAIL PROTECTED]>
RCPT TO:<CronDaemon>
<<MAIL-DATA>>
Date:   Tue, 7 Oct 2003 12:01:03 +0200
X-MessageId: <1065520863158.1293196592.webserver>
X-SmtpMessageId: <LD8>
From: testdomint.com PostMaster <[EMAIL PROTECTED]>
To: CronDaemon
Subject: Error sending message [1065520863158.1293196592.webserver] from
[testdomint.com]
X-MailerServer: XMail 1.17 (Linux/Ix86)
X-MailerError: Message = [1065520863158.1293196592.webserver] Server =
[testdomint.com]

[<00>] XMail bounce: Rcpt=[root];Error=[]


[<01>] Error sending message [1065520863158.1293196592.webserver] from
[testdomint.com].

ID:        <LD8>
Mail From: <CronDaemon>
Rcpt To:   <root>


[<03>] Note:

** This is a temporary error and you do not have to resend the message
** The system tried to send the message at      : Tue, 7 Oct 2003 12:01:03
+0200
** The current number of delivery attempts is   : 1
** The system will try to resend the message at : Tue, 7 Oct 2003 12:09:03
+0200



[<05>] Here is listed the initial part of the message:

Received: from /spool/local
 by testdomint.com with [XMail 1.17 (Linux/Ix86) LMAIL Server]
 for <root> from <CronDaemon>;
 Tue, 7 Oct 2003 12:01:03 +0200
From: root (Cron Daemon)
To: root
Subject: Cron <[EMAIL PROTECTED]> perl
/var/www/smartpost/scripts/XMQuotaMonitor.hour.pl
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Date: Tue, 7 Oct 2003 12:01:01 +0200

why? i have as admin email in XMQuotaMonitor.hour.pl [EMAIL PROTECTED] :/

And i can't see error from logwatch but its no sending emails to
[EMAIL PROTECTED]

thks for u help, i agree it a lot


----- Original Message ----- 
From: "S�nke Ruempler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 10:45 AM
Subject: [xmail] Re: Local Users and cron probs - Pls help


>
> > About local users, how do i do that when crontab or shell script uses
> maill
> > command (which uses sendmail) sends with from addrees? bcuz if its
sending
> > without from some email server refuses it :(
>
> you'll have to set the DEFAULT_DOMAIN in your sendmail script (normally
the
> bash script that invokes the XMail's sendmail binary)
>
> Added domain completion to XMail's sendmail when the specified sender
> address (-f or -F) does not contain one. The environment variable (or
> registry in Windows) DEFAULT_DOMAIN is looked up to try to complete the
> address.
>
> then for example a CronDaemon MAIL_FROM becomes [EMAIL PROTECTED]
>
>
> > "testdomint.com" "1065492126000.15793.webserver" "LA2"   "2003-10-07
> > 04:02:08"
> > "testdomint.com" "1065495660000.15998.webserver" "LA3"   "2003-10-07
> > 05:01:01"
> > "testdomint.com" "1065499260000.16016.webserver" "LA7"   "2003-10-07
> > 06:01:02"
> > "testdomint.com" "1065502860000.16045.webserver" "LAF"   "2003-10-07
> > 07:01:02"
> > "testdomint.com" "1065506460000.16074.webserver" "LB7"   "2003-10-07
> > 08:01:01"
> > "testdomint.com" "1065510060000.16099.webserver" "LBF"   "2003-10-07
> > 09:01:00"
> > "testdomint.com" "1065513660000.16205.webserver" "LC7"   "2003-10-07
> > 10:01:00"
>
> mhm check via CTRL and frozlist command the slog file from the messages:
>
> get e.g. the spooldir entries for 1065513660000.16205.webserver (the 2.
and
> 3. parameter in the frozlist output and goto spool/??/??/slog - there
you'll
> find the logs for those messages.
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
>

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to