1

Topic: How do I block a specific sender?

==== Provide required information ====
- iRedMail version and backend (PGSQL)
- Linux/CentOS 6.2
- Iredmail 0.8.0
====

How do I block a specific sender?
I tried using header_checks and access file and did not work.

Thank you in advance!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: How do I block a specific sender?

kadu137 wrote:

==== Provide required information ====
- iRedMail version and backend (PGSQL)
- Linux/CentOS 6.2
- Iredmail 0.8.0
====

How do I block a specific sender?
I tried using header_checks and access file and did not work.

Thank you in advance!


Resolved.
Could not block the header_checks because it does lock @ domain.

example:
/ ^ (From | mailto):. * @ Spam.com.br / REJECT blocked by shipping excessive.

To block a single email, you should use hash check_sender_access:

Open / etc / postfix / sender_access file
# Cd / etc / postfix
# Vi sender_access
Append sender email id as follows:
user@abadboy.com REJECT
Save and close the file. Use postmap command to create the database:
# Postmap hash: sender_access
Now open main.cf and add code as follows:
check_sender_access smtpd_recipient_restrictions = hash :/ etc / postfix / sender_access
Save and close the file. Restart / reload postfix MTA:
# / Etc / init.d / postfix restart

thanks!