OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
empty_address_recipient not mapped by virtual or alias

From: Alain Spineux (aspineuxgmail.com)
Date: Mon Jul 23 2007 - 13:02:58 CDT


I have this error

Jul 23 19:21:06 fc6-eg.asxnet.loc <info> postfix/lmtp[20305]:
224CE7FC6: to=<MAILER-DAEMONalpha.loc>,
relay=/kolab/var/kolab/lmtp[/kolab/var/kolab/lmtp], delay=1,
status=bounced (host /kolab/var/kolab/lmtp[/ko
lab/var/kolab/lmtp] said: 550-Mailbox unknown. Either there is no
mailbox associated with this 550-name or you do not have authorization
to see it. 550 5.1.1 User unknown (in reply to RCPT TO command))

because I send an email to an non existing address and because my
catchall is badly configured

# postmap -q alpha.loc ldap:/kolab/etc/postfix/ldapvirtual.cf
catchall.alpha.localpha.loc,alpha.loc

MAILER-DAEMON is defined in aliases

== /kolab/etc/postfix/aliases
nobody: /dev/null
MAILER-DAEMON: postmaster
postmaster: root
hostmaster: root
security: root
abuse: root
root: /dev/null

I also changed
empty_address_recipient=alain.spineux
to point to and alias defined in virtual

# postmap -q alain.spineuxalpha.loc
ldap:/kolab/etc/postfix/ldapvirtual.cf
asxalpha.loc

And get the same result : alain.spineuxalpha.loc mailbox unknown

Here is more info

postfix 2.2.5

# postconf -c /kolab/etc/postfix -n

alias_database = hash:/kolab/etc/postfix/aliases
alias_maps = hash:/kolab/etc/postfix/aliases
alternate_config_directories = /kolab/etc/postfix_front
broken_sasl_auth_clients = yes
canonical_maps = hash:/kolab/etc/postfix/canonical
command_directory = /kolab/sbin
config_directory = /kolab/etc/postfix
content_filter =
daemon_directory = /kolab/libexec/postfix
default_privs = kolab-n
empty_address_recipient = alain.spineux
enable_original_recipient = no
local_recipient_maps = $virtual_maps, $alias_maps
local_transport = lmtp:unix:/kolab/var/kolab/lmtp
mail_owner = kolab
masquerade_classes = envelope_sender, envelope_recipient,
       header_sender, header_recipient
masquerade_domains = $mydomain
message_size_limit = 20971520
mydestination = asxnet.loc mydomain.loc alpha.loc gamma.loc beta.loc
mydomain = asxnet.loc
myhostname = fc6-eg.asxnet.loc
mynetworks =
myorigin = $mydomain
queue_directory = /kolab/var/postfix
recipient_delimiter = +
relay_domains =
relocated_maps = hash:/kolab/etc/postfix/relocated
setgid_group = kolab-r
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,
reject_unauth_destination, reject_unlisted_recipient,
check_policy_service unix:private/kolabpolicy
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks, check_policy_service
unix:private/kolabpolicy
smtpd_starttls_timeout = 300s
smtpd_timeout = 300s
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /kolab/etc/kolab/cert.pem
smtpd_tls_key_file = /kolab/etc/kolab/key.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = no
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/kolab/etc/postfix/transport,
ldap:/kolab/etc/postfix/ldaptransport.cf

Regards

--
--
Alain Spineux
aspineux gmail com
May the sources be with you