>From the virtual(5) man page

             Virtual aliasing is  recursive,

So I speculate what is happening is
       fi...@customer-domain.de<mailto:fi...@customer-domain.de>   ->   
fi...@pipe.mail.tld.de<mailto:fi...@pipe.mail.tld.de>
and then recursively starting over
       fi...@pipe.mail.tld.de<mailto:fi...@pipe.mail.tld.de> -> 
n...@tld.de<mailto:n...@tld.de>

Reordering the files will not assist since I speculate 'recursive' means start 
all over from the beginning with the newly looked up address.

Regards,
Todd Olson
Cornell University


On Tu, 2016-08-23, at 03:18, Boris Behrens 
<m...@behrens.io<mailto:m...@behrens.io>> wrote:

Hi,
we got a strange issue.

We defined two virtual files. one is for the actual delivery to defined 
mailboxes or forward to other mail accounts and the other one is to catch 
system mails from cronjobs without mailtto.
virtual_alias_domains = hash:/etc/postfix/virtual, 
pcre:/etc/postfix/virtual_fallback
virtual_alias_maps = hash:/etc/postfix/virtual, 
pcre:/etc/postfix/virtual_fallback

virtual_fallback:
/^([a-zA-Z0-9-\.]+)\.tld\.de$/          -
/^([a-zA-Z0-9-]+)\.tldhosting\.de$/     -
/@([a-zA-Z0-9-\.]+)\.tld\.de$/          n...@tld.de<mailto:n...@tld.de>
/@([a-zA-Z0-9-]+)\.tldhosting\.de$/     n...@tld.de<mailto:n...@tld.de>

virtual:
fi...@customer-domain.de<mailto:fi...@customer-domain.de> 
fi...@pipe.mail.tld.de<mailto:fi...@pipe.mail.tld.de>

Now it looks like the virtual_fallback will be used first (or 2nd?) so the mail 
for fi...@customer-domain.de<mailto:fi...@customer-domain.de> isn't going to 
the pipe mailserver but to the n...@i22.de<mailto:n...@i22.de> account (which 
is a hosted exchange).
Any ideas? Switching the order in the main.cf does not work.

Here the corresponding log entry:
Aug 23 09:02:10 relay01.mail.tld.de<http://relay01.mail.tld.de/> 
postfix/smtpd[27942]: 4A03580C45: 
client=mail-eopbgr40068.outbound.protection.outlook.com<http://mail-eopbgr40068.outbound.protection.outlook.com/>[40.107.4.68]
Aug 23 09:02:10 relay01.mail.tld.de<http://relay01.mail.tld.de/> 
postfix/cleanup[27991]: 4A03580C45: 
message-id=<80f08177-b11f-46a0-9162-1333c0863...@tld.de<mailto:80f08177-b11f-46a0-9162-1333c0863...@tld.de>>
Aug 23 09:02:10 relay01.mail.tld.de<http://relay01.mail.tld.de/> opendkim[615]: 
4A03580C45: 
mail-eopbgr40068.outbound.protection.outlook.com<http://mail-eopbgr40068.outbound.protection.outlook.com/>
 [40.107.4.68] not internal
Aug 23 09:02:10 relay01.mail.tld.de<http://relay01.mail.tld.de/> opendkim[615]: 
4A03580C45: not authenticated
Aug 23 09:02:10 relay01.mail.tld.de<http://relay01.mail.tld.de/> 
postfix/qmgr[27804]: 4A03580C45: from=<n...@tld.de<mailto:n...@tld.de>>, 
size=348852, nrcpt=1 (queue active)
Aug 23 09:02:12 relay01.mail.tld.de<http://relay01.mail.tld.de/> 
postfix/smtp[28278]: 4A03580C45: to=<n...@tld.de<mailto:n...@tld.de>>, 
orig_to=<fi...@customer-domain.de<mailto:fi...@customer-domain.de>>, 
relay=tld-de.mail.protection.outlook.com<http://tld-de.mail.protection.outlook.com/>[94.245.120.74]:25,
 delay=2.2, delays=0.54/0/0.28/1.3, dsn=2.6.0, status=sent (250 2.6.0 
<80f08177-b11f-46a0-9162-1333c0863...@tld.de<mailto:80f08177-b11f-46a0-9162-1333c0863...@tld.de>>
 [InternalId=3813930959063, 
Hostname=DB6PR0501MB2773.eurprd05.prod.outlook.com<http://db6pr0501mb2773.eurprd05.prod.outlook.com/>]
 356104 bytes in 0.425, 816.683 KB/sec Queued mail for delivery)
Aug 23 09:02:12 relay01.mail.tld.de<http://relay01.mail.tld.de/> 
postfix/qmgr[27804]: 4A03580C45: removed

Best regards
 Boris


Reply via email to