Linux CentOS, MAILDROP extension patch for DOVECOT

dr34m3rs
dr34m3rs used Ask the Experts™
on
Hi Experts,

I've already compiled dovecot and have a custom script to admin my maildirs and users/passwords

I need to apply the extension patch to maildrop v2.5.4 so I can authenticate through dovecot

I have never applied a patch before, so I need a little help.

Link to patch I want to apply: http://www.max.rs/ozone/maildrop-2.3.0-dovecotauth.patch.txt

I am compiling maildrop from source on: Linux (my domain) 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux

Any help would be very much appreciated!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
President
Commented:
Hi,

Is this an experimental work? Do you actually need to compile your own? I am asking becasue the stock versions of Postfix and Dovecot would allow you to use maildrop with dovecot authentication.

The command to install them is simple:

yum install postfix dovecot

would install postfix, maildropp and dovecot.

When it comes to patch you would use the patch command to apply a patch. See man patch for more information.

BTW 2.30 is an ancient version is not even available from sourceforge. The support for 2.3.0 has been dropped some years back.

Cheers,
K.


But if you
Top Expert 2011
Commented:
1. as root, run
patch /path-to-dovecotauth.c  -i maildrop-2.3.0-dovecotauth.patch.txt  -o /tmp/dovecotauth.c

2.
backup the original dovecotauth.c

3. override with /tmp/dovecotauth.c

4. Recompile maildrop
Commented:
I already figured it out before reading your posts. I'll split the points since you both answered.

I am compiling for custom scripting for use with sendmail, dovecot, and maildrop

This is how I did it on CentOS 6:

1) download maildrop-2.3.0-dovecotauth.patch.txt or most recent version
2) rename to maildrop-2.5.4-dovecotauth.patch
3) drop in source folder
4) edit patch file paths to reflect changes

#patch -p0 < maildrop-2.5.4-dovecotauth.patch

#cd maildrop/maildrop
#mv dovecotauth* ../
#cd ../
#rm -Rf maildrop

#yum install gcc-c++
#yum install pcre-static pcre-devel

#./configure --disable-authlib --enable-syslog=1 --enable-sendmail=sendmail --enable-restrict-trusted=1 --enable-trusted-users='root mail' MAKE=gmake

#make
#make install-strip
#make install-man

//done

Hope this will help someone as adventurous as me.

Author

Commented:
-

Author

Commented:
I think I should post what finally happened:

I wanted virtual users in virtual mailboxes with multiple domains.

I tried maildrop thinking it was the answer but maildrop failed me due to lack of documentation and the fact I was attempting it with sendmail.

I switched to postfix with dovecot as the LDA and through hours of trial and error (because of my custom setup) I finally configured it the way I wanted to.

Moral of the story is: Always switch from sendmail to postfix. No matter how "familiar" you are with sendmail, postfix simply makes things easier (and there is a LOT more documentation from both the vendor and users with the same errors you are experiencing [and enough of them to be able to find the answer eventually] )

w00t to all who travel along this path
Kerem ERSOYPresident

Commented:
> Moral of the story is: Always switch from sendmail to postfix. No matter how "familiar" you are with
> sendmail, postfix simply makes things easier (and there is a LOT more documentation from both the
> vendor and users with the same errors you are experiencing [and enough of them to be able to find
> the answer eventually] )

I woulndn't agrree more :) In fact for years what I do on a fresh install of CenTOS is remove the sendmail, install postfix and use the system-switch-mail script to fix all references to sendmail.

I am happy that you quit messing around with ancient software. They  always come with their own problems and security issues.

Cheers,
K.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial