Page 1 of 1

Outbound mail relay (Allowing different ip addresses)

Posted: 21 Jun 2019 00:13
by omer
Hello,

I use multiple mail servers. One of them works at 35.55.25.x ip address and the other works at 228.45.12.x ip address.

I want to use EFA to check outgoing emails. But in the "Outbound mail relay" option, I can only allow one ip address. This is a serious problem if I allow all IP addresses. (Such as 0.0.0.0/1).

What can I do for it. I want to add multiple ip addresses. Is there a solution to this.

Thank you.

Re: Outbound mail relay (Allowing different ip addresses)

Posted: 21 Jun 2019 09:05
by shawniverson

Re: Outbound mail relay (Allowing different ip addresses)

Posted: 21 Jun 2019 11:28
by omer
Hello,

@pihahiroth took care of the problem with the help.

It worked with a change to the mynetworks section of the /etc/postfix/main.cf file.

The example is as follows.

meta_directory = /etc/postfix
shlib_directory = no
mynetworks = 127.0.0.0/8 31.11.22.0/26 81.22.33.36
header_checks = regexp:/etc/postfix/header_checks
myorigin = $mydomain
relay_domains = hash:/etc/postfix/transport
transport_maps = hash:/etc/postfix/transport
local_recipient_maps =
smtpd_helo_required = yes
smtpd_delay_reject = yes
disable_vrfy_command = yes
virtual_alias_maps = hash:/etc/postfix/virtual
default_destination_recipient_limit = 1
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus