Hi Steffen
we use quite a similar config, but instead of mysql:, we use proxy:ldap:

contrasting to your config we have:

virtual_transport = virtual

suomi

Steffen Schaumburg wrote:
Thanks for the quick response and sorry I missed that. Here's the output
from postfinger-1.30 without parameters:
--System Parameters--
mail_version = 2.5.6
hostname = davserver
uname = Linux davserver 2.6.28-gentoo-r4 #1 SMP Thu Mar 19 22:24:29 GMT
2009 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz GenuineIntel GNU/Linux

--Packaging information--

--main.cf non-default parameters--
home_mailbox = .maildir/
smtpd_client_restrictions = permit_inet_interfaces, permit_mynetworks,
permit_sasl_authenticated, permit
smtpd_recipient_restrictions = permit_mynetworks, reject_non_fqdn_recipient
permit_sasl_authenticated reject_unauth_destination permit
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = reject_non_fqdn_sender, permit
soft_bounce = yes
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_base = /var/mail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domain_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = dovecot

--master.cf--
smtp      inet  n       -       n       -       -       smtpd -v
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp -v
relay     unix  -       -       n       -       -       smtp -v
        -o smtp_fallback_relay=
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil -v
scache    unix  -       -       n       -       1       scache
dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=mail:mail argv=/usr/libexec/dovecot/deliver -f ${sender}
-d ${recipient}


Note that postfinger didn't pick up on one of the dovecot lines in main.cf.
As I understand the howto
(http://en.gentoo-wiki.com/wiki/Mail_server_using_Postfix_and_Dovecot) as
well as the Postfix documentation
(http://www.postfix.org/postconf.5.html#transport_destination_recipient_limit)
however the option is correct. Here's the line it missed:
dovecot_destination_recipient_limit = 1

Cheers, Steffen

On Thu, 26 Mar 2009 20:11:31 -0400, Sahil Tandon <sa...@tandon.net> wrote:
On Thu, 26 Mar 2009, Steffen Schaumburg wrote:

Hi everyone,
Sorry if this has been asked before I searched all over the place but I
just can't figure it out. I'm trying to setup postfix, using dovecot for
delivery (and IMAP&POP3). Dovecot in turn uses a MySQL backend. I used
this
guide:
http://en.gentoo-wiki.com/wiki/Mail_server_using_Postfix_and_Dovecot
Basically IMAP and POP3 are working, but when I try to send email to the
new server it fails. I tried:
- sending email from the new server to the new server (using thunderbird
via SMTP).
- sending email from my old server (this one) to the new one.
- I tried sending to both real mailboxes as well as to two aliases.

The error is always the same, here's thunderbird's version when using
the
new server's SMTP: "An error occurred while sending mail. The mail
server
responded: 5.1.1 <use...@schaumburger.info>: Recipient address rejected:
User unknown in virtual mailbox table. Please check the message
recipients
and try again."

I should mention that I'm not exactly an expert with this stuff, but I
have
successfully setup postfix before (but without dovecot) and have a fair
bit
of experience with *nix administration. I used postfix 2.5.5 originally,
I
tried updating to 2.5.6 just in case it was a bug but no change. I
assume
this is a silly error on my part somewhere ;)
I also checked that the SQL user&pw used for this is working, all the
configs and SQL entries seem to be correct as far as I can tell.
[clutter]

http://www.postfix.org/DEBUG_README.html#mail

(pay particular attention to sixth bullet point)



Reply via email to