Hi to all,

My objective is to receive local mail, and act as relay only for a limited
poll of email address, and from a limited poll of IP.

LAN1,LAN2,LAN3-->server_that_i_can_configure(LAN1)-->company_relay-->I_dont_care

I understand that relay_recipient_maps are not checked if the email is
generated locally trough sendmail[1]. There is a possibility to force the
check?


Thanks,
Matteo D.

O.S. RHE4.7

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
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
relay_domains = example.com
relay_recipient_maps = hash:/etc/postfix/relay_recipients
relayhost = [companyrelay.example.com]
sample_directory = /usr/share/doc/postfix-2.2.10/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_message_rate_limit = 1
smtpd_client_restrictions = check_client_access
cidr:/etc/postfix/client.cidr, reject
smtpd_helo_required = yes
smtpd_recipient_restrictions = reject_unauth_destination
unknown_local_recipient_reject_code = 550

cat /etc/postfix/client.cidr
net.lan.one.0/24 OK
net.lan.two.0/22 OK
net.lan.three.0/24 OK
ip.company.ralay.server/32 OK

postmap -s /etc/postfix/relay_recipients
valid.em...@example.com  OK
another.em...@list.example.com        OK

[1] http://www.postfix.org/OVERVIEW.html

Reply via email to