Neil Farmstrong:
> I have set up Postfix / Dovecot on Centos a number of time, a few
> weeks ago I set up a Debian server with Postfix / Dovecot and it went
> fine. I'm doing the same again today but keep getting bounces when
> sending to any virtual domain on the new server, with the error:
>
> Recipient address rejected: User unknown in local recipient table (in
> reply to RCPT TO command)
This means some recipient had a domain that matches mydestination,
and the 'username' portion did not match local_recipient_maps.
alias_maps = hash:/etc/aliases
local_recipient_maps = unix:passwd.byname $alias_maps
mydomain = domain.net
myhostname = domain.net
myorigin = $mydomain
There is no mydestination or local_transport setting in your email
message, therefore Postfix will use the default value:
mydestination = $myhostname, localhost.$mydomain, localhost
Based on the error message 'User unknown in local recipient table'
from the SMTP server:
1) You are sending RCPT TO with a specific recipient address.
2) The domain part of that recipient address matches $myhostname,
localhost.$mydomain, or localhost.
3) The username part of that recipient address does not match the
UNIX password file or /etc/aliases.
So what is the error:
1) Is wrong - they should send a different email address?
2) Is wrong - the domain should not match $myhostname, localhost.$mydomain,
or localhost?
3) Is wrong - the username part should match the UNIX password file
or /etc/aliases, or some other alias file?
I suspect the problem is 2). The domain should be removed from
mydestination and addred to virtual_mailbox_domains.
Wietse