Stopping emails from an email address.

Hi all.

I'm trying to stop all emails from an email address.

To do so I checked that I have this in my main.cf

checksenderaccess

hash:/etc/postfix/sender_access,

and I have it.

Than I added this

mail@address.com REJECT

to my /etc/postfix/sender_access

and restarted postfix.

No emails is stopped.

That email address continue to send me email.

WHy?

Thanks.

5 Replies

Have you run 'postmap /etc/postfix/sender_access'?

@derfy:

Have you run 'postmap /etc/postfix/sender_access'?

yes.

And this is listed in the 'smtpdsenderrestrictions' area? Try turning on verbose logging with the -v switch in master.cf

Is mail@address.com the envelope sender, as seen in your postfix mail log? (This may be different from the From: address, seen in your mail client.)

@derfy:

And this is listed in the 'smtpdsenderrestrictions' area? Try turning on verbose logging with the -v switch in master.cf

I have this

checksenderaccess

hash:/etc/postfix/sender_access

in the smtpdrecipientrestrictions area.

The are you mentioned is this:

smtpdsenderrestrictions =

permit_mynetworks,

permitsaslauthenticated,

rejectnonfqdn_sender,

rejectunknownsender_domain,

permit

what should I add to it?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct