Gejo Paul wrote:
> 
> On Tue, Feb 17, 2009 at 6:48 PM, sim085 <sim...@hotmail.com> wrote:
> 
>>
>> Hi,
>>
>> Before I decided to use Maildrop I had Postfix configured to search for
>> email recipients from the MySQL database and put all incoming mail in
>> /var/spool/mail/virtual/ (defined in the MySQL database itself). This
>> worked
>> fine and without any problems. Now I decided to install Maildrop and I am
>> having some problems to configure this. I have downloaded Maildrop and
>> changed Postfix main.cf and master.cf as follows:
>>
>> main.cf:
>> maildrop_destination_recipient_limit = 1
>> virtual_transport = maildrop
>>
>> master.cf:
>> maildrop  unix  -       n       n       -       -       pipe
>> flags=ODRhu user=mail argv=/usr/bin/maildrop -d ${recipient}
>>
>> Now when I send an email using telnet I receive the following error:
>>
>> "status bounced (user unknown. Command output: Invalid user specified)"
>>
>> This response was also achieved when I enter the command:
>>
>> "maildrop sysad...@mydomain.com"
>>
>> I did a lot of research over the internet and I found out that the
>> problem
>> is that Maildrop is not querying the MySQL database to check if the
>> recipient exists or not. Now my biggest problem is this; I found several
>> sites and all of them vary on how the problem should be solved and none
>> seem
>> to solve it.
>>
>> In some websites they say that by default Maildrop is not configured to
>> support MySQL. However the problem seems only relevant for Debian (I am
>> using Ubuntu).
>>
>> What I would like to know is where should I put the files
>> maildropmysql.config or how to make Maildrop use Courier MySql config
>> file!?
>>
>> Regards,
>> Sim085
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Postfix-%2B-Maildrop-tp22057152p22057152.html
>> Sent from the Postfix mailing list archive at Nabble.com.
>>
>>
> /etc/authlib/authmysqlrc is the file to configure mysql settings for
> courier
> 
> I am using LDAP instead of Mysql , but I guess  most of the configurations
> settings  are common  for ldap as well as mysql.
> vi /etc/postfix/main.cf
> local_transport=maildrop
> virtual_transport=maildrop
> 
> these command will help you to check whether the authentication is
> happening
> properly , plaese paste the o/p
> [vm...@ws64-80 ~]$ maildrop  -V 4 -d  g...@test.com  < 1
> maildrop: authlib: groupid=1000
> maildrop: authlib: userid=1000
> maildrop: authlib: logname=g...@test.com, home=/mailslice/gejo,
> mail=/mailslice/gejo/Maildir/
> maildrop: Changing to /mailslice/gejo
> Message start at 0 bytes, envelope sender=g...@test.com
> maildrop: Attempting .mailfilter
> 
> 
> #please configure authldapmysql and start authdaemon  and paste the output
> [r...@gejo postfix]# authtest  g...@test.com
> Authentication succeeded.
> 
>      Authenticated: g...@test.com  (uid 1000, gid 1000)
>     Home Directory: /mailslice/gp
>            Maildir: /mailslice/gp/Maildir/
>              Quota: 204857S
> Encrypted Password: (none)
> Cleartext Password: (none)
>            Options: (none)
> 
> 
> 
> 
> The other option is to enable debugging for maildrop and enable logging on
> /etc/maildroprc
> 
> -- 
> Best Regards
> Gejo Paul
> 
> 

Hi Gejo Paul,

Thank you for your reply. I do have the courier authmysqlrc file set up
however it is located at /etc/courier/ not /etc/authlib/. In my opinion this
file is set up properly since otherwise squirrelmail would not be working.
However just in case I created the /etc/authlib/ directory and copied
authmysqlrc there. Unfortunately still no good results :(

Enterting the command maildrop  -V 4 -d  sysad...@mydomain.com  < 1 return
the following:
base 1: No such file or directory.

Enter the command maildrop  -v returns the following: 
maildrop 2.0.4 Copyright 1998-2005 Double Precision, Inc
GDBM/DB extensions enabled 
Maildir quota extensions enabled
<License text>

Enter the command authtest sysad...@mydomain.com return the following:
Authentication FAILED: Operation not permitted

Also from where do I turn logging on? I do not have the file
/etc/maildroprc!

Regards,
Sim085
-- 
View this message in context: 
http://www.nabble.com/Postfix-%2B-Maildrop-tp22057152p22066591.html
Sent from the Postfix mailing list archive at Nabble.com.

Reply via email to