Discussion:
How to use sender_dependent_relayhost_maps in master.cf
(too old to reply)
Sheng Zheng
2006-11-06 10:05:47 UTC
Permalink
Hi

I am using postfix 2.3.2, the sender_dependent_relayhost_maps works
fine in main.cf , but when i use it in another smtpd configured in
master.cf , it doesn't work. It seems that the
sender_dependent_relayhost_maps option has been ignored, and the mail
will not be relayed to the destination smtpd . Does anybody has any ideas?

Thanks in advance,

--Sheng.Zheng

/etc/postfix/master.cf
127.0.0.1:10025 inet n - n -
30 smtpd
-o myhostname=localsmtpd2-after-viruscheck
-o cleanup_service_name=header_clear
-o sender_dependent_relayhost_maps=hash:/etc/postfix/sender_relay
-o content_filter=
-o local_recipient_maps= -o relay_recipient_maps=
-o mynetworks=127.0.0.0/8 -o mynetworks_style=host
-o smtpd_restriction_classes= -o smtpd_client_restrictions=
-o smtpd_helo_restrictions= -o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o receive_override_options=no_unknown_recipient_checks

header_clear unix n - n - 0 cleanup
-o header_checks=regexp:/etc/postfix/header_checks



/etc/postfix/sender_relay:

@domain-a.com smtpdhost1
@domain-b.com smtpdhost2
Victor Duchovni
2006-11-06 12:43:10 UTC
Permalink
Post by Sheng Zheng
Hi
I am using postfix 2.3.2, the sender_dependent_relayhost_maps works
fine in main.cf , but when i use it in another smtpd configured in
master.cf , it doesn't work. It seems that the
sender_dependent_relayhost_maps option has been ignored, and the mail
will not be relayed to the destination smtpd . Does anybody has any ideas?
This parameter is used by the smtp delivery agent and is ignored by smtpd.
Parameters in master.cf apply to the daemons for which are set, they are
not "sticky" to the messages those daemons handle.

Sounds like you need a second Postfix instance to handle mail that needs
(or does not need) sender dependent routing separately.
--
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:***@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
Sheng Zheng
2006-11-08 11:19:56 UTC
Permalink
I have solved my problem by setup a second instance, but the mail
system became complex. We are hosting multiple domains on one mail
cluster.We just want to bind outgoing mail to different global address
depned on sender address after virus check. Is there any better
solution? Is there something like "sender_dependent_bind_address_maps"
on your development roadmap ?

Thanks

S.Zheng
Post by Victor Duchovni
Post by Sheng Zheng
Hi
I am using postfix 2.3.2, the sender_dependent_relayhost_maps works
fine in main.cf , but when i use it in another smtpd configured in
master.cf , it doesn't work. It seems that the
sender_dependent_relayhost_maps option has been ignored, and the mail
will not be relayed to the destination smtpd . Does anybody has any ideas?
This parameter is used by the smtp delivery agent and is ignored by smtpd.
Parameters in master.cf apply to the daemons for which are set, they are
not "sticky" to the messages those daemons handle.
Sounds like you need a second Postfix instance to handle mail that needs
(or does not need) sender dependent routing separately.
Loading...