postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Rewrite From field if blank

Re: Rewrite From field if blank

From: Reinaldo de Carvalho <reinaldoc_at_nospam>
Date: Wed Oct 27 2010 - 15:36:05 GMT
To: Postfix <>

On Wed, Oct 27, 2010 at 12:27 PM, TheArchiveMan
<> wrote:
> We use Postfix to relay mail. Usually the From field is filled in and the
> mail is sent on. However, on occasion, the From field is blank and needs to
> be filled in. Is it possible for Postfix to sense that if the From field is
> filled in, leave the From field alone but if it is blank, populate it with
> something for the from address so that it is not blank?
> --
> View this message in context:
> Sent from the Postfix mailing list archive at

header_checks manual
Message headers added by the cleanup(8) daemon itself are
       excluded from inspection. Examples of such message headers
       are From:, To:, Message-ID:, Date:.

so isn't possible?

/^From: (<>)?$/ REPLACE From: something

-- Reinaldo de Carvalho "While not fully understand a software, don't try to adapt this software to the way you work, but rather yourself to the way the software works" (myself)