LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2005, 01:57 PM   #1
Ateo
Member
 
Registered: Sep 2004
Location: Long Beach, CA
Distribution: FreeBSD,Ubuntu,Gentoo,MacOS
Posts: 139

Rep: Reputation: 15
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

Last edited by Ateo; 03-16-2005 at 01:59 PM.
 
Old 03-17-2005, 07:17 PM   #2
Ateo
Member
 
Registered: Sep 2004
Location: Long Beach, CA
Distribution: FreeBSD,Ubuntu,Gentoo,MacOS
Posts: 139

Original Poster
Rep: Reputation: 15
Damn PEBKAC!!!

It turns out the autorespond.db file I created was either corrupt or something else. I believe initially I created the file with "echo > autorespond.db".. I then used "touch autorespond.db" and that seemed to have done the trick..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run command with maildrop pembo13 Linux - General 1 03-08-2005 05:27 PM
Postfix, Maildrop help Dasha Linux - General 3 03-08-2005 05:22 PM
problem with maildrop I think jrafalek Linux - Software 1 03-08-2005 04:40 PM
Maildrop is giving me a headache LiquidKernel Linux - Software 2 09-15-2004 08:53 AM
Using maildrop with Courier MTA LiquidKernel Linux - Software 3 08-05-2003 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration