Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

Hello! I use Postfix for SMTP. As a normal smtp server, my postfix receives mails from outside, if they are addressed to our existing mailboxes.

In case of 'mynetworks' (legal internal) senders, it receives and forwards mails addressed to the whole world.

For the latter, I'd like to restrict the sender domain for some valid domains only, like ...@mycompany.com, ...@myfriend.com The list of the valid sender domains is something like the unio of - mydestinations and - virtual_mailbox_domains

Thank you for your efforts!

asked 19 Dec '11, 16:39

lexqlt's gravatar image

lexqlt
2113
accept rate: 0%




I understand what you are trying to do - to make the mail system more secure, but return email addresses, domains, et al, can easily be spoofed. I'd suggest rather setting up Mail Assassin or Spam Assassin and utilize its' features instead since I think you'll be able to better control and secure your incoming emails that way versus the way you are trying to do it.

link

answered 19 Dec '11, 17:09

Ron's gravatar image

Ron ♦
9361718
accept rate: 13%

Hi Ron, thank you for your idea. However, I prefer to be as simple as possible. And, in this case, the goal is mostly to avoid some unintentional fails of my collegaues. For example, to send out mails from the test system, the valid sender must be: testsupport@test.myproduction.com instead of support@myproduction.com and vica versa.

link

answered 19 Dec '11, 17:23

lexqlt's gravatar image

lexqlt
2113
accept rate: 0%

Ahhhhhh that's a horse of a different color then.

(20 Dec '11, 09:57) Ron ♦
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

Tags:

×6

Asked: 19 Dec '11, 16:39

Seen: 5,159 times

Last updated: 20 Dec '11, 09:57

powered by OSQA