Relay to internal mail server



I use the Nethserver is mail gateway and relay to internal mail server and work as well but

after update last the Nethserver with mail module, the server show some message as show in below:

…Recipient address rejected: User unknown in virtual mailbox table;
warning: do not list domain in BOTH virtual_mailbox_domains and relay_domains…
but I already have added the relay domain.

What is wrong? please help

Thank you

1 Like

Please, could you attach the output of

postconf -n
db domains show
    postconf -n
address_verify_map =
address_verify_negative_refresh_time = 60s
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
bounce_queue_lifetime = 2
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
html_directory = no
inet_protocols = all
mail_owner = postfix
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/var/run/dovecot/lmtp
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_queue_lifetime = 2
message_size_limit = 10000000
mynetworks_style = host
newaliases_path = /usr/bin/newaliases.postfix
notify_classes =
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
recipient_delimiter = +
relay_domains =
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_restrictions = check_client_access cidr:/etc/postfix/access.cidr, reject_unauth_pipelining
smtpd_helo_restrictions = check_client_access cidr:/etc/postfix/access.cidr, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname
smtpd_recipient_restrictions = check_client_access cidr:/etc/postfix/access.cidr, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient
smtpd_relay_restrictions = check_client_access cidr:/etc/postfix/access.cidr, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access hash:/etc/postfix/internal_access, reject_unverified_recipient
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/smtpauth
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = check_client_access cidr:/etc/postfix/access.cidr, check_sender_access hash:/etc/postfix/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
smtpd_tls_security_level = may
submission_client_policy = check_client_access cidr:/etc/postfix/access.cidr, permit_sasl_authenticated, permit_mynetworks, reject
submission_recipient_policy = check_client_access cidr:/etc/postfix/access.cidr, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
unverified_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_domains =
virtual_mailbox_maps = proxy:unix:passwd.byname
virtual_transport = lmtp:unix:/var/run/dovecot/lmtp
     db domains show

Thank you @Ya_Ley, it’s a regression bug!

I’m fixing it now!

Thank you so much for your support

@Ya_Ley, could you give a try to the testing-package and see if it solves the issue?

yum localinstall

More info:

Thanks for taking the time to report it @Ya_Ley
Do you need further help to verify the issue?

Mar 2 23:00:18 hostgw amavis[13696]: (13696-01) extra modules loaded: Convert/, unicore/To/, unicore/lib/Gc/
Mar 2 23:00:19 hostgw postfix/smtp[14218]: 0B2AF10D2FED:,[]:25, delay=1.2, delays=0.01/0.01/0.07/1.1, dsn=4.3.5, status=deferred (host[] said: 451 4.3.5 Sender address rejected: Server configuration problem (in reply to RCPT TO command))

The attached log line says hostgw is trying to send a message to another host and receives a 451 response. The issue seems on the remote host side:

451 4.3.5 Sender address rejected: Server configuration problem (in reply to RCPT TO command))

It seems not related to the bug… :confused:

After a while, hostgw tries again (status=deferred)

Sorry. Maybe something wrong on the remote host.

Released in nethserver-updates:


Good news and thank you

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.