Dear Wietse

Thank you for your reply.

I had been looking at mydestination as the cause earlier, however my
working server does not set this so I gave up on that. When I try
mydestination = localhost this now changes the error to "User unknown
in virtual alias table".

The suggested fix for this online is to also change myorigin to
"localhost", but this has not worked for me, and again this was not
necessary on the other server. I get the same error as above.

What is really confusing me is that the Postfix configurations are
basically the same on both servers, is there any way Dovecot, Clamav
or Amavis configurations might have broken something?

On Tue, 27 Apr 2021 at 22:52, Wietse Venema <[email protected]> wrote:
>
> 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

Reply via email to