Re: redirect email based on sender domain?

From: Ralf Hildebrandt (no email)
Date: Fri Mar 01 2002 - 14:55:57 EST


On Fri, Mar 01, 2002 at 02:33:20PM -0500, Mark Jeftovic wrote:

> Are there any postfix developers/maintainers on this list who would be
> interested in a contract job to add this functionality?

Like Victor said, it's the easies solution to modify the mail using
the content_filter mechanism. A little Python or Perl script could do
the trick:

* Instantiate an "SMTP sender"
* Read the mail from stdin
* Alter contents if pattern matches and you're still in the headers
* Alter envelope sender/recipient if it need be (these are passed as arguments to the script)
* Send the mail out via the "SMTP sender"
* Exit with 0 if successful, with 75 otherwise.

It's easy. My fuzzy email bouncer works almost the same way.

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   
Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
It used to be said [...] that AIX looks like one space alien
discovered Unix, and described it to another different space alien who
then implemented AIX. But their universal translators were broken and
they'd had to gesture a lot. 
-
To unsubscribe, send mail to  with content
(not subject): unsubscribe postfix-users







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD