* Christian Rößner <c...@roessner-network-solutions.com>:

> The address <ad4f0.5040...@roessner-net.com> is a non existent address. I 
> used my web.de test-account to send a mail to this fake. Here is the result:

So the domain is roessner-net.com

> postconf -n

I'm seeing multiple problems

> mydomain = roessner-net.de
> relay_domains = $mydestination lists.roessner-net.de

mydestination should not be in relay_domains!

And what is mydestination defaulting to?

$ postconf -d mydestination
mydestination = $myhostname, localhost.$mydomain, localhost

But you didn't define $myhostname explicitly.
So, danger lurks!

> smtpd_recipient_restrictions = reject_non_fqdn_recipient 
> reject_non_fqdn_sender reject_unknown_recipient_domain 
> reject_unknown_sender_domain reject_unlisted_recipient 

reject_unlisted_recipient, OK!

> reject_unauth_destination 

> virtual_alias_maps = proxy:ldap:/etc/postfix/ldap/virtual_aliases.cf
> virtual_mailbox_domains = proxy:ldap:/etc/postfix/ldap/virtual_domains.cf
> virtual_transport = lmtp:[127.0.0.1]:24

So: Which address class does "roessner-net.com" belong to?

It's not mydestination, since your debug log says:
Sep 11 11:10:35 mx0 postfix/smtpd[32405]: match_string: roessner-net.com ~? 
mx0.roessner-net.de
Sep 11 11:10:35 mx0 postfix/smtpd[32405]: match_string: roessner-net.com ~? 
localhost.roessner-net.de
Sep 11 11:10:35 mx0 postfix/smtpd[32405]: match_string: roessner-net.com ~? 
localhost

So I guess mydestination = mx0.roessner-net.de, localhost.$mydomain, localhost
Meaning: roessner-net.com is not in mydestination.

It's not relay_domains, since that's $mydestination and lists.roessner-net.de

According to this snippet:

Sep 11 11:10:35 mx0 postfix/smtpd[32405]: dict_proxy_lookup: 
table=ldap:/etc/postfix/ldap/virtual_aliases.cf flags=lock|fold_fix 
key=ad4f0.5040...@roessner-net.com -> status=1 result=
Sep 11 11:10:35 mx0 postfix/smtpd[32405]: maps_find: virtual_alias_maps: 
ad4f0.5040...@roessner-net.com: not found

virtual_alias_maps = ldap:/etc/postfix/ldap/virtual_aliases.cf is
queried, but the address is not being found.

But since roessner-net.com is NOT in virtual_alias_domains, it's not
being rejected.

But I cannot see why mail to "roessner-net.com" is accepted AT ALL,
since all your log shows is "no match".

So: Which address class does "roessner-net.com" belong to?????

> Testing on command line:
> 
> postmap -q "roessner-net.com" ldap:/etc/postfix/ldap/virtual_domains.cf 
> virtualDomains

Aha. According to this it's in virtual_mailbox_domains!
That's the error


For your setup I'd say:

* make roessner-net.com a relay_domain
* use transport_maps to transport it to localhost via LMTP
* use relay_recipient_maps

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de
            

Reply via email to