Re: Re: ISPman + CourierIMAP + maildrop + Postfix

alexb-cTNHVRmzBzhfJ/[email protected]
Newsgroups gmane.comp.isp.ispman.user
Message-ID <[email protected]>
I have some dificulties to get maildrop to work to. It cames up in my
instalation that maildrop hasn't suficient privileges to deliver, as he needs
to change to the mailbox privileges. So I needed to set SUID that wasen't set
out of the "box" after building maildrop-ldap.
Here is what I have:
> ls -al /usr/bin/maildrop
-r-s--x--x    1 root     mail       177572 Aug  5 12:01 /usr/bin/maildrop

And just to compare, my postfix/master.cf have:

[root@arara postfix]# grep mail master.cf |grep -v ^#
maildrop  unix  -       n       n       -       -       pipe flags=R user=opkg-n
argv=/usr/bin/maildrop -V 999 -d ${user}

Hope this helps,

Alex

Citando Jim <[email protected]>:

> Hmmm. Well, I am unfortunately starting to run out of ideas. I'd try
> checking your ldap log for clues as to what might be happening.
>
> As for as the to=<atestoni_azienda3_it-gH+WsCr1+wQDEN4ujrZYptvLeJWuRmrY@public.gmane.org> goes:
> Ispman stores a mail routing address in ldap. It uses this address to
> know where to send the mail. It looks like postfix is indeed picking up
> the routing address from ldap as it is returning
> atestoni_azienda3_it-gH+WsCr1+wQDEN4ujrZYpow8niRw+/[email protected] Is virgilio.draksoft.com the
> address of your mail server? If so, do you have postfix configured to
> allow mail to that address? If virgilio.draksoft.com is not the address
> of your mail server, then you need to edit the mail routing attribute in
> ldap.
>
> I'm looking at your /usr/lib/courier-imap/etc/maildrop-ldap.conf and
> notice a couple things off:
>
> * Change mail_attr to mailRoutingAddress
> * I have &(objectclass=ispmanDomainUser)(ispmanStatus=active) for
> filter, although I think yours should work also.
> * Make sure that bindpw is actually the correct password for ldap (if
> you are disallowing anon binds)
>
> Jim
>
> Marco Carcano wrote:
>
> >> Date: Wed, 29 Dec 2004 11:26:36 -0500
> >> From: Jim <[email protected]>
> >> Subject: Re: ISPman + CourierIMAP + maildrop + Postfix
> >
> >
> > as you suggested I discovered that maildrop were not compiled with
> > ldap support:
> >
> > ldd /usr/bin/maildrop |grep ldap
> >
> > gave no results
> >
> > So I did as you told: I modified the spec file in configure section
> >
> >> --enable-maildropldap
> >> --with-ldapconfig=%courier_confdir/%confldap
> >
> >
> >> As a side note, I had some problems getting the source rpm to compile
> >
> > I have been luky: it compiled without problems. Now the output of
> >     ldd /usr/bin/maildrop |grep ldap
> > is
> >     libldap-2.2.so.7
> >
> >> Have you edited /usr/lib/courier-imap/etc/maildrop-ldap.conf to reflect
> >
> > Yes, here it is:
> >
> >     hostname                      localhost
> >     basedn                           o=ispman
> >     binddn                            cn=Directory Administrator,o=ispman
> >     bindpw                           mysecret
> >     filter &(&(objectclass=ispmanDomainUser))
> >     timeout                            5
> >     search_method             mail
> >     mail_attr                          mailLocalAddress
> >     uid_attr                            uid
> >     uidnumber_attr             uidNumber
> >     gidnumber_attr             gidNumber
> >     maildir_attr                     maildir
> >     homedirectory_attr      homeDirectory
> >     quota_attr                       mailQuota
> >
> >> Something else to try: I had to make maildrop suid root before it would
> >> deliver mail to the user's mailboxes. chmod u+s maildrop will take care
> >> of that for you.
> >
> >
> > I did it, but without changing the situation:
> > the content of maillog remains the same:
> >
> > virgilio postfix/qmgr[6524]: 483C113B19: from=<[email protected]>,
> > size=374, nrcpt=1 (queue active)
> > virgilio postfix/pipe[6530]: 483C113B19:
> > to=<atestoni_azienda3_it-gH+WsCr1+wQDEN4ujrZYptvLeJWuRmrY@public.gmane.org>,
> > orig=<[email protected]>, relay=maildrop, delay=16, status=bounced
> > (user unknown. Command output: invalid user specified)
> >
> > Is it right the rewrite did by the server? The recipient is
> > [email protected], but it appears to be rewrited to
> > atestoni_azienda3_it-gH+WsCr1+wQDEN4ujrZYptvLeJWuRmrY@public.gmane.org
> >
> > Thanks Again Jim
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.824 / Virus Database: 562 - Release Date: 28/12/2004
> >
> >
> > -------------------------------------------------------
> > The SF.Net email is sponsored by: Beat the post-holiday blues
> > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> > _______________________________________________
> > Ispman-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ispman-users
>
>
> --
> Jim Canon
> Research Associate II
> Network and Systems Engineer
> National Geospatial Development Center
> West Virginia University
> Phone: (304) 293-8232 x6108
> Fax: (304) 293-8185
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Ispman-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ispman-users
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.