Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-27-2005, 12:31 AM   #1
LQ Newbie
Registered: Aug 2003
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Server-wide outgoing mail filter

**caveat** Okay, before the argument of whether this is good or bad morally, I am only interested on doing this to my personal server.

I'm running SuSE 9.1 with Qmail. I want to filter all outgoing email, only allowing those emails that contain a specific header through to the "outside" world, and sending the rest to the bit bucket. Can I send mail to procmail for filtering some how? I'm familiar with Postfix but I don't think that'll help me much here, this is a rented "Plesk" server, so I'm pretty much stuck with whats installed.

Old 11-02-2005, 09:04 PM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You can do it with amavisd-new..

Put it before the qmail server, listening on 25, filter the headers then pass the ok ones to qmail.
Procmail is better suited to mangling before a local file system gets the message.


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
Mail Server / Spam Filter KevinGuy Linux - General 7 10-16-2004 08:18 AM
How do I tell sendmail to use my ISP's outgoing mail server which needs name & psswrd Wolfy Linux - Networking 1 09-02-2004 04:16 AM
Can i copy outgoing mail on the server? Dman33 Linux - Software 1 07-09-2004 12:45 PM
How to implement a SMTP server for outgoing mail? Nerox Programming 1 07-02-2004 04:43 AM
Procmail or other filter for outgoing mail gabriele_101 Linux - Software 3 08-18-2003 06:35 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:20 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
Open Source Consulting | Domain Registration