Howdy,
I'm running into a problem with a vacation recipe and I believe that
mailbot is the culprit.
Here is the .mailfilter:
--
xfilter "/usr/bin/spamc"
exception {
include "/home/vmail/vacation/vacationrc"
}
# Check for user defined filter file
exception {
include "$HOME/mailfilters/$LOGNAME"
}
--
Here is the vacationrc:
--
#logfile "/home/vmail/maildrop.log"
# Define some file paths
BASE_PATH="/home/vmail/vacation/$LOGNAME"
VACATION_TEXT="$BASE_PATH/vacation.txt"
VACATION_SUBJ="$BASE_PATH/vacation_subject.txt"
VACATION_CC="$BASE_PATH/vacation_cc_addresses.txt"
VACATION_KEEP="$BASE_PATH/vacation_keep_messages.txt"
# test for vacation file, if it exists, send autoresponse
#
`test -f $VACATION_TEXT`
if ($RETURNCODE==0)
{
# log 'vaction message ok'
# test for vacation message subject, use it if found
`test -f $VACATION_SUBJ`
if ($RETURNCODE==0)
{
# log 'vacation_subject ok'
SUBJECT=`cat $VACATION_SUBJ`
cc "| /usr/local/bin/mailbot -A 'From: $LOGNAME' -A 'Subject:
$SUBJECT' -t $VACATION_TEXT /usr/sbin/sendmail -f
'[EMAIL PROTECTED]'"
# otherwise, regular "Re:" syntax for subject is automatic
#
}
else
{
cc "| /usr/local/bin/mailbot -A 'From: $LOGNAME' -t $VACATION_TEXT
/usr/sbin/sendmail -f ''"
}
# test for any cc addresses, forward to those addresses if present #
`test -f $VACATION_CC`
if ($RETURNCODE==0)
{
# grab cc addresses
#
CCADDRESSES=`cat $VACATION_CC`
# do we need to keep a copy of messages in this account or not? #
`test -f $VACATION_KEEP`
if ($RETURNCODE==0)
{
cc "! -f \"$FROM\" $CCADDRESSES"
}
else
{
to "! -f \"$FROM\" $CCADDRESSES"
}
}
}
--
If someone sends [EMAIL PROTECTED] an email, I (postmaster) get this:
--
Return-Path: <>
X-Original-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: by mailserv.mydomain (Postfix)
id 0CA663E8FE; Sun, 13 Jun 2004 21:22:16 -0500 (EST)
Delivered-To: [EMAIL PROTECTED]
Received: by mailserv.mydomain (Postfix)
id F36403E908; Sun, 13 Jun 2004 21:22:15 -0500 (EST)
Date: Sun, 13 Jun 2004 21:22:15 -0500 (EST)
From: [EMAIL PROTECTED] (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="CC8233E8FE.1087179735/mailserv.mydomain"
Message-Id: <[EMAIL PROTECTED]>
This is a MIME-encapsulated message.
--CC8233E8FE.1087179735/mailserv.mydomain
Content-Description: Notification
Content-Type: text/plain
This is the Postfix program at host mailserv.mydomain.
I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<unknown>: No recipients specified
--CC8233E8FE.1087179735/[EMAIL PROTECTED]
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; mailserv.mydomain
X-Postfix-Queue-ID: CC8233E8FE
X-Postfix-Sender: rfc822; [EMAIL PROTECTED]
Arrival-Date: Sun, 13 Jun 2004 21:22:15 -0500 (EST)
Final-Recipient: rfc822; unknown
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; No recipients specified
--CC8233E8FE.1087179735/mailserv.mydomain
Content-Description: Undelivered Message
Content-Type: message/rfc822
Received: by mailserv.mydomain (Postfix, from userid 1006)
id CC8233E8FE; Sun, 13 Jun 2004 21:22:15 -0500 (EST)
From: [EMAIL PROTECTED]
Subject: Out of the office
Subject: Re:
To: [EMAIL PROTECTED]
Precedence: junk
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
Message-Id: <[EMAIL PROTECTED]>
Date: Sun, 13 Jun 2004 21:22:15 -0500 (EST)
Vacuser isn't here, sorry. Try again later.
--CC8233E8FE.1087179735/mailserv.mydomain--
--
As far as I can tell, mailbot just isn't giving Postfix the necessary
envelope information:
--
[EMAIL PROTECTED] vacation]# grep CC8233E8FE /var/log/maillog
Jun 13 21:22:15 mailserv postfix/pickup[7021]: CC8233E8FE: uid=1006
from=<[EMAIL PROTECTED]>
Jun 13 21:22:15 mailserv postfix/cleanup[8527]: CC8233E8FE:
message-id=<[EMAIL PROTECTED]>
Jun 13 21:22:15 mailserv postfix/cleanup[8527]: CC8233E8FE: to=<unknown>,
relay=none, delay=0, status=bounced (No recipients specified)
--
Has anyone encountered this before, or perhaps it is a simple
configuration issue I'm glossing over? The kicker is that this setup
worked on the previous mailserver. That server ran a different
distribution and older versions of all of this software, but the script
doesn't look so complex that any of that would matter.
Any help/tips/insight are greatly appreciated. Also, if I'm blaming
maildrop/bot when I should be blaming Postfix/Distro differences/Communist
International/etc, then I apologize in advance.
If I need to provide further information (configs, logs, etc) please let
me know.
Cheers,
Matt
[EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users