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!