[Dovecot] LDA postfix + deliver, problem lookup, accepting email for everyone
Sylvain Viart
sylvain.viart at easyrencontre.com
Wed Feb 6 12:58:54 EET 2008
Hi,
I'm setting up dovecot pop3 deamon for a small set of mailbox.
I want to be able to set a small set of mailbox simply, so I've used
"passdb passwd-file" + virtual mailboxes with "userdb static".
My problem is that it seems that postfix accept and create mailbox for
every address I post. It is configured to use local delivery through
dovecot's deliver.
How do I force deliver to retrun an error if the destination is not
defined in the passwd-file?
The doc said that "userdb static" should do a lookup automatically. But
no luke for me.
Is it really a deliver problem, or a postfix configuration problem?
Any, hint?
Regards,
Sylvain.
dovecot --version
1.0.rc15
# dovecot -n
# /etc/dovecot/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot/dovecot.log
info_log_path: /var/log/dovecot/dovecot-info.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: pop3
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/pop3-login
first_valid_uid: 8
last_valid_uid: 8
first_valid_gid: 8
last_valid_gid: 8
mail_extra_groups: mail
mail_location: maildir:/var/mail/%u
mail_executable: /usr/lib/dovecot/pop3
mail_plugin_dir: /usr/lib/dovecot/modules/pop3
pop3_uidl_format: %08Xu%08Xv
auth default:
verbose: yes
debug: yes
passdb:
driver: passwd-file
args: /etc/dovecot/passwd.dovecot
userdb:
driver: static
args: uid=mail gid=mail home=/var/mail/%u allow_all_users=no
socket:
type: listen
client:
master:
path: /var/run/dovecot/auth-master
mode: 432
user: mail
group: mail
Also in postfix :
dovecot_destination_recipient_limit = 1
virtual_mailbox_domains = my.domain.com
virtual_transport = dovecot
# UID/GID mail
virtual_uid_maps = static:8
virtual_gid_maps = static:8
+ master.cf
# pop3 deliver dovecot
dovecot unix - n n - - pipe
flags=DRhu user=mail:mail argv=/usr/lib/dovecot/deliver -f ${sender}
-d ${recipient}
More information about the dovecot
mailing list