Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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