WebFaction
Community site: login faq

I want to make an email "all@companyX.com" to forward / send internal emails to everyone in the company. However, I only want people from @companyX.com and maybe @companyX.org to be able to send to all@companyX.com.

I can only find guides to block certain domains, but how can I block all emails except those sent from the same domain/certain domains?

asked 16 Jan '15, 04:01

burgerdeel
718
accept rate: 0%


To block all domains instead of block a single domain, just invert the logic with "!" in your procmail rule and discard the matches. It would look something like this:

:0:
* !^From:.*@yourdomain\.com$
/dev/null

Hope that helps!

permanent link

answered 16 Jan '15, 08:06

ryans ♦♦
5.0k93360
accept rate: 43%

thanks, but I could only add procmail rules in mailbox and not the email? The email all@companyX.com is an alias pointing to several other @companyX.com emails. Is it not possible with the control panel and I have to send to a script instead?

(17 Jan '15, 01:39) burgerdeel

I suggest that instead of making all@companyX.com a forwarding address, you instead make it into a mailing list so that you can have precise control over who can send mail to and receive mail from that address.

permanent link

answered 17 Jan '15, 01:48

seanf
12.2k41836
accept rate: 37%

thanks, i would do so then. would have been 'easier' if i could have done it myself though.

(17 Jan '15, 01:58) burgerdeel
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×261
×128
×8
×3

question asked: 16 Jan '15, 04:01

question was seen: 1,551 times

last updated: 17 Jan '15, 01:58

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM