Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-17-2010, 11:44 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
postfix filter outgoing mail by sender domain


Im trying to get postfix to filter my outgoing mail and basically drop everything that is not in my hash table. So far I managed to get this going

smtpd_sender_restrictions =
        check_sender_access hash:/etc/postfix/sender_domains
and /etc/postfix/sender_domains looks like

Unfortunately those rules also apply to incoming messages. My goal is to disallow users on my host to change their "MAIL FROM" to anything they like and restrict them to domains I specify. I'm aware that the local part still is variable and a user of domain "" could use a email of domain "", but still some of my troubles would be solved if I get this running. Thanks for suggestions

Old 06-17-2010, 01:16 PM   #2
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Hi. You could use smtp authentication. You might find this interesting.
Old 06-18-2010, 03:32 AM   #3
LQ Newbie
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Originally Posted by Berhanie View Post
Hi. You could use smtp authentication. You might find this interesting.
I do use sasl, but forcing strong passwords on customers is another issue. My latest problem was some guy getting hacked and spam got sent out by his account with forged MAIL FROM's, which is basically what I want to suppress...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix - smtpd_recipient_restrictions & invalid sender domain compused Linux - Newbie 2 04-17-2010 07:34 AM
Postfix emails send outgoing mail with wrong domain name michael.smith Ubuntu 2 01-30-2010 12:23 AM
Server-wide outgoing mail filter mccomber Linux - Networking 1 11-02-2005 08:04 PM
Procmail or other filter for outgoing mail gabriele_101 Linux - Software 3 08-18-2003 05:35 PM
Help with Sendmail filters for outgoing mail by sender/recipient gljoe Linux - Software 18 08-12-2003 08:56 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration