#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    7
    Rep Power
    0

    status=bounced (user unknown)


    Hi,

    I'm newbie and installed postfix, dovecot, mysql on my own. everything looks fine except when I send email I'm getting "status=bounced (user unknown)" error. No idea where to look for the problem. Searched the google, but couldn't find proper solution.

    Here is my maillog:

    Code:
    Sep 13 21:15:39 vps postfix/pickup[19928]: 7F6DB31C34EB: uid=0 from=<root>
    Sep 13 21:15:39 vps postfix/cleanup[20021]: 7F6DB31C34EB: message-id=<20140913171539.7F6DB31C34EB@localhost>
    Sep 13 21:15:39 vps postfix/qmgr[11588]: 7F6DB31C34EB: from=<root@localhost.localdomain>, size=281, nrcpt=1 (queue active)
    Sep 13 21:15:39 vps postfix/pipe[20027]: 7F6DB31C34EB: to=<abuse@mobz.ca>, relay=dovecot, delay=0.19, delays=0.04/0.01/0/0.15, dsn=5.1.1, status=bounced (user unknown)
    Sep 13 21:15:39 vps postfix/cleanup[20021]: A8ABA31C34EC: message-id=<20140913171539.A8ABA31C34EC@localhost>
    Sep 13 21:15:39 vps postfix/qmgr[11588]: A8ABA31C34EC: from=<>, size=1907, nrcpt=1 (queue active)
    Sep 13 21:15:39 vps postfix/bounce[20033]: 7F6DB31C34EB: sender non-delivery notification: A8ABA31C34EC
    Sep 13 21:15:39 vps postfix/qmgr[11588]: 7F6DB31C34EB: removed
    Sep 13 21:15:39 vps postfix/cleanup[20021]: B18C831C34EA: message-id=<20140913171539.A8ABA31C34EC@localhost>
    Sep 13 21:15:39 vps postfix/local[20034]: A8ABA31C34EC: to=<root@localhost.localdomain>, relay=local, delay=0.04, delays=0/0.03/0/0.01, dsn=2.0.0, status=sent (forwarded as B18C831C34EA)
    Sep 13 21:15:39 vps postfix/qmgr[11588]: B18C831C34EA: from=<>, size=2040, nrcpt=1 (queue active)
    Sep 13 21:15:39 vps postfix/qmgr[11588]: A8ABA31C34EC: removed
    Sep 13 21:15:39 vps postfix/pipe[20027]: B18C831C34EA: to=<master@mobz.ca>, orig_to=<root@localhost.localdomain>, relay=dovecot, delay=0.02, delays=0/0/0/0.01, dsn=5.1.1, status=bounced (user unknown)
    Sep 13 21:15:39 vps postfix/qmgr[11588]: B18C831C34EA: removed
    And my main.cf is:

    Code:
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    inet_interfaces = all
    mydestination = $mydomain, localhost, localhost.$mydomain
    unknown_local_recipient_reject_code = 550
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    debug_peer_level = 2
    debugger_command =
             PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
             xxgdb $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    myhostname = localhost
    mynetworks = 127.0.0.0/8
    message_size_limit = 30720000
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_use_tls = yes
    smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
    smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
    virtual_create_maildirsize = yes
    virtual_maildir_extended = yes
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
    virtual_transport = dovecot
    dovecot_destination_recipient_limit = 1
    Any help will be appreciated.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    7
    Rep Power
    0
    I have solved this. The problem is with my dovecot sql query where I was using %n to request user, but should use %u, because I store my email using full email address. %n is just user account without a domain name, while %u is full email address.
  4. #3
  5. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,553
    Rep Power
    4549
    thanks for posting your solution.
    ======
    Doug G
    ======
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo