LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


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

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


Hi,

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

Code:
...
smtpd_sender_restrictions =
        check_sender_access hash:/etc/postfix/sender_domains
        reject_non_fqdn_sender
        reject_unknown_sender_domain
        reject
...
and /etc/postfix/sender_domains looks like

Code:
foo.com ACCEPT
bar.com ACCEPT
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 "foo.com" could use a email of domain "bar.com", but still some of my troubles would be solved if I get this running. Thanks for suggestions

cheers
felix
 
Old 06-17-2010, 01:16 PM   #2
Berhanie
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
dmfelix
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
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...
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:15 AM.

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