maildrop/mailbot issue
I'm wondering... Is there anything wrong with this [ /etc/maildroprc ] syntax?
Code:
#
# Autoresponse messaging
#
RESPOND="$HOME/$HOST/$USER/autorespond.msg"
RESPONDDB="$HOME/$HOST/$USER/autorespond.db"
`test -f $RESPOND && exit 1 || exit 0`
if ( $RETURNCODE == 1 )
{
exception {
cc "| mailbot -t $RESPOND -d $RESPONDDB -D 1 -A 'From: $RECIPIENT' -s 'AUTO RESPONSE: I am away' /usr/sbin/sendmail -f ''"
}
log "$TICKS : >>> Vacation auto response message sent to $SENDER"
}
I have imported both $SENDER, $RECIPIENT and I have declared my shell and paths (if needed, I'll post the entire script).
The problem. When autorespond.msg exists in the user's directory, mail *IS* delivered to the recipient but the sender gets a return Undeliverable Mail message even though the message was in fact delivered.
If I comment out the execption, the sender does not receive the Undeliverable Message return, in other words, everything returns to normal sending.
The syntax used (for the execption) is pretty much a copy n paste from the maildroprc manpage so I'm a bit confused.
Below is the Undeliverable mail message that's sent to the originating sender:
Code:
This is the Postfix program at host mail.domain.tld.
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
<juan@domain_2.tld>: Command died with status 1: "/usr/bin/maildrop". Command
output: sendmail: fatal: open /etc/postfix/main.cf: Permission denied
Reporting-MTA: dns; mail.domain.tld
X-Postfix--Gentoo-Linux--GNU---Queue-ID: 1ECA523CDF
X-Postfix--Gentoo-Linux--GNU---Sender: rfc822; juan@domain_1.tld
Arrival-Date: Wed, 16 Mar 2005 10:46:49 -0800 (PST)
Final-Recipient: rfc822; juan@domain_2.tld
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix--Gentoo-Linux--GNU--; Command died with status 1:
"/usr/bin/maildrop". Command output: sendmail: fatal: open
/etc/postfix/main.cf: Permission denied
|