Hi all,

I have some issues with receiving mail on a server that I've set up.
In particular, when I try to send an email to a user that I know
exists, I get an error message:

Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "myusername"

And [EMAIL PROTECTED] does exist.

I use postfix.admin for admining and in there I have:

mx.mydmain.org  internal domain Aliases: 0 / 0  Mailboxes: 0 / 0
mydomain.org    No Description  Aliases: 5 / 0  Aliases: 4 / 0  

The user that can't receive email, "myusername", is listed in Virtual
List in Mailboxes section an is Active.

Here's the errors and relevant sections from log and config files.

Any ideas what I'm doing wrong? Any help is appreciated!!!
Thanks,
Mel

PS: I've anonymized these logs by replacing actual domain with
mydomain and actual username with myusername etc.


Error message when trying to send to a user:
--------------------------------------------
This is the mail system at host mx.mydomain.org.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                  The mail system

<[EMAIL PROTECTED]>: unknown user: "mysername"

Final-Recipient: rfc822; [EMAIL PROTECTED]
Original-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "myusername"

Bounce message from (/var/log/mail.log):
----------------------------------------
Sep 10 17:33:11 mx postfix/smtpd[3621]: connect from
rv-out-0506.google.com[209.85.198.225]
Sep 10 17:33:12 mx postfix/trivial-rewrite[3625]: warning: do not list
domain mydomain.org in BOTH mydestination and virtual_mailbox_domains
Sep 10 17:33:12 mx postfix/smtpd[3621]: 408C168098:
client=rv-out-0506.google.com[209.85.198.225]
Sep 10 17:33:12 mx postfix/cleanup[3626]: 408C168098:
message-id=<[EMAIL PROTECTED]>
Sep 10 17:33:12 mx postfix/qmgr[2434]: 408C168098:
from=<[EMAIL PROTECTED]>, size=2137, nrcpt=1 (queue active)
Sep 10 17:33:12 mx clamsmtpd: 100004: accepted connection from: 127.0.0.1
Sep 10 17:33:12 mx postfix/smtpd[3629]: connect from localhost[127.0.0.1]
Sep 10 17:33:12 mx postfix/trivial-rewrite[3625]: warning: do not list
domain mydomain.org in BOTH mydestination and virtual_mailbox_domains
Sep 10 17:33:12 mx postfix/smtpd[3629]: 97F8E680E6:
client=rv-out-0506.google.com[209.85.198.225]
Sep 10 17:33:12 mx postfix/cleanup[3626]: 97F8E680E6:
message-id=<[EMAIL PROTECTED]>
Sep 10 17:33:12 mx postfix/qmgr[2434]: 97F8E680E6:
from=<[EMAIL PROTECTED]>, size=2512, nrcpt=1 (queue active)
Sep 10 17:33:12 mx postfix/smtp[3627]: 408C168098:
to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1]:10025,
delay=0.56, delays=0.41/0.01/0.05/0.09, dsn=2.0.0, status=sent (250
2.0.0 Ok: queued as 97F8E680E6)
Sep 10 17:33:12 mx clamsmtpd: 100004: [EMAIL PROTECTED],
[EMAIL PROTECTED], status=CLEAN
Sep 10 17:33:12 mx postfix/trivial-rewrite[3625]: warning: do not list
domain mydomain.org in BOTH mydestination and virtual_mailbox_domains
Sep 10 17:33:12 mx postfix/qmgr[2434]: 408C168098: removed
Sep 10 17:33:12 mx postfix/smtpd[3629]: disconnect from localhost[127.0.0.1]
Sep 10 17:33:12 mx postfix/local[3632]: 97F8E680E6:
to=<[EMAIL PROTECTED]>, relay=local, delay=0.11,
delays=0.09/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user:
"myusername")
Sep 10 17:33:12 mx postfix/cleanup[3626]: B344068168:
message-id=<[EMAIL PROTECTED]>
Sep 10 17:33:12 mx postfix/qmgr[2434]: B344068168: from=<>, size=4313,
nrcpt=1 (queue active)
Sep 10 17:33:12 mx postfix/bounce[3633]: 97F8E680E6: sender
non-delivery notification: B344068168
Sep 10 17:33:12 mx postfix/qmgr[2434]: 97F8E680E6: removed
Sep 10 17:33:13 mx postfix/smtp[3634]: B344068168:
to=<[EMAIL PROTECTED]>,
relay=gmail-smtp-in.l.google.com[66.249.83.114]:25, delay=1.2,
delays=0.01/0.01/0.22/1, dsn=2.0.0, status=sent (250 2.0.0 OK
1221067993 h12si7839126wxd.14)
Sep 10 17:33:13 mx postfix/qmgr[2434]: B344068168: removed


