Wietse Venema wrote:
Robert Fitzpatrick:
local_header_rewrite_clients = static:all
I'm looking for a way to rewrite by name from any client. My canonical
maps work great for mynetworks, would like to apply the same type
rewrite to any message...
The above setting should enable canonical mapping for all email,
which was Postfix behavior before Postfix 2.3.
Yeah, so this is my issue then and perhaps I have something else in my
config messing it up? It doesn't seem to be working. Here is a real
world example ....
root@mx1:/usr/local/etc # postconf -n|grep local_header
local_header_rewrite_clients = static:all
root@mx1:/usr/local/etc # postmap -q m...@streamer.wmnf.org
ldap:/usr/local/etc/postfix/ldap/canonical.cf
@wmnf.org
But from the logs....
Jul 6 13:44:39 mx1 postfix/smtpd[74447]: NOQUEUE: reject: RCPT from
mail-dm3nam03on0135.outbound.protection.outlook.com[104.47.41.135]: 450
4.1.8 <m...@streamer.wmnf.org>: Sender address rejected: Domain not
found; from=<m...@streamer.wmnf.org> to=<w...@webtent.com> proto=ESMTP
helo=<NAM03-DM3-obe.outbound.protection.outlook.com>
Perhaps something else in my config messing things up, so I took a look
at main.cf and find that I have ...
smtpd_sender_restrictions = ..., reject_unknown_address,
check_sender_access ldap:/usr/local/etc/postfix/ldap/verification-sender.cf
Would this cause my problem using reject_unknown_address?
postmap -q u...@host.otherdomain.com
ldap:/usr/local/etc/postfix/ldap/canonical.cf
@otherdomain.com
Don't do that. It makes your Postfix accept email for
non-existent email addresses.
Instead, make explicit rules:
us...@host.otherdomain.com us...@otherdomain.com
us...@host.otherdomain.com us...@otherdomain.com
us...@host.otherdomain.com us...@otherdomain.com
Wietse
Well, good point. Guess it hasn't been an issue since my canonical
lookup is only working on local addresses, all of which I do address
verification as well. Never presented an issue. The original reason for
using canonical lookup is to rewrite outgoing messages from a set of
local servers where the hostname is used for sending administrative
messages, to avoid having to setup extra MX records for each domain. Am
I still in trouble with local AV?
Excuse my ignorance, trying to make sense of it all. I'm more a
programmer than mail administrator.
--
Robert