[Dovecot] dovecot/deliver ... Can't open log file /var/log/dovecot/error.log: Permission denied

Gerard Seibert dovecot.user at seibercom.net
Tue May 11 19:59:23 EEST 2010


On Tue, May 11, 2010 at 9:42 AM, Phil Howard <ttiphil at gmail.com> wrote:
>
> On Mon, May 10, 2010 at 18:16, Jerry <dovecot.user at seibercom.net> wrote:
>
> > Please post the output of "dovecot -n" and "postconf -n". Better,
> > provide output from the postfinger tool. This can be found at
> > http://ftp.wl0.org/SOURCES/postfinger.
> >
>
> I have redacted external IP addresses and domain names.
>
> from dovecot -n:
>
> # 1.1.11: /etc/dovecot/dovecot.conf
> # OS: Linux 2.6.31-19-server x86_64 Ubuntu 9.10
> base_dir: /var/run/dovecot/
> log_path: /var/log/dovecot/error.log
> info_log_path: /var/log/dovecot/info.log
> log_timestamp: %Y-%m-%d %H:%M:%S
> protocols: imap pop3 imaps pop3s
> listen: 172.30.0.24, [fc00::18], [${MYIPV6}::18], 127.0.0.1, [::1]
> ssl_cert_file: /etc/ssl/certs/ssl-mail.pem
> ssl_key_file: /etc/ssl/private/ssl-mail.key
> ssl_parameters_regenerate: 24
> ssl_cipher_list:
> ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
> disable_plaintext_auth: no
> login_dir: /var/run/dovecot//login
> login_executable(default): /usr/lib/dovecot/imap-login
> login_executable(imap): /usr/lib/dovecot/imap-login
> login_executable(pop3): /usr/lib/dovecot/pop3-login
> login_greeting: AUTHORIZED USERS ONLY -- unauthorized access strictly
> prohibited
> login_greeting_capability(default): yes
> login_greeting_capability(imap): yes
> login_greeting_capability(pop3): no
> mail_chroot: /home/mail
> mail_max_userip_connections(default): 10
> mail_max_userip_connections(imap): 10
> mail_max_userip_connections(pop3): 3
> verbose_proctitle: yes
> mail_privileged_group: mail
> mail_uid: vmail
> mail_gid: vmail
> mail_location:
> maildir:/home/mail/dnamesum=%12MLd/dname=%Ld/unamesum=%12MLn/uname=%Ln/mail
> mail_executable(default): /usr/lib/dovecot/imap
> mail_executable(imap): /usr/lib/dovecot/imap
> mail_executable(pop3): /usr/lib/dovecot/pop3
> mail_process_size: 768
> mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
> mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
> mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
> imap_client_workarounds(default): outlook-idle delay-newmail
> imap_client_workarounds(imap): outlook-idle delay-newmail
> imap_client_workarounds(pop3):
> pop3_client_workarounds(default):
> pop3_client_workarounds(imap):
> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
> auth default:
>  mechanisms: plain login
>  username_format: %Ln at Ld
>  passdb:
>    driver: passwd-file
>    args: username_format=%Ln /etc/mailauth/%Ld.deny
>    deny: yes
>  passdb:
>    driver: passwd-file
>    args: scheme=crypt username_format=%Ln /etc/mailauth/%Ld.passwd
>  userdb:
>    driver: passwd-file
>    args: username_format=%Ln /etc/mailauth/%Ld.passwd
>  socket:
>    type: listen
>    client:
>      path: /var/spool/postfix/private/dovecot-auth
>      mode: 432
>      user: postfix
>      group: postfix
>    master:
>      path: /var/run/dovecot/auth-master
>      mode: 384
>      user: vmail
>      group: vmail
>
> from postconf -n:
>
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/lib/postfix
> data_directory = /var/lib/postfix
> default_destination_concurrency_limit = 2
> default_privs = nobody
> in_flow_delay = 1s
> inet_interfaces = 172.30.0.25
> inet_protocols = ipv4, ipv6
> local_destination_concurrency_limit = 2
> mail_owner = postfix
> mydestination = 17.DOMAIN.NAMES.REDACTED
> mydomain = 1.DOMAIN.NAME.REDACTED
> myhostname = mail.1.DOMAIN.NAME.REDACTED
> mynetworks = ${MYIPV4}.80/28, 127.0.0.0/8, 172.16.0.0/16, 172.20.0.0/16,
> 172.30.0.0/16, [::1]/128, [fc00::]/48, [${MYIPV6}::]/48, [fe80::]/48
> myorigin = $mydomain
> proxy_interfaces = ${MYIPV4}.90
> queue_directory = /var/spool/postfix
> recipient_delimiter = -
> relay_domains = $mydestination
> smtp_bind_address = 172.30.0.25
> smtp_bind_address6 = fc00::25, ${MYIPV6}::25
> smtpd_banner = $myhostname ESMTP
> smtpd_sasl_path = private/dovecot-auth
> smtpd_sasl_type = dovecot
> soft_bounce = yes
> unknown_local_recipient_reject_code = 450
> virtual_gid_maps = static:252
> virtual_minimum_uid = 100
> virtual_transport = dovecot
> virtual_uid_maps = static:252
>
> from postfinger:
>
> postfinger - postfix configuration on Tue May 11 09:29:55 EDT 2010
> version: 1.30
>
> Warning: postfinger output may show private configuration information,
> such as ip addresses and/or domain names which you do not want to show
> to the public.  If this is the case it is your responsibility to modify
> the output to hide this private information.  [Remove this warning with
> the --nowarn option.]
>
> --System Parameters--
> mail_version = 2.6.5
> hostname = marconi
> uname = Linux marconi 2.6.31-19-server #56-Ubuntu SMP Thu Jan 28 03:40:48
> UTC 2010 x86_64 GNU/Linux
>
> --Packaging information--
> looks like this postfix comes from deb package: postfix-2.6.5-3
>
> --main.cf non-default parameters--
> default_destination_concurrency_limit = 2
> inet_interfaces = 172.30.0.25
> inet_protocols = ipv4, ipv6
> mydestination = 17.DOMAIN.NAMES.REDACTED
> mydomain = 1.DOMAIN.NAME.REDACTED
> myhostname = mail.1.DOMAIN.NAME.REDACTED
> mynetworks = ${MYIPV4}.80/28, 127.0.0.0/8, 172.16.0.0/16, 172.20.0.0/16,
> 172.30.0.0/16, [::1]/128, [fc00::]/48, [${MYIPV6}::]/48, [fe80::]/48
> myorigin = $mydomain
> proxy_interfaces = ${MYIPV4}.90
> recipient_delimiter = -
> smtp_bind_address = 172.30.0.25
> smtp_bind_address6 = fc00::25, ${MYIPV6}::25
> smtpd_banner = $myhostname ESMTP
> smtpd_sasl_path = private/dovecot-auth
> smtpd_sasl_type = dovecot
> soft_bounce = yes
> unknown_local_recipient_reject_code = 450
> virtual_gid_maps = static:252
> virtual_transport = dovecot
> virtual_uid_maps = static:252
>
> --master.cf--
> smtp      inet  n       -       -       -       -       smtpd
> pickup    fifo  n       -       -       60      1       pickup
> cleanup   unix  n       -       -       -       0       cleanup
> qmgr      fifo  n       -       n       300     1       qmgr
> tlsmgr    unix  -       -       -       1000?   1       tlsmgr
> rewrite   unix  -       -       -       -       -       trivial-rewrite
> bounce    unix  -       -       -       -       0       bounce
> defer     unix  -       -       -       -       0       bounce
> trace     unix  -       -       -       -       0       bounce
> verify    unix  -       -       -       -       1       verify
> flush     unix  n       -       -       1000?   0       flush
> proxymap  unix  -       -       n       -       -       proxymap
> proxywrite unix -       -       n       -       1       proxymap
> smtp      unix  -       -       -       -       -       smtp
> relay     unix  -       -       -       -       -       smtp
>        -o smtp_fallback_relay=
> showq     unix  n       -       -       -       -       showq
> error     unix  -       -       -       -       -       error
> retry     unix  -       -       -       -       -       error
> discard   unix  -       -       -       -       -       discard
> local     unix  -       n       n       -       -       local
> virtual   unix  -       n       n       -       -       virtual
> lmtp      unix  -       -       -       -       -       lmtp
> anvil     unix  -       -       -       -       1       anvil
> scache    unix  -       -       -       -       1       scache
> maildrop  unix  -       n       n       -       -       pipe
>  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
> uucp      unix  -       n       n       -       -       pipe
>  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
> ($recipient)
> ifmail    unix  -       n       n       -       -       pipe
>  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
> bsmtp     unix  -       n       n       -       -       pipe
>  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
> $recipient
> scalemail-backend unix  -       n       n       -       2       pipe
>  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
> ${nexthop} ${user} ${extension}
> mailman   unix  -       n       n       -       -       pipe
>  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
>  ${nexthop} ${user}
> dovecot   unix  -       n       n       -       -       pipe
>  flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -f
> ${sender} -d ${user}@${nexthop}
>
> -- end of postfinger output --

I have to admit that I am somewhat confused. You have "postfix" listed
as user/group in the dovecot.conf file, yet you have "vmail" listed as
the user in 'master.cf". That doesn't look right.

Do you actually have a user with uid 252?

I am assuming that you are not using "mydestination =
17.DOMAIN.NAMES.REDACTED" as a virtual delivery address. Virtual
domains must not be listed in "my destination". I could not find a
"virtual_mailbox_domains"

virtual_mailbox_domains ($virtual_mailbox_maps)
              Postfix is final destination for the specified list
              of   domains;  mail  is  delivered  via  the  $vir-
              tual_transport mail delivery transport.

Personally, I think that you should take this up on the Postfix forum.
Post the output of the "postfinger" and "dovecot -n" and I think that
you will be able to get your problem solved. It looks to me like you
have "virtual" configured incorrectly. It certainly is not configured
like I have it on my system. I use purely "vitual" users and have
"mydestination = " in main.cf on my system.

Mailing list: http://www.postfix.org/lists.html

Virtual documentaion: http://www.postfix.org/virtual.8.html

Post back if you get this fixed.

-- 
Jerry
dovecot.user at seibercom.net


More information about the dovecot mailing list