Greetings Postfix users,

I am building a postfix system to act as our SMTP relay at the network
edge.  The system will be used by servers and applications to send email
both internal to our network and external as needed.

I have a postfix system specifying the mynetworks parameter noted below and
checking the hash via "postmap -s hash:/etc/postfix/network_table" returns
a list of ips.

However when I check the config after restarting or reloading postfix the
parameter does not seem to be updated when reviewing postconf -d.

Doing a quick command line check to send email on the system with postfix
mail is sent without issue however sending it from my desktop through that
relay server with the noted command it is failing with connection rejected
which is why I believe the mynetworks parameter is the issue.

All help and suggestions are appreciated.
Thanks
Blake



mynetwork parameter
mynetworks = hash:/etc/postfix/network_table

# postmap -s hash:/etc/postfix/network_table
11      10.147.9.0/24
13      10.148.1.0/24
15      10.148.120.0/24
17      10.148.17.0/24
19      10.148.24.0/24
2       10.147.1.32
20      10.148.32.0/24
22      10.149.16.0/24

# postconf -d | grep mynetworks
mynetworks = 127.0.0.0/8 10.148.17.0/24
mynetworks_style = subnet
parent_domain_matches_subdomains =
debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps
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
$sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps
smtpd_client_event_limit_exceptions =
${smtpd_client_connection_limit_exceptions:$mynetworks}
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
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_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
masquerade_domains = withheld.com
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = withheld.com
myhostname = relay01.withheld.com
mynetworks = hash:/etc/postfix/network_
table
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
notify_classes = resource, software, bounce
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains =
relayhost = [smtp.withheld.com]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

Reply via email to