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

Reply via email to