Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: s1Lv3r on October 01, 2009, 01:19:54 PM
-
Hi all,
Is there a way to only accept emails from specific email addresses addressed to a group?
Thanks!
-
Ok, let me rephrase my post :P
I need to prevent some email senders here from sending unwanted emails within the company.
Is there any way for me to restrict/block a particular email sender from sending to specific email addresses or group?
Hope somebody can help me.
Thanks!
-
s1Lv3r
You can edit /var/qmail/control/badmailfromto
with pairs of email addresses
# sender_address tab recipient_address
sender@sender.domain recipient@recipient.domain
-
s1Lv3r
Is there any way for me to restrict/block a particular email sender from sending to specific email addresses or group?
For a more specific answer re check_badmailfromto plugin see
http://forums.contribs.org/index.php/topic,35667.0.html
-
You can edit /var/qmail/control/badmailfromto
SInce that file is a templated configuration file, you should never edit it directly - you should create custom template fragments to provide the content which you require. The template could use a database file (even CSV or spreadsheet file) to produce its content.
-
CharlieBrady & s1Lv3r
....you should create custom template fragments to provide the content which you require. The template could use a database file (even CSV or spreadsheet file) to produce its content.
Added this to the FAQ, which uses a custom template, but needs more work/study to create the code to extract data from a db file.
http://wiki.contribs.org/Email#How_to_block_email_from_one_address_to_another_address_with_check_badmailfromto_plugin