Hello,

 I have configured postfix with local domains

mydestination = ldap:/etc/postfix/ldap-localdomain.cf

and to check local recipients:

local_recipient_maps = ldap:/etc/postfix/ldap-localrecipient.cf

smtpd_relay_restrictions =
                permit_mynetworks,
                permit_sasl_authenticated,
                reject_unauth_destination

smtpd_recipient_restrictions =
                reject_non_fqdn_recipient,
                reject_unknown_recipient_domain,
                reject_unlisted_recipient,
                permit

There are no aliases:
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases

and "aliases" is an empty file. There are no canonical or masquerade domains.

Postfix works as I like for all recipients: existing recipients are accepted and non existing recipients (no results in ldap-localrecipient.cf) are rejected.

The only exception is the recipient "mailer-dae...@example.com", where let suppose example.com is a local domain.

For instance:

telnet mail.example.com 25
Trying 10.10.40.50...
Connected to mail.example.com.
Escape character is '^]'.
220 mail.example.com ESMTP MAIL Welcome
ehlo example.com
250-mail.example.com
250-PIPELINING
250-SIZE 10485760
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<postmas...@example.com>
250 2.1.0 Ok
rcpt to:<mailer-dae...@example.com>
250 2.1.5 Ok
rcpt to:<dsfsd...@example.com>
550 5.1.1 <dsfsd...@example.com>: Recipient address rejected: User unknown in local recipient table
quit


# postmap -q mailer-dae...@example.com ldap:/etc/postfix/ldap-localrecipient.cf

has no result, like dsfsd...@example.com. But mailer-dae...@example.com is accepted. Could you help me to understand why?

It seems that the recipients "MAILER-DAEMON@<any local domains>" are always accepted. I would like to know if there is some specification to always accept these recipients, or if I made some mistakes in my conf.

mail_version = 3.3.2

Thank you very much
Marco

Reply via email to