Postfix-User unknown in virtual alias table

Discussion in 'Server Operation' started by kziokok, Aug 8, 2014.

  1. kziokok

    kziokok New Member

    I just installed postfix and configured it for sending mails to [email protected] on local machine. But when I send mail throught command "echo test | sendmail [email protected]". It says in /var/log/messages:
    Aug  8 05:03:59 elizabeth postfix/pickup[3028]: 915DF395A7: uid=0 from=<root>
    Aug  8 05:03:59 elizabeth postfix/cleanup[3041]: 915DF395A7: message-id=<20140808030359.915DF395A7@elizabeth>
    Aug  8 05:03:59 elizabeth postfix/qmgr[3029]: 915DF395A7: from=<[email protected]>, size=262, nrcpt=1 (queue active)
    Aug  8 05:03:59 elizabeth postfix/error[3033]: 915DF395A7: to=<[email protected]>, relay=none, delay=0.03, delays=0.03/0/0/0.01, dsn=4.1.1, status=SOFTBOUNCE (User unknown in virtual alias table)
    soft_bounce = yes
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    data_directory = /var/lib/postfix
    mail_owner = postfix
    unknown_local_recipient_reject_code = 550
    mynetworks_style = host
    recipient_delimiter = +
    debug_peer_level = 2
    debugger_command =
             ddd $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /etc/postfix
    readme_directory = no
    inet_protocols = ipv4
    home_mailbox = .maildir/
    virtual_alias_maps = hash:/etc/postfix/virtual
    virtual_mailbox_base = /var/vmail
    smtpd_sasl_auth_enable = no
    broken_sasl_auth_clients = no
    smtpd_sasl_authenticated_header = no
    smtpd_use_tls = no
    smtpd_client_message_rate_limit = 100
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    virtual_transport = maildrop
    header_checks = regexp:/etc/postfix/header_checks
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    body_checks = regexp:/etc/postfix/body_checks
    inet_interfaces = all
    myhostname = elizabeth
    mydomain =
    mynetworks = [::1]/128
    receive_override_options = no_address_mappings
    relayhost =
    mailbox_size_limit = 0
    message_size_limit = 0
    Code:          root
    [email protected]     root
    (edit) /etc/aliases:
    postmaster: root
    root: localuser
    localuser: [email protected]
    Code: elizabeth eliz	localhost 
    ::1		localhost
    After changes a I ran command postmap /etc/postfix/virtual and /etc/init.d/postfix restart
    Domain is virtual.
    Can someone tell me why it says "unknown user"? Any help is welcomed. I'm new to mail servers/postfix.
    Last edited: Aug 8, 2014
  2. srijan

    srijan New Member HowtoForge Supporter

    Please add the entries in /etc/aliases

  3. kziokok

    kziokok New Member

    Thanks for the reply. But nothing changes, still "User unknown in virtual alias table".

    postmaster: root
    root: localuser
    localuser: [email protected]
  4. srijan

    srijan New Member HowtoForge Supporter

    Which tutorial you have followed?
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you run:

    postmap /etc/postfix/virtual

    after you edited the /etc/postfix/virtual file?
  6. DigitalBerg

    DigitalBerg New Member

    OR try this: /usr/local/psa/bin/domain -u -mail_service false

Share This Page