Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Block sending to external mail addresses using Postfix under Linux


  • Please log in to reply

#1
Diego8

Diego8

    Member

  • Member
  • PipPipPip
  • 189 posts
Hi.
Does anyone know if there's a way to block an specific internal e-mail address from sending mail to external addresses using Postfix under Ubuntu Linux?
To be a little bit more clear what i'm trying to do is blocking [email protected] from sending e-mail to any domain except mydomain.com

Any help would be greatly appreciated.
Thanks.
  • 0

Advertisements


#2
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,727 posts
Most likely there is a way to do it, but how difficult is the real question. I have what you wanted in sendmail, but I have not used postfix. Since the source is available, you can make any change that you want.

This might be the area in which you need to look at:

http://www.postfix.o..._relayhost_maps

You might also want to check out the mailing lists and archives:

http://www.postfix.org/lists.html
  • 0

#3
Diego8

Diego8

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 189 posts
Thanks!. That was really useful.
The sender_dependent_relayhost_maps parameter allowed me to block a list of users from sending mail to outside.
Now i'm trying to figure out how to block outsiders from sending mail to them.
Unfortunately there's no "recipient_dependent_relayhost_maps" thing. I guess i will have to deal with header_checks or something.
Never mind, i'll try to post at the postfix list.

Thanks for the help.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP