Hi,

I'm trying to map users to first.last in canonical but I get an error when 
sending email to the
canonicalized address first.last@domain:

Recipient address rejected: User unknown in local recipient table

What am I not understanding? Any help is appreciated.

Here are my configs and the error from the logs:

# postconf -nf
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
    $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
milter_default_action = accept
milter_protocol = 2
mydestination = localhost.$mydomain, localhost, mail.$mydomain, $mydomain
mydomain = motec.com.au
myhostname = camber.motec.com.au
mynetworks = cidr:/etc/postfix/network_table
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = inet:localhost:8891
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks
    reject_unauth_destination check_policy_service unix:private/policy-spf
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_tls_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/crt
smtpd_tls_exclude_ciphers = EXPORT
smtpd_tls_key_file = /etc/pki/tls/private/key
smtpd_tls_loglevel = 2
smtpd_tls_security_level = may
unknown_local_recipient_reject_code = 550

# postconf -Mf
smtp       inet  n       -       n       -       -       smtpd
smtps      inet  n       -       n       -       -       smtpd
    -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
pickup     unix  n       -       n       60      1       pickup
cleanup    unix  n       -       n       -       0       cleanup
qmgr       unix  n       -       n       300     1       qmgr
tlsmgr     unix  -       -       n       1000?   1       tlsmgr
rewrite    unix  -       -       n       -       -       trivial-rewrite
bounce     unix  -       -       n       -       0       bounce
defer      unix  -       -       n       -       0       bounce
trace      unix  -       -       n       -       0       bounce
verify     unix  -       -       n       -       1       verify
flush      unix  n       -       n       1000?   0       flush
proxymap   unix  -       -       n       -       -       proxymap
proxywrite unix  -       -       n       -       1       proxymap
smtp       unix  -       -       n       -       -       smtp
relay      unix  -       -       n       -       -       smtp
showq      unix  n       -       n       -       -       showq
error      unix  -       -       n       -       -       error
retry      unix  -       -       n       -       -       error
discard    unix  -       -       n       -       -       discard
local      unix  -       n       n       -       -       local
virtual    unix  -       n       n       -       -       virtual
lmtp       unix  -       -       n       -       -       lmtp
anvil      unix  -       -       n       -       1       anvil
scache     unix  -       -       n       -       1       scache
policy-spf unix  -       n       n       -       -       spawn
    user=nobody argv=/usr/libexec/postfix/policyd-spf

My Error:
Mar  2 15:47:36 camber policyd-spf[17984]: None; identity=helo; 
client-ip=10.0.6.3;
helo=motec.com.au; envelope-from=r...@motec.com.au; 
receiver=tom.robin...@motec.com.au
Mar  2 15:47:36 camber policyd-spf[17984]: None; identity=mailfrom; 
client-ip=10.0.6.3;
helo=motec.com.au; envelope-from=r...@motec.com.au; 
receiver=tom.robin...@motec.com.au
Mar  2 15:47:36 camber postfix/smtpd[17974]: NOQUEUE: reject: RCPT from
caster.motec.com.au[10.0.6.3]: 550 5.1.1 <tom.robin...@motec.com.au>: Recipient 
address rejected:
User unknown in local recipient table; from=<r...@motec.com.au> 
to=<tom.robin...@motec.com.au>
proto=SMTP helo=
<motec.com.au>


Kind regards,
Tom

-- 

Tom Robinson
IT Manager/System Administrator

MoTeC Pty Ltd

121 Merrindale Drive
Croydon South
3136 Victoria
Australia

T: +61 3 9761 5050
F: +61 3 9761 5051
E: tom.robin...@motec.com.au


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to