[Dovecot] Dovecot deliver
Gonzalo Rodriguez
gonzalo at sepp0.com.ar
Wed May 18 19:48:58 EEST 2011
I forgot:
$ ls -al
total 136
drwxr-xr-x 6 vmail vmail 4096 May 16 16:48 .
drwxr-xr-x 8 vmail vmail 4096 May 17 15:47 ..
drwx------ 5 vmail vmail 4096 May 18 09:47 Drafts
drwxr-xr-x 5 vmail vmail 4096 May 18 13:10 INBOX
drwx------ 5 vmail vmail 4096 May 17 17:24 Sent
drwx------ 5 vmail vmail 4096 May 18 12:39 Trash
-rw------- 1 vmail vmail 8 May 16 16:48 dovecot-uidvalidity
-rw------- 1 vmail vmail 0 May 11 2001 dovecot-uidvalidity.4dce94ed
-rw------- 1 vmail vmail 18 May 16 16:48 subscriptions
2011/5/18 Gonzalo Rodriguez <gonzalo at sepp0.com.ar>:
> sorry first my postconf
>
> alias_database = hash:/etc/postfix/aliases
> command_directory = /usr/local/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/local/libexec/postfix
> data_directory = /var/postfix
> debug_peer_level = 2
> disable_vrfy_command = yes
> mail_owner = _postfix
> mailbox_command = /usr/local/libexec/dovecot/deliver
> mydestination = $myhostname
> mydomain = foobar.com.ar
> myhostname = foobar.com.ar
> mynetworks = 127.0.0.0/8 10.65.3.120
> myorigin = $mydomain
> parent_domain_matches_subdomains =
> queue_directory = /var/spool/postfix
> relay_domains = $mydestination
> setgid_group = _postdrop
> smtp_starttls_timeout = 300s
> smtp_tls_cert_file = /etc/ssl/foobar.crt
> smtp_tls_key_file = /etc/ssl/private/foobar.key
> smtp_tls_loglevel = 1
> smtp_tls_note_starttls_offer = yes
> smtp_tls_session_cache_timeout = 3600s
> smtp_use_tls = yes
> smtpd_banner = $myhostname ESMTP
> smtpd_etrn_restrictions = reject
> smtpd_helo_required = yes
> smtpd_recipient_restrictions = permit_mynetworks,
> permit_sasl_authenticated, reject_unauth_destination,
> reject_invalid_hostname, reject_non_fqdn_hostname,
> reject_unknown_sender_domain, reject_non_fqdn_sender,
> reject_non_fqdn_recipient, reject_rbl_client cbl.abuseat.org,
> reject_rbl_client bl.spamcop.net
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_authenticated_header = yes
> smtpd_sasl_path = private/auth
> smtpd_sasl_type = dovecot
> smtpd_tls_cert_file = /etc/ssl/foobar.crt
> smtpd_tls_key_file = /etc/ssl/private/foobar.key
> smtpd_tls_loglevel = 1
> smtpd_tls_session_cache_timeout = 3600s
> smtpd_use_tls = yes
> tls_random_source = dev:/dev/urandom
> virtual_alias_maps = hash:/var/www/datos/correo/virtual/aliases/foobar.com.ar
> virtual_gid_maps = static:5001
> virtual_mailbox_base = /var/www/datos/correo
> virtual_mailbox_domains = hash:/var/www/datos/correo/virtual/mailbox/domains
> virtual_mailbox_maps = hash:/var/www/datos/correo/virtual/mailbox/mailboxes
> virtual_minimum_uid = 5000
> virtual_transport = dovecot
> virtual_uid_maps = static:5001
>
>
> I add the line:
>
> mailbox_command = /usr/lib/dovecot/deliver
>
> Like Julio says, and works, but now I have this in my dovecot-deliver-error.log:
>
> May 18 13:39:32 deliver(gonzalor): Error:
> open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736772.M157290P19363.FOOBAR-0010)
> failed: Permission denied
> May 18 13:42:04 deliver(gonzalor): Error:
> open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log)
> failed: Permission denied (euid=1003(gonzalor) egid=10(users) missing
> +w perm: /var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/dovecot.index.log)
> May 18 13:42:04 deliver(gonzalor): Error:
> open(/var/www/datos/correo/foobar.com.ar/gonzalor/INBOX/tmp/1305736924.M208261P12143.FOOBAR-0010)
> failed: Permission denied
>
>
> any hint?
>
> regards
>
> 2011/5/18 Julio C. Ortega <jortega at onuva.com>:
>> El 18/05/11 08:38, Gonzalo Rodriguez escribió:
>>> Hi all,
>>>
>>> I have a problem with my dovecot/postfix configuration:
>>>
>>> here is my dovecot -n
>>>
>>>
>>> # 1.2.16: /etc/dovecot.conf
>>> Warning: fd limit 128 is lower than what Dovecot can use under full
>>> load (more than 768). Either grow the limit or change
>>> login_max_processes_count and max_mail_processes settings
>>> # OS: OpenBSD 4.9 i386 nfs
>>> base_dir: /var/dovecot/
>>> log_path: /var/log/dovecot
>>> protocols: imaps pop3s
>>> login_dir: /var/dovecot/login
>>> login_executable(default): /usr/local/libexec/dovecot/imap-login
>>> login_executable(imap): /usr/local/libexec/dovecot/imap-login
>>> login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
>>> login_user: _dovecot
>>> mail_location: maildir:/var/www/datos/correo/foobar.com.ar/%n:LAYOUT=fs
>>> mail_debug: yes
>>> mail_nfs_storage: yes
>>> mail_nfs_index: yes
>>> mbox_write_locks: fcntl
>>> mail_executable(default): /usr/local/libexec/dovecot/imap
>>> mail_executable(imap): /usr/local/libexec/dovecot/imap
>>> mail_executable(pop3): /usr/local/libexec/dovecot/pop3
>>> mail_plugin_dir(default): /usr/local/lib/dovecot/imap
>>> mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
>>> mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
>>> imap_client_workarounds(default): delay-newmail outlook-idle
>>> netscape-eoh tb-extra-mailbox-sep
>>> imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
>>> tb-extra-mailbox-sep
>>> imap_client_workarounds(pop3):
>>> pop3_client_workarounds(default):
>>> pop3_client_workarounds(imap):
>>> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
>>> lda:
>>> mail_plugins: sieve
>>> postmaster_address: postmaster at foobar.com.ar
>>> log_path: /var/log/dovecot-deliver-errors.log
>>> info_log_path: /var/log/dovecot-deliver.log
>>> auth default:
>>> mechanisms: login plain
>>> verbose: yes
>>> debug: yes
>>> debug_passwords: yes
>>> passdb:
>>> driver: bsdauth
>>> userdb:
>>> driver: static
>>> args: uid=vmail gid=vmail
>>> home=/var/www/datos/correo/foobar.com.ar/%n, allow_all_users=yes
>>> socket:
>>> type: listen
>>> client:
>>> path: /var/spool/postfix/private/auth
>>> mode: 432
>>> user: _postfix
>>> group: _postfix
>>> master:
>>> path: /var/dovecot/auth-master
>>> mode: 384
>>> user: vmail
>>> group: vmail
>>> plugin:
>>> sieve_global_dir: /var/sieve
>>> sieve_global_path: /var/sieve/global-default.sieve
>>> sieve: /var/sieve/%n.sieve
>>>
>>>
>>> I use bsdauth to system users auth againts Active-Directory, and I use
>>> dovecot to deliver the mails, in my postfix master.cf I have this:
>>>
>>>
>>> ## Deliver con Dovecot en
>>> ## Mailboxes
>>> dovecot unix - n n - - pipe
>>> flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver
>>> -f ${sender} -d ${recipient}
>>>
>>>
>>>
>>> The problem is I don't any process like this:
>>>
>>>
>>> pipe -n dovecot -t unix flags=DRhu user=vmail
>>> /usr/local/libexec/dovecot/deliver -f ${sender} -d ${recipient}
>>>
>>>
>>> And in the dovecot log I don't see anything, but in maillog I have:
>>>
>>>
>>> May 18 09:49:35 FOOBAR-0010 postfix/local[16584]: 8808D26125:
>>> to=<gonzalor at foobar.com.ar>, relay=local, delay=0.92,
>>> delays=0.91/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
>>>
>>>
>>> But the mail it's not in the mailbox, what is wrong? any hint? the
>>> storage is a NFS with centos.
>>>
>>> cheers
>>
>> Greetings Gonzalo.
>>
>> You should configure postfix to use deliver explicitly.
>>
>> main.cf:
>> mailbox_command = /usr/lib/dovecot/deliver
>>
>> Kind regards
>>
>> --
>> ------------------------------------
>> Julio C. Ortega
>> ONUVA
>> http://www.onuva.com
>>
>>
>
More information about the dovecot
mailing list