On Sun, Oct 27, 2024 at 12:55:17PM +0000, Ken Gillett via Postfix-users wrote:
> $Subject: Re: [pfx] User unknown in local recipient table (in reply to RCPT TO
> Postfix has been running for some years on my Mac server, with some
> limitations that I have been working around. However, another server
> on my LAN is trying to send emails to me (on the Mac server) and being
> rejected with the above error and repeats every 7 seconds so I need to
> figure out what is wrong.
>
> Here's the relevant config:-
>
> alias_maps = hash:/etc/aliases
> local_recipient_maps = proxy:unix:passwd.byname $alias_maps
> mydomain = home
> myhostname = macserve.home
> myorigin = $myhostname
> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
And what is in your alias table, please report the output of:
$ id ken
$ postconf mail_version append_dot_mydomain \
alias_maps alias_database local_recipient_maps mydomain myhostname
myorigin mydestination
$ postmap -fq - unix:passwd.byname hash:/etc/aliases <<'EOF'
[email protected]
[email protected]
ken@home
ken
EOF
> The problem is that mail to :-
>
> ken@home - works
>
> [email protected] - fails with the above error
Are the tests performed from the same machine or from anotehr machine on
the same LAN?
> I have an account on the Mac server, but I am not listed in
> /etc/passwd as MacOSX is using Open Directory. However, if that is the
> issue, how is email to ken@home working ok. Is that not going to
> require the same user verification.
Postfix does not read /etc/passwd, it uses getpwname(3), which should
match against Open Directory.
--
Viktor.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]