Hi,

I added a test domain for my email address only.

[root@mta4 postfix]# postmap -q "angelo.fazz...@uconn.edu" /etc/postfix/virtual
angelo.fazz...@test.uconn.edu<mailto:angelo.fazz...@test.uconn.edu>

[root@mta4 postfix]# more main.cf|grep virtual_alias_maps
#virtual_alias_maps = mysql:/etc/postfix/files/mysql_pn.cf
virtual_alias_maps = hash:/etc/postfix/virtual 
mysql:/etc/postfix/files/mysql_pn.cf  regexp:/etc/postfix/maps/huskygroups 
regexp:/etc/postfix/maps/subaddressing


>From reading the docs, addresses are evaluated in the order listed, so for me 
>it's Virtual, and then mysql_pn.cf.
I am and have always been in the mysql lookup. I was hoping all email sent to   
angelo.fazz...@uconn.edu<mailto:angelo.fazz...@uconn.edu> could be redirected 
to angelo.fazz...@test.uconn.edu<mailto:angelo.fazz...@test.uconn.edu>.

AFA the DNS side of the house I added an MX record of test.uconn.edu pointing 
to mta4.uits.uconn.edu
And an A record of test.uconn.edu pointing to 137.99.25.243. Not sure if that 
was needed at this point.

My Question:
I test by sending an email to  
angelo.fazz...@uconn.edu<mailto:angelo.fazz...@uconn.edu> from T-bird with IMAP 
account setup on it.
The email arrives just fine, but can't tell from the logs if it was redirecting 
the email to  
angelo.fazz...@test.uconn.edu<mailto:angelo.fazz...@test.uconn.edu> or not ???!
Seems like the /etc/postfix/virtual file is not being used ? why not ?

Postfix logs:

Oct 24 14:18:54 mta4 postfix/smtpd[5440]: connect from 
angelo.uits.uconn.edu[137.99.80.129]
Oct 24 14:18:54 mta4 postfix/smtpd[5440]: 60C55AF: 
client=angelo.uits.uconn.edu[137.99.80.129], sasl_method=PLAIN, 
sasl_username=alf02013
Oct 24 14:18:54 mta4 postfix/cleanup[5446]: 60C55AF: warning: header Subject: 
map test from angelo.uits.uconn.edu[137.99.80.129]; 
from=<alf02...@appmail.uconn.edu> to=<angelo.fazz...@uconn.edu> proto=ESMTP 
helo=<[137.99.80.129]>
Oct 24 14:18:54 mta4 postfix/cleanup[5446]: 60C55AF: 
message-id=<53bb9bbe-e299-997b-ddb5-b88893009...@appmail.uconn.edu>
Oct 24 14:18:54 mta4 opendkim[24106]: 60C55AF: DKIM-Signature field added 
(s=dkim1, d=mta4.uits.uconn.edu)
Oct 24 14:18:54 mta4 postfix/qmgr[19716]: 60C55AF: 
from=<alf02...@appmail.uconn.edu>, size=688, nrcpt=1 (queue active)
Oct 24 14:18:54 mta4 postfix/smtpd[5440]: disconnect from 
angelo.uits.uconn.edu[137.99.80.129]
Oct 24 14:18:56 mta4 postfix/smtp[5448]: 60C55AF: 
to=<alf02...@uconn.mail.onmicrosoft.com>, orig_to=<angelo.fazz...@uconn.edu>, 
relay=uconn-mail-onmicrosoft-com.mail.protection.outlook.com[216.32.181.170]:25,
 delay=2.6, delays=0.17/0.01/0.27/2.1, dsn=2.6.0, status=sent (250 2.6.0 
<53bb9bbe-e299-997b-ddb5-b88893009...@appmail.uconn.edu> 
[InternalId=150079042227926, Hostname=CO1PR05MB267.namprd05.prod.outlook.com] 
8990 bytes in 0.975, 8.996 KB/sec Queued mail for delivery)
Oct 24 14:18:56 mta4 postfix/qmgr[19716]: 60C55AF: removed


-ANGELO FAZZINA

UITS Service Manager:
Spam and Virus Prevention
Mass Mailing
G Suite/Gmail

ang...@uconn.edu
University of Connecticut,  UITS, SSG, Server Systems
860-486-9075

Reply via email to