> 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?

-- 
Far away, across the fields, the tolling of the iron bell calls the
faithful to their knees to hear the softly spoken magic spells.

Reply via email to