[Workaround.org] Postfix delivers to non-existing users
Danny
dannyb at gmx.net
Mon May 19 00:10:12 CEST 2008
Hello,
First of all thanx for the great howto!
I configured a new mailserver as described @
http://workaround.org/articles/ispmail-etch. After finishing the steps
it looks like everything works fine. But after some testing I discovered
that postfix delivers mail to non-existing users within my maildomains:
(I configured the example.com domain, with one user: test)
Everything seems to work fine according to postmap:
ekster:/home/vmail/example.com# postmap -q test at example.com
mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
1
ekster:/home/vmail/example.com# postmap -q non-existing-user at example.com
mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
ekster:/home/vmail/example.com#
ekster:/home/vmail/example.com# postmap -q test at example.com
mysql:/etc/postfix/mysql-virtual-alias-maps.cf
mysql:/etc/postfix/mysql-email2email.cf
test at example.com
ekster:/home/vmail/example.com# postmap -q non-existing-user at example.com
mysql:/etc/postfix/mysql-virtual-alias-maps.cf
mysql:/etc/postfix/mysql-email2email.cf
ekster:/home/vmail/example.com#
Ok, now I send a mail to a non existing user:
ekster:/etc/postfix# mail non-existing-user at example.com
Subject: test
test
.
Cc:
In the mail.log I see that postfix accepted the address and delivers
to dovecot:
May 18 23:39:59 ekster postfix/pickup[26272]: C14D91100C9: uid=0 from=<root>
May 18 23:39:59 ekster postfix/cleanup[26406]: C14D91100C9:
message-id=<20080518213959.C14D91100C9 at ekster.xxxx.nl>
May 18 23:39:59 ekster postfix/qmgr[26271]: C14D91100C9:
from=<root at ekster.xxxx.nl>, size=315, nrcpt=1 (queue active)
May 18 23:39:59 ekster postfix/pipe[26408]: C14D91100C9:
to=<non-existing-user at example.com>, relay=dovecot, delay=0.1,
delays=0.07/0.01/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot
service)
May 18 23:39:59 ekster postfix/qmgr[26271]: C14D91100C9: removed
And Dovecot delivers as configured see /home/vmail/dovecot-deliver.log:
deliver(test at example.com): 2008-05-18 23:38:56 Info:
msgid=<20080518213856.66D6C1100C9 at ekster.xxxx.nl>: saved mail to INBOX
deliver(non-existing-user at example.com): 2008-05-18 23:39:59 Info:
msgid=<20080518213959.C14D91100C9 at ekster.xxxx.nl>: saved mail to INBOX
Part of main.cf:
virtual_mailbox_domains =
mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps =
mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
#content_filter = smtp-amavis:[127.0.0.1]:10024
#receive_override_options = no_address_mappings
Is this a normal behavior or am I doing something wrong ?
Thanx,
Danny,
The Netherlands
More information about the Workaround-chitchat
mailing list