[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix lmtp seg fault



On Tue, 19 Oct 2004 15:01:15 -0500, Adi Linden <adil@adis.on.ca> wrote:
> I cannot get postfix to deliver mail via lmtp to cyrus-imap. Here are the
> relevant configuration chunks I added:
> 
>     cyrus.conf:
>     lmtpcyr       cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp" prefork=1
> 

I think something is wrong with your config. Have added yourself the
line above? I don't recall if the default Debian config is good
enough, but i've found this in the cyrus.conf:

lmtpunix        cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20

>     master.cf
>     lmtpcyr   unix  -       -       n       -       -       lmtp
> 
>     main.cf:
>     mailbox_transport = lmtpcyr:unix:/var/run/cyrus/socket/lmtp
> 

The same for the line above. I think you only need to add a line:

mailbox_transport = cyrus

but i've looked at Cyrus looong time ago, so i don't recall right now
what  needs to be modified. I remember that i've had trouble with the
config cause postfix runs chrooted, so the access to the sasl.db needs
some attention, and something about the quota of the mailboxes...

> Both cyrus-imap and postfix have access to /var/run/cyrus/socket/lmtp. No
> problem there.
> 
> In the end I turned on debugging for lmtp in master.cf and added a debug
> command with gdb in main.cf. This is (a small part) of what I get:
> 
> -- snip --
> Loaded symbols for /lib/libnss_files.so.2
> 0x40214718 in waitpid () from /lib/libc.so.6
> (gdb) Continuing.
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x4005c121 in match_hostaddr () from /usr/lib/libpostfix-util.so.1
> (gdb) #0  0x4005c121 in match_hostaddr () from /usr/lib/libpostfix-util.so.1
> #1  0x4005b78e in match_list_match () from /usr/lib/libpostfix-util.so.1
> #2  0x4002c886 in debug_peer_check () from /usr/lib/libpostfix-global.so.1
> #3  0x0804c7bf in ?? ()
> #4  0x0805a515 in ?? ()
> -- snip --
> 
> I have no clue as to what is happening. I guess compiling from source is
> one option if I figure out how to convince apt-get to play nice without
> MTA package...
> 

I'm in a hurry right now, if you want i can check with more calm later today...


Andrea



Reply to: