Goutam Baul | 8 Jul 2008 07:08
Picon
Favicon

Problems with autoresponse

Hello Everybody,

We are having a mailing system using RHEL 4, postfix, courier and openldap.
The message store is in maildir format and all the individual mail stores
are under the user and group vmail. The following packages are installed
using rpms:

Postfix-2.3.8-4.rhel4

courier-authlib-debuginfo-0.58-1.4AS
courier-imap-4.1.1-1.4AS
courier-authlib-0.58-1.4AS
courier-authlib-devel-0.58-1.4AS
courier-imap-debuginfo-4.1.1-1.4AS
courier-authlib-ldap-0.58-1.4AS

mod_authz_ldap-0.26-2
openldap-2.2.13-6.4E
nss_ldap-226-13
python-ldap-2.0.1-2
openldap-clients-2.2.13-6.4E
php-ldap-4.3.9-3.15
openldap-devel-2.2.13-6.4E
openldap-servers-2.2.13-6.4E

We have compiled pcre-7.2 with the default options and maildrop-2.0.3 have
been compiled with the following options:

--without-db --enable-maildrop-uid=vmail --enable-maildrop-gid=vmail --enabl
e-maildropquota --with-etcdir=/etc/maildrop --with-devel
(Continue reading)

Goutam Baul | 8 Jul 2008 12:05
Picon

Problems with autoresponse

Hello Everybody,

We are having a mailing system using RHEL 4, postfix, courier and openldap. The message store is in maildir format and all the individual mail stores are under the user and group vmail. The following packages are installed using rpms:

Postfix-2.3.8-4.rhel4
courier-authlib-debuginfo-0.58-1.4AS
courier-imap-4.1.1-1.4AS
courier-authlib-0.58-1.4AS
courier-authlib-devel-0.58-1.4AS
courier-imap-debuginfo-4.1.1-1.4AS
courier-authlib-ldap-0.58-1.4AS
mod_authz_ldap-0.26-2
openldap-2.2.13-6.4E
nss_ldap-226-13
python-ldap-2.0.1-2
openldap-clients-2.2.13-6.4E
php-ldap-4.3.9-3.15
openldap-devel-2.2.13-6.4E
openldap-servers-2.2.13-6.4E
We have compiled pcre-7.2 with the default options and maildrop-2.0.3 have been compiled with the following options:
--without-db --enable-maildrop-uid=vmail --enable-maildrop-gid=vmail --enable-maildropquota --with-etcdir=/etc/maildrop --with-devel
 
Additionally squirrelmail has been installed.

The mails are running properly. But while trying to setup the autoresponder we are having problems. We are testing it out for a user abcd <at> mycompany.in.

In the folder /home/vmail/mycompany.in/abcd we have created the file .mailfilter. Incidentally the Maildir folder is also in this location only.

The content of the .mailfilter file is

cc "| mailbot -t /home/vmail/mycompany.in/abcd/vacation.txt -A 'From: $RECIPIENT' /usr/sbin/sendmail -t ''"

the corresponding vacation.txt file is containing a text

this is a autoresponse message

When we send a message from a user account xyz <at> mycompany.in to the mailbox of abcd <at> mycompany.in then the message is getting delivered in the mail box of abcd <at> mycompany.in but instead of getting a autoresponse, the mail box of the user xyz <at> mycompany.in is getting a message from the MAILER-DAEMON with the following text

This is the mail system at host mail.mycompany.in. I'm sorry to have to inform you that your message could not 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

<abc <at> mycompany.in>: Command died with status 1: "/usr/local/bin/maildrop". Command output: sendmail: fatal: open /etc/postfix/main.cf: Permission denied
 
We have generated the mail using squirrelmail. Can you please give us some hints regarding the probable cause of this? Search in google has not helped much.
 
I can send mail using command
 
sendmail xyz <at> mycompany.in
 
from the command prompt

With regards,

Goutam

 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Sam Varshavchik | 8 Jul 2008 13:02
Gravatar

Re: Problems with autoresponse

Goutam Baul writes:

