I haven't taken any step to prevent this as I don't know what to do. Hence, I am asking about it.

I would appreciate if you direct me in the right direction to prevent all the others not listed in sender_dependent_relayhost_maps.


On 8.03.2019 15:41, @lbutlr wrote:

On 7 Mar 2019, at 20:52, Ozy Mate <sse...@gmail.com> wrote:

Dear Friends,

I have signed up with a 3rd party smtp server as relay host. This server needs 
the following lines in the main.cf of our server instead of relayhost direction:

smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

This is working fine. However, all the senders/domains not listed in 
sender_relay file are still able to send emails directly from our email server. 
How can I block this? I mean sender not listed in sender_relay file should not 
be able to send any email from our Postfix server.
Nothin that you posted would indicate you're taken steps to prevent this.

sender_dependent_relayhost_maps is just what it says, sender_dependent, so it 
only applies to the senders you've specified.

What have you done for the rest of the senders?

Reply via email to