On 8/15/2010 4:47 PM, Christopher Kurtis Koeber wrote:
Aug 15 16:32:57 WTS-ZIMBRA postfix/qmgr[18608]: 248B53220E2:
from=<ckoe...@wesleyseminary.edu>, size=288, nrcpt=1 (queue active)
Aug 15 16:32:57 WTS-ZIMBRA postfix/virtual[18620]: 248B53220E2:
to=<dbayasekara8...@wts-zimbra.wesleysem.edu>,
orig_to=<dbayasekara8...@students.wesleyseminary.edu>, relay=virtual,
delay=23, delays=23/0.03/0/0.08, dsn=5.1.1, status=bounced (unknown user:
"dbayasekara8...@wts-zimbra.wesleysem.edu")
OK, your original command shows nothing but I am tring to send mail to
"students.wesleyseminary.edu" which is defined in
my virtual_mailbox_domains.cf file.
Please notice the lines above. A mail is sent to
"dbayasekara8...@students.wesleyseminary.edu" but then is aliased to
"dbayasekara8...@wts-zimbra.wesleysem.edu" before it reaches your
virtual_mailbox_maps. This probably occurs in virtual_alias_maps.
According to your previous mail:
Aug 15 13:57:45 WTS-ZIMBRA postfix/smtpd[17373]: maps_find:
virtual_alias_maps:ldap:/etc/postfix/ldap-aliases.cf(0,lock|fold_fix):dbayasekara8...@students.wesleyseminary.edu
= dbayasekara8469
This will alias the mail to "dbayasekara8...@$myorigin".
Thus, your virtual_mailbox_map fails as you noticed below in querying
with postmap.
I'm not sure what you are trying to accomplish by setting
virtual_alias_maps. However, I strongly suggest returning a fully
qualified address if you do not want to append $myorigin to each mail.
postmap outputs:
------------------------------------------------------------------
# postmap -q dbayasekara8...@wts-zimbra.wesleysem.edu
ldap:/etc/postfix/ldap-maps.cf
# postmap -q dbayasekara8...@students.wesleyseminary.edu
ldap:/etc/postfix/ldap-maps.cf
/home/studentemail/students.wesleyseminary.edu/dbayasekara8469
------------------------------------------------------------------
You also may have an error in your results for virtual_mailbox_maps.
Postconf -n:
------------------------------------------------------------------
virtual_mailbox_base = /home/studentemail/
------------------------------------------------------------------
virtual_mailbox_base will prepend to your results from virtual_mailbox_maps.
The files will attempt to be put at
"/home/studentemail/home/studentemail/students.wesleyseminary.edu/dbayasekara8469"
If this is what you want, great. If not, you should fix it.
So the questions I have are (1) what do I need to do to send mail to the
domains defined in virtual_domains.cf
and (2) how can I get get the lookups via LDAP working for the domains
defined in that file?
Thank you for your time.