> The content of the .mailfilter file is
> 
> cc "| mailbot -t /home/vmail/mycompany.in/abcd/vacation.txt -A 'From:
> $RECIPIENT'  /usr/sbin/sendmail -t ''"

>                    The Postfix program
> 
> <abc <at> mycompany.in>: Command died with status 1: "/usr/local/bin/maildrop".
> Command
>     output: sendmail: fatal: open /etc/postfix/main.cf: Permission denied

When maildrop attempts to forward the message by running /usr/sbin/sendmail, 
sendmail fails with the above error message.

This has nothing to do with maildrop. There's a problem with your Postfix 
configuration.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Goutam Baul | 8 Jul 2008 13:33
Picon
Favicon

Re: Problems with autoresponse


>>Goutam Baul wrote:

>> The content of the .mailfilter file is
>>
>> cc "| mailbot -t /home/vmail/mycompany.in/abcd/vacation.txt -A 'From:
>> $RECIPIENT'  /usr/sbin/sendmail -t ''"

> >                   The Postfix program
>>
>> <abc <at> mycompany.in>: Command died with status 1:
"/usr/local/bin/maildrop".
>> Command
>>     output: sendmail: fatal: open /etc/postfix/main.cf: Permission denied

* Sam Wrote:

>When maildrop attempts to forward the message by running
/usr/sbin/sendmail,
>sendmail fails with the above error message.
I am sorry if I am bothering you too much. I tried to use send mail from the
command prompt by using the command
	sendmail  xyz <at> mycompany.in
and it worked properly. I am not trying to say that it is a maildrop issue.
May be I am on the wrong list for this issue. But will it be possible to
give some hints on how I should work ahead? The permission of the main.cf is
set as
-rw-r--r--  1 root root 31904 Jun 30 23:41 main.cf

the permission of sendmail binary at /etc/sbin is
lrwxrwxrwx  1 root root 21 May 29 12:57 /usr/sbin/sendmail ->
/etc/alternatives/mta
Any help please?
With regards,

Goutam

>This has nothing to do with maildrop. There's a problem with your Postfix
>configuration.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Enda | 8 Jul 2008 14:04

Re: Problems with autoresponse

Goutam Baul wrote:
> I am sorry if I am bothering you too much. I tried to use send mail from 
> the
> command prompt by using the command
> sendmail  xyz <at> mycompany.in
> and it worked properly. I am not trying to say that it is a maildrop 
> issue.
> May be I am on the wrong list for this issue. But will it be possible to
> give some hints on how I should work ahead? The permission of the main.cf 
> is
> set as
> -rw-r--r--  1 root root 31904 Jun 30 23:41 main.cf
>
> the permission of sendmail binary at /etc/sbin is
> lrwxrwxrwx  1 root root 21 May 29 12:57 /usr/sbin/sendmail ->
> /etc/alternatives/mta
> Any help please?

Check the permissions of the folder hierarchy which holds main.cf, if any 
folder doesn't have world read permissions that will block an unprivilaged 
user from accessing the file regardless of the files permissions.

HTH,

 -Enda. 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Goutam Baul | 8 Jul 2008 14:54
Picon
Favicon

Re: Problems with autoresponse

Enda wrote:

>Check the permissions of the folder hierarchy which holds main.cf, if any
>folder doesn't have world read permissions that will block an unprivilaged
>user from accessing the file regardless of the files permissions.

Thanks a lot, I found it out. The /etc/postfix folder was having 700 owned
by root. Changed it and all is fine. Thanks again for the help.

Regards,
Goutam

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
M. Rodrigo Monteiro | 29 Jul 2008 16:45

Compile with courier-authlib enabled

Hi.

I'm trying to install with this:

# export LDFLAGS="-L/usr/local/openldap/lib
-L/usr/local/courier-authlib/lib/courier-authlib
-L/usr/local/pcre/lib"
# export CPPFLAGS="-I/usr/local/openldap/include
-I/usr/local/courier-authlib/include -I/usr/local/pcre/include"
# ./configure --prefix=/usr/local/maildrop --enable-maildirquota
--enable-maildrop-uid=vmail --enable-maildrop-gid=vmail
--enable-restrict-trusted=0 --with-trashquota
--enable-sendmail=/usr/sbin/sendmail --enable-syslog=1
# make && make install-strip && make install-man

