Problems with domain name in postfix configuration

I made a typo in the Internet domain name (baleoproducciones.ar, where it should say baleroproducciones.ar) in the general settings/other general settings of Postfix. When I correct it, my emails stop coming in, even though I can send.

Main.cf

meta_directory = /etc/postfix
shlib_directory = /usr/lib64/postfix
virtual_alias_maps = hash:/etc/postfix/virtual
sender_bcc_maps = hash:/etc/postfix/bcc
sender_dependent_default_transport_maps = hash:/etc/postfix/dependent
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = no

smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unlisted_recipient,
reject_unauth_destination,
check_sender_access hash:/etc/postfix/sender_access
#reject_rbl_client zen.spamhaus.org,
#reject_rbl_client bl.spamcop.net,

smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_authenticated_sender_login_mismatch,
check_sender_access hash:/etc/postfix/sender_access

smtp_dns_support_level = dnssec
smtp_host_lookup = dns
mailbox_size_limit = 0
allow_percent_hack = No
resolve_dequoted_address = no
milter_default_action = accept
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = inet:127.0.0.1:8891
tls_server_sni_maps = hash:/etc/postfix/sni_map
mynetworks_style = subnet
mydomain = baleoproducciones.ar
mydestination = $mydomain
myorigin = $mydomain
message_size_limit = 50240000
smtpd_banner = vps.baleroproducciones.ar

Avoid Backscatter by rejecting non-existent users instead of bouncing

smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
unknown_local_recipient_reject_code = 550

These are the corresponding entries in the virtual file

baleroar@baleroproducciones.ar baleroar
baleroproducciones.ar baleroproducciones.ar
@baleroproducciones.ar baleroar
info@baleroproducciones.ar info@baleroproducciones.ar

You don’t need to set mydomain explicitly, and most people definitely should not.

While we’re on the subject, most people should not set myorigin, either.

Oh, but your problem is this:

That’s very wrong, and it’s why mail is being rejected.

That should be something like this:

mydestination = $myhostname, localhost.$mydomain, localhost

Your domain doesn’t need to be specified in main.cf because it’s specified in virtual maps. You’re going to break things by trying to have two things with the same name. It’s either virtual or in main.cf, it’s not supposed to be in both.

From the comments in main.cf:

# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see VIRTUAL_README).

Hi Joe!. Thanks for your help. So as I understand y should let mydomain empty? And of course puti in virtual
Thanks again.

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