Sending from the account works just fine (from /var/log/mail.log):
-----------------------------------------
Sep 10 17:25:29 mx postfix/smtpd[3002]: connect from <my-local-isp>.com[<IP>]
Sep 10 17:25:30 mx postfix/smtpd[3002]: 5349168098:
client=<my-local-isp>.com[<IP>], sasl_method=PLAIN,
[EMAIL PROTECTED]
Sep 10 17:25:30 mx postfix/cleanup[3313]: 5349168098:
message-id=<[EMAIL PROTECTED]>
Sep 10 17:25:30 mx postfix/qmgr[2434]: 5349168098:
from=<[EMAIL PROTECTED]>, size=641, nrcpt=1 (queue active)
Sep 10 17:25:30 mx clamsmtpd: 100003: accepted connection from: 127.0.0.1
Sep 10 17:25:30 mx postfix/smtpd[3317]: connect from localhost[127.0.0.1]
Sep 10 17:25:30 mx postfix/trivial-rewrite[3314]: warning: do not list
domain mydomain.org in BOTH mydestination and virtual_mailbox_domains
Sep 10 17:25:30 mx postfix/smtpd[3317]: 9FC45680E6:
client=<my-local-isp>.com[<IP>]
Sep 10 17:25:30 mx postfix/cleanup[3313]: 9FC45680E6:
message-id=<[EMAIL PROTECTED]>
Sep 10 17:25:30 mx postfix/qmgr[2434]: 9FC45680E6:
from=<[EMAIL PROTECTED]>, size=1347, nrcpt=1 (queue active)
Sep 10 17:25:30 mx postfix/smtp[3315]: 5349168098:
to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1]:10025,
delay=0.5, delays=0.34/0.01/0.06/0.09, dsn=2.0.0, status=sent (250
2.0.0 Ok: queued as 9FC45680E6)
Sep 10 17:25:30 mx clamsmtpd: 100003: [EMAIL PROTECTED],
[EMAIL PROTECTED], status=CLEAN
Sep 10 17:25:30 mx postfix/qmgr[2434]: 5349168098: removed
Sep 10 17:25:30 mx postfix/smtpd[3317]: disconnect from localhost[127.0.0.1]
Sep 10 17:25:32 mx postfix/smtp[3321]: 9FC45680E6:
to=<[EMAIL PROTECTED]>,
relay=gmail-smtp-in.l.google.com[66.249.83.27]:25, delay=2.2,
delays=0.09/0.01/0.18/1.9, dsn=2.0.0, status=sent (250 2.0.0 OK
1221067532 h18si813127wd.10)
Sep 10 17:25:32 mx postfix/qmgr[2434]: 9FC45680E6: removed


>From my /etc/postfix/main.cf:
-----------------------------

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/mail.pem
smtpd_tls_key_file=/etc/ssl/private/mail.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mx.mydomain.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost, mx.mydomain.org, mydomain.org
relayhost =
mynetworks = 127.0.0.0/8, 67.21.11.142/32
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

# spam prevention tunings

smtpd_helo_required = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
invalid_hostname_reject_code = 554
multi_recipient_bounce_reject_code = 554
non_fqdn_reject_code = 554
relay_domains_reject_code = 554
unknown_address_reject_code = 554
unknown_client_reject_code = 554
unknown_hostname_reject_code = 554
unknown_local_recipient_reject_code = 554
unknown_relay_recipient_reject_code = 554
unknown_sender_reject_code = 554
unknown_virtual_alias_reject_code = 554
unknown_virtual_mailbox_reject_code = 554
unverified_recipient_reject_code = 554
unverified_sender_reject_code = 554

smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname,
reject_non_fqdn_sender, reject_unknown_sender_domain,
reject_unknown_recipient_domain, reject_unauth_destination
# end of spam tunings
# begin dovecot sasl auth integration

smtpd_sasl_type = dovecot
# Can be an absolute path, or relative to $queue_directory
smtpd_sasl_path = private/auth
# and the common settings to enable SASL:
smtpd_sasl_auth_enable = yes

# end dovecot integration
# virtual conf support

virtual_transport = virtual
virtual_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_minimum_uid = 105
virtual_uid_maps = static:105
virtual_gid_maps = static:110
virtual_mailbox_base = /var/spool/postfix/virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

#end of virtual

# domain keys setup

smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891
milter_default_action = accept

# virus scanning options

content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings






>From my /etc/postfix/master.cf :
--------------------------------
provider filtering
smtps     inet  n       -       -       -       -       smtpd
 -o smtpd_tls_wrappermode=yes
 -o smtpd_sasl_auth_enable=yes
 -o smtpd_client_restrictions=permit_sasl_authenticated,reject

# setup antivirus scanning
scan      unix  -       -       n       -       16      smtp
       -o smtp_send_xforward_command=yes
# For injecting mail back into postfix from the filter
127.0.0.1:10026 inet  n -       n       -       16      smtpd
       -o content_filter=
       -o 
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
       -o smtpd_helo_restrictions=
       -o smtpd_client_restrictions=
       -o smtpd_sender_restrictions=
       -o smtpd_recipient_restrictions=permit_mynetworks,reject
       -o mynetworks_style=host
       -o smtpd_authorized_xforward_hosts=127.0.0.0/8

Reply via email to