Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am configuring Postfix and SOGo and when I trying to sent email from one local user to another I got the status bounced error, unknown user:

Error log:

Jun  9 09:26:28 mail postfix/local[24266]: 834D5442099: to=<user1@mydomain.by>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "user1")

Postmap full username lookup:

postmap -q user1@mydomain.by pgsql:/etc/postfix/pgsql/mailboxes.cf

Returns maildir:

user1/

Postmap short username lookup:

postmap -q user1 pgsql:/etc/postfix/pgsql/mailboxes.cf

Returns nothing

Main.cf:

alias_maps = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
inet_interfaces = all
mailbox_size_limit = 0
mydestination = localdomain, localhost, localhost.localdomain, mydomain.by, mail.mydomain.by
#mydestination = localhost, localhost.$mydomain
mydomain = mydomain.by
myhostname = mail.mydomain.by
mynetworks = 127.0.0.0/8
myorigin = $mydomain
recipient_delimiter = +
smtp_sasl_auth_enable = no
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtpd_tls_cert_file = /etc/postfix/certs/postfix_cert.pem
smtpd_tls_key_file = /etc/postfix/certs/postfix_key.pem
smtpd_use_tls = no

local_recipient_maps =
virtual_uid_maps = static:200
virtual_gid_maps = static:4000
transport_maps = pgsql:/etc/postfix/pgsql/transport.cf
virtual_mailbox_base = /home/mail
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql/mailboxes.cf
virtual_maps = pgsql:/etc/postfix/pgsql/virtual.cf

What I should change to get it worked? Thanks!

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.