I have an odd requirement of redirecting info@ for a reasonable
large number of domains to i...@example.com.  Figured
this could be done with 2.7.1 using:

virtual_alias_domains = pcre:${config_directory}/virtual_alias_domains

/.*/ anything

virtual_alias_maps = pcre:${config_directory}/virtual_alias_maps

/^info@.*/ i...@example.com

however this fails with:

Mar 10 09:14:26 regatta postfix/cleanup[1448]: 881C16B: 
message-id=<>
Mar 10 09:14:26 regatta postfix/qmgr[1441]: 881C16B: 
from=<al...@lifeintegrity.com>, size=199, nrcpt=1 (queue active)
Mar 10 09:14:26 regatta postfix/error[1449]: 881C16B: 
to=<al...@example.com>, orig_to=<i...@example.org>, relay=none, 
delay=9.4, delays=9.4/0.01/0/0.01, dsn=5.0.0, status=bounced 
(User unknown in virtual alias table)
Mar 10 09:14:26 regatta postfix/bounce[1450]: 881C16B: sender 
non-delivery notification: 8039170
Mar 10 09:14:26 regatta postfix/qmgr[1441]: 881C16B: removed

I think this because postfix is not able to validate the sender,
al...@lifeintegrity.com, as a valid virtual user.  This is
usually the desired behavior, but in this case every domain
is considered virtual.  alias maps is complete, i.e. I do want to
bounce all other recipients besides info@.

smtpd_reject_unlisted_sender is set to default 'no', and 
smtpd_sender_restrictions is empty.  If I tweak the pcre to
exclude the domain of sender it works as expected, and it also
works fine with I bite the bullet and explicitly list out
all the domains either with a pcre or switching to hash.

Is there a way to disable the sender check?  Or tell
postfix that every user is valid for the sender check
but not as a recipient?


/Allan
-- 
Allan Wind
Life Integrity, LLC
<http://lifeintegrity.com>

Reply via email to