Carlos E. R. wrote:
> 
> The Friday 2007-06-22 at 16:10 -0700, Dale Schuster wrote:
> 
> ...
> 
>> This is a source of confusion for me too.  I'm not exactly sure where to 
>> look to accomplish Subject Rewrites.  I think that may be a suitable 
>> compromise, but my requirements are specifically to add a tag in the 
>> message.  Thank you for the ammunition I needed for arguing further.
> 
> The subject can be modified using formail, I think, and it can be fired 
> from procmail.

Yes, that is probably the easiest way.

>>> relocated is coupled with recipient validation and will be evaluated at
>>> the same place in the order of restrictions. Either at the end of
>>> smtpd_recipient_restrictions or when you explicitely use
>>> reject_unlisted_recipient.
>> Initially I was trying to use a relocated map from postfix, but I don't 
>> want to broadcast what the new addresses are.
> 
> You don't need the relocation message to give the new address directly: 
> you define the exact message. Which I don't have clear is how big it can 
> be: I think it is a single line, perhaps long.

No, if you use relocated the text is already hardcoded, you can't change it.
It's another situation alltogether if you simply reject the mail and add
the explanatory text as reject message. That line can be pretty long, long
enough to inform the sender and give a link to a more detailed web page.

smtpd_recipient_restrictions =
        reject_non_fqdn_recipient,
        reject_non_fqdn_sender,
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_unauth_destination
#       ... some more spam checks
        check_recipient_access hash:/etc/postfix/domain_deprecated

/etc/postfix/domain_deprecated:
example.com     reject Mails for example.com will no longer be accepted,
please visit http://example.com/domain_deprecated.html for details

The line after reject should be a single line.

-- 
Sandy

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to