Outbound mail relay (Allowing different ip addresses)

Questions and answers about how to do stuff
Post Reply
omer
Posts: 39
Joined: 11 Oct 2017 15:23

Outbound mail relay (Allowing different ip addresses)

Post 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.
omer
Posts: 39
Joined: 11 Oct 2017 15:23

Re: Outbound mail relay (Allowing different ip addresses)

Post 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
Post Reply