OBJECTIVE: Add or replace sender's full name
ISSUE: Full Sender's name doesn't exist in field From: .
SOLUTION:
add to /etc/postfix/header_checks file next row:
/^From:.*no-reply@mydomain\.com/ REPLACE From: MyName
shell # postmap /etc/postfix/header_checks
shell # /etc/init.d/postfix restart
2 комментария:
I tried this for a REJECT command but cannot get this to work on From: fields. (All the other REJECTS and REPLACES on Subject and User-Agent work in my header_checks).
if /^From:/
/^From: newsletter@phonicarecords\.com/ REJECT Message content rejected as SPAM - Phonica fails to honour unsubscribe list.
endif
A postfix reload is run each time, yet it still slips through:
mail from: mail address removed as this comments page incorrectly parses it
250 2.1.0 Ok
Please paste full line of original header.
P.S. Correct questions with details = 50% of correct answer.
Отправить комментарий