On Thu, Jul 31, 2008 at 07:39:41PM +0200, Anders Norrbring wrote:
> I asked this in the Postfix list, and got a hint on using Amavis-New..

  Amavisd won't help with this, as Michael said.  Too late in the
queue.

> Is there a way to make Postfix (Amavis) send a '550 Recipient address
> rejected' for every mail to a certain address in a domain, and still have it
> pass the mail on to the IMAP server? Or all addresses in one domain (but not
> others).
> 
> I'm looking for a way to 'simulate' that the address does not exist,
> although it does..

  I think you would need to write a custom before-queue filter for
this.  A somewhat simplistic quasi-transparent SMTP proxy might do the
trick.  amavisd would be an overly complex skeleton to build it on.

  Even then, I see some problems - if you 550 the recipient address
(RCPT TO), unless there are other accepted recipients the sender should
never go on to transmit the email!

  To actually receive the mail you would need to send 250s (accept) for
the individual address transactions, so that you could get to the DATA
phase, and only send a 5xx for the end of DATA.  Any code sent at that
step would no longer be associated by the sending MTA with the specific
address in question, though it would (or should) be processed as a
rejection of the message and result in a non-delivery notice to the
sender.

  (I do know of some large sites which filter mail in a somewhat
similar fashion; for certain categories of filter hits, they send a
rejection at the end of DATA, while in fact quarantining the email and
notifying the recipient.)

  -- Clifton

-- 
    Clifton Royston  --  [EMAIL PROTECTED] / [EMAIL PROTECTED]
       President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to