[root@mail ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
bounce_queue_lifetime = 2d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 30
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_queue_lifetime = 2d
message_size_limit = 31457280
mydestination = $myhostname, localhost, localhost.localdomain
mydomain = starionhost.net
myhostname = mail.starionhost.net
mynetworks_style = host
newaliases_path = /usr/bin/newaliases.postfix
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_mailbox_limit_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_message_rate_limit = 50
smtpd_client_recipient_rate_limit = 50
smtpd_recipient_limit = 100
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated 
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/pki/dovecot/certs/starionhostnet.crt
smtpd_tls_key_file = /etc/pki/dovecot/private/starionhostnet.key
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, 
mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_transport = dovecot
virtual_uid_maps = static:5000

> On Feb 7, 2022, at 2:53 PM, John Stoffel <j...@stoffel.org> wrote:
> 
> 
> SH> We have a postfix/dovecot/mysql configuration.  We recently
> SH> removed one of the users from the database, however when we send
> SH> email, it still looks like the address we are sending to is a
> SH> local address and bounces with a “no such user” error.
> 
> Please post your config values.  But I suspect you have your main
> domain defined in "local_recipient_maps" or "mydestination" so it's
> looking up that username and finding a match in the local password
> database.
> 
> But please post your configuration (postconf -n) so we can look at it.
> 
> SH> I have tried restarting both postfix and dovecot with no change in the 
> problem.
> 
> It won't change, because of how you have postfix configured to do user
> mailbox lookups.
> 
> SH> Do we maybe need to get rid of the actual vmail box file?
> 
> SH> Is there a cache or something that needs to be cleared?
> 
> SH> Jeff
> 

Reply via email to