Is the maildrop compiled with courier-authlib support?

# /usr/local/maildrop/bin/maildrop -v
maildrop 2.0.4 Copyright 1998-2005 Double Precision, Inc.
GDBM extensions enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.

When I try to send an test message, it shows me "Invalid user
specified". So I guess It's not using courier-authlib because my imap
authentication is fine.

# echo teste | /usr/local/maildrop/bin/maildrop -d rodrigo <at> xxxx.yyyy
Invalid user specified.

BTW, It's in Debian Etch, using courier-imap and OpenLDAP, all the
latest versions.

Thanks,
Rodrigo.

--

-- 
M. Rodrigo Monteiro
falecom <at> rodrigomonteiro.net
"Free as in Freedom, not free as in free beer"
Linux User # 403730

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Devin Rubia | 29 Jul 2008 17:02

Re: Compile with courier-authlib enabled

On Tue, Jul 29, 2008 at 11:45:54AM -0300, M. Rodrigo Monteiro wrote:
> Hi.
> 
> I'm trying to install with this:
> 
> # export LDFLAGS="-L/usr/local/openldap/lib
> -L/usr/local/courier-authlib/lib/courier-authlib
> -L/usr/local/pcre/lib"
> # export CPPFLAGS="-I/usr/local/openldap/include
> -I/usr/local/courier-authlib/include -I/usr/local/pcre/include"
> # ./configure --prefix=/usr/local/maildrop --enable-maildirquota
> --enable-maildrop-uid=vmail --enable-maildrop-gid=vmail
> --enable-restrict-trusted=0 --with-trashquota
> --enable-sendmail=/usr/sbin/sendmail --enable-syslog=1
> # make && make install-strip && make install-man
> 
> Is the maildrop compiled with courier-authlib support?
> 
> # /usr/local/maildrop/bin/maildrop -v
> maildrop 2.0.4 Copyright 1998-2005 Double Precision, Inc.
> GDBM extensions enabled.
> Maildir quota extension enabled.
> This program is distributed under the terms of the GNU General Public
> License. See COPYING for additional information.

You should see:

Courier Authentication Library extension enabled.

if authlib support is enabled.  You need to have authlib compiled and
installed before you build maildrop.

--

-- 
Devin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
M. Rodrigo Monteiro | 29 Jul 2008 18:14

Re: Compile with courier-authlib enabled

2008/7/29 Devin Rubia <devin <at> thezone.net>:
> You should see:
>
> Courier Authentication Library extension enabled.
>
> if authlib support is enabled.  You need to have authlib compiled and
> installed before you build maildrop.
>

I just put the courierauthconfig in the PATH, and everything went ok.

# export PATH="${PATH}:/usr/local/courier-authlib/bin"
# ./configure ...

And now,

# /usr/local/maildrop/bin/maildrop -v
maildrop 2.0.4 Copyright 1998-2005 Double Precision, Inc.
GDBM extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.

Thanks anyway.

--

-- 
M. Rodrigo Monteiro
falecom <at> rodrigomonteiro.net
"Free as in Freedom, not free as in free beer"
Linux User # 403730

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
M. Rodrigo Monteiro | 31 Jul 2008 21:07

quotawarnmsg only in the first time

Hello again.

I'm using Postfix + OpenLDAP + Courier-IMAP + Maildrop
First, I put the quotawarnmsg in the courier-imap/etc. Nothing.
After, in the maildrop/etc. The e-mail in the mailbox of the user went
fine the first time. But the second, or third, don't send it.
What's the policy for that?
And why doesn't courier-imap send this message?

# echo teste | /usr/local/maildrop/bin/maildrop -w 90 -d rodrigo <at> domain

And in the master.cf
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/maildrop/bin/maildrop -w 90 -d
${recipient}

Regards,
Rodrigo.

--

-- 
M. Rodrigo Monteiro
falecom <at> rodrigomonteiro.net
"Free as in Freedom, not free as in free beer"
Linux User # 403730

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane