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$/          [email protected]
/@([a-zA-Z0-9-]+)\.tldhosting\.de$/     [email protected]

virtual:
[email protected] [email protected]

Now it looks like the virtual_fallback will be used first (or 2nd?) so the mail 
for [email protected] isn't going to the pipe mailserver but to the 
[email protected] 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 postfix/smtpd[27942]: 4A03580C45: 
client=mail-eopbgr40068.outbound.protection.outlook.com[40.107.4.68]
Aug 23 09:02:10 relay01.mail.tld.de postfix/cleanup[27991]: 4A03580C45: 
message-id=<[email protected]>
Aug 23 09:02:10 relay01.mail.tld.de opendkim[615]: 4A03580C45: 
mail-eopbgr40068.outbound.protection.outlook.com [40.107.4.68] not internal
Aug 23 09:02:10 relay01.mail.tld.de opendkim[615]: 4A03580C45: not authenticated
Aug 23 09:02:10 relay01.mail.tld.de postfix/qmgr[27804]: 4A03580C45: 
from=<[email protected]>, size=348852, nrcpt=1 (queue active)
Aug 23 09:02:12 relay01.mail.tld.de postfix/smtp[28278]: 4A03580C45: 
to=<[email protected]>, orig_to=<[email protected]>, 
relay=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 
<[email protected]> [InternalId=3813930959063, 
Hostname=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 postfix/qmgr[27804]: 4A03580C45: removed

Best regards
 Boris

Reply via email to