Glenn wrote:
Howdy BB! Hopefully this helps to answer your questions...
/etc/mail/postfix/vmailboxes contains:
test@geekinetdev.com test/
/etc/passwd contains:
test:*:5000:5000:test account for email:/var/mailboxes/test:/nonexistent
probably you need here to have a full user@domain name. i.e: test@geekinetdev.com:*:5000:5000:test account for email:/var/mailboxes/test:/nonexistent
The reason for the virtual_* stuff is that I am testing each program configuration as I set up a new SMTP server. The goal is to move all the virtual_* settings to MySQL. However, I want to walk before I run. Not sure if that is part of my problem.?.
Of course, you can leave it there, I've just said it is not necessary for dovecot to work. Also try to avoid using mysql, except you have dedicated mysql server or playing on small site with a lot of RAM. This is by my own experiences. LDAP is probably better solution but more complex to setup.
Thanks for your assistance!
glenn
Branislav Baca wrote:
You have set in the main.cf: virtual_mailbox_maps = hash:/etc/mail/postfix/vmailboxes but dovecot deliver is using userdb for this purpose, which you have set to passwd. Have you equivalent data in both places? Similary nearly all configuration parameters in the main.cf of the postfix starting with virtual_??? are not required, but should be provided by userdb for dovecot deliver.
BB
On 1:26 04/10/07 "Karin Gregorec" karinnv1@gmail.com wrote:
Good Day All! I am attempting to configure deliver as our LDA. I am also configuring the server to use Postfix instead of Sendmail. I have followed the all the documentation and examples I could find.
Below are my Dovecot and Postfix configs. Can someone please smack me upside the head and tell me why I am getting "user unknown" errors? If i don't use deliver as the LDA, all works perfectly. Help...
TIA, glenn
==========
*** Dovecot Config ***
dovecot -n # 1.0.5: /usr/local/etc/dovecot.conf base_dir: /var/run/dovecot/ log_path: /var/log/maillogs/dovecot.log protocols: imap imaps pop3 pop3s ssl_cipher_list: ALL:!LOW disable_plaintext_auth: no verbose_ssl: yes login_dir: /var/run/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_greeting: GID Ready login_log_format_elements: user=<%u> service=%s authMethod=%m rIP=%r lIP=%l encryption=%c login_max_processes_count: 256 verbose_proctitle: yes first_valid_uid: 5000 last_valid_uid: 10000 first_valid_gid: 0 mail_extra_groups: mail mail_location: maildir:~/Maildir dotlock_use_excl: yes fsync_disable: yes maildir_copy_with_hardlinks: yes 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_process_size: 1024 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(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): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_logout_format(default): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_logout_format(imap): top=%t/%p, retr=%r/%b, del=%d/%m, size=%s pop3_logout_format(pop3): top=%t/%T, retr=%r/%R, del=%d/%m, size=%s auth default: cache_size: 1024 cache_ttl: 604800 verbose: yes passdb: driver: pam args: cache_key=%Lu userdb: driver: passwd socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 user: maildrop plugin: quota: maildir:storage=10000000:ignore=Trash
*** Postfix main.cf ***
alias_database = hash:/etc/mail/postfix/aliases alias_maps = hash:/etc/mail/postfix/aliases biff = no command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont; echo where) | gdb $daemon_directory/$process_name $process_id 2>&1 > $config_directory/$process_name.$process_id.log & sleep 5
#### Dovecot LDA Service - http://wiki.dovecot.org/LDA/Postfix dovecot_destination_recipient_limit = 1
home_mailbox = Maildir/ html_directory = no inet_interfaces = all mail_owner = postfix mail_spool_directory = /var/mail mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man message_size_limit = 12000000 mydestination = $myhostname, localhost.$mydomain, localhost mydomain = geekinternetdevelopment.com myhostname = superman.geekinternetdevelopment.com mynetworks = 72.18.193.0/24, 127.0.0.0/8 newaliases_path = /usr/local/bin/newaliases queue_directory = /var/spool/postfix readme_directory = no sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtpd_banner = $myhostname NO WHAMMIES!!!
virtual_gid_maps = static:5000 virtual_mailbox_base = /var/mailboxes virtual_mailbox_domains = hash:/etc/mail/postfix/vdomains virtual_mailbox_maps = hash:/etc/mail/postfix/vmailboxes virtual_minimum_uid = 1000 virtual_transport = dovecot virtual_uid_maps = static:5000 unknown_local_recipient_reject_code = 550
*** Postfix master.cf *** ...snip... dovecot unix - n n - - pipe flags=DRhu user=maildrop:maildrop argv=/usr/local/libexec/dovecot/deliver -e -d ${recipient}