• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Solved mail server error: /usr/lib/dovecot/deliver: No such file or directory

spring_64

Member


Messages: 55

#1
I'm on FreeBSD11. I want to setup a mail server with postfix and dovecot with ldap backend.
I encounter with this error in /var/log/maillog:
Code:
/usr/lib/dovecot/deliver: No such file or directory
configs are:
#ee master.cf
Code:
dovecot   unix  -       n       n       -       -       pipe
        flags=ODRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -e -f ${sender} -d ${recipient}
#ee main.cf
Code:
inet_interfaces = all
inet_protocols = ipv4
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
myhostname = mail.example.com
append_dot_mydomain = no
mynetworks =
    # Local
    127.0.0.0/8
    # External
    *.*.*.*/24
local_transport = error:Local Transport Disabled
alias_maps = hash:/etc/aliases
mydomain = example.com
mydestination =
    $myhostname
    localhost.$mydomain
    localhost
virtual_transport = dovecot
smtpd_sasl_auth_enable = yes
the log is:
Code:
Sep 12 18:45:59 t7 postfix/pipe[922]: 92C0C118823: to=<user1@example.com>, relay=dovecot, delay=2098, delays=2098/0.02/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory )
Sep 12 19:00:59 t7 postfix/qmgr[773]: B34DB115F20: from=<user2@example.com>, size=267, nrcpt=1 (queue active)
Sep 12 19:00:59 t7 postfix/qmgr[773]: 0BAAB118822: from=<user2@example.com>, size=267, nrcpt=1 (queue active)
Sep 12 19:00:59 t7 postfix/qmgr[773]: 0FF7D118824: from=<user2@example.com>, size=267, nrcpt=1 (queue active)
Sep 12 19:00:59 t7 pipe[955]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Sep 12 19:00:59 t7 pipe[957]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Sep 12 19:00:59 t7 pipe[959]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Sep 12 19:00:59 t7 postfix/pipe[953]: B34DB115F20: to=<user1@example.com>, relay=dovecot, delay=2761, delays=2761/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory )
Sep 12 19:00:59 t7 postfix/pipe[954]: 0BAAB118822: to=<user1@example.com>, relay=dovecot, delay=2872, delays=2872/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory )
Sep 12 19:00:59 t7 postfix/pipe[956]: 0FF7D118824: to=<user1@example.com>, relay=dovecot, delay=2823, delays=2823/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory )
Thanks
 

ShelLuser

Daemon

Thanks: 799
Messages: 2,004

#2
Well, this should be obvious enough: Dovecot, like any other port, gets installed in /usr/local and not any location in the base system such as /usr/lib. Your configuration is wrong.

At the very least use /usr/local/lib but something tells me its probably located in /usr/local/libexec somewhere. pkg info -lx dovecot | grep deliver should be able to tell you. Then use the correct path.