|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: nate (postfix_at_linuxpowered.net)
Date: Sun Sep 01 2002 - 21:45:33 CDT
Russell Mosemann said:
> On Fri, 30 Aug 2002, nate wrote:
>
> Is example.com a virtual domain? Is user jack a real user (i.e., has an
> account) on the local computer? You want all mail addressed to anyone
>
example.com to go to Jack? There are no exceptions?
sort of like this:
john
example.com john
example.com jack
example2.com jack
jack
example3.com jack
(for the moment I am using the text file virtuser to map
the virtual domains which seems to be working ..but would
like to use LDAP)
> You're just dinking around, there. If (mail=%s) finds the email address,
> then leave it at that. Just what do you mean by "I have postfix
> configured to recieve [sic] mail for that domain"? How do you define
> "configured"?
I read in a few places to use mail=%s* when that didn't work
out too well for me I settled on the other way, which seems to
work just as well.
> You put an "example.com anything" entry in virtual_maps as a domain marker
> if example.com is a virtual domain. You don't put it in if you are simply
> using virtual_maps as a kind of global alias file. If you are using
> virtual_mailbox_maps, the domain marker goes there instead of
> virtual_maps. If example.com is used as a domain marker, it may not go
> anywhere else.
I am currently just using it as a 'global alias' file, e.g. sample
entry:
dn: cn=Jack Schmitt, ou=Server2Aliases, o=aphroland, c=us
sn: Schmitt
cn: Jack Schmitt
description: This is an alias for something
objectClass: inetOrgPerson
objectClass: inetLocalMailRecipient
mailRoutingAddress: jack
localserver.example5.com
mail: example.com
mail:
example.com
mail:
example2.com
mail: jack
example3.com
so this user "Jack" would get all mail addressed to
example.com
and
example2.com and email addressed to jack
example3.com, I put
the first example.com according to some docs I found in the debian
distribution included with postfix(LDAP_README.gz). I quote some
of the document below which is where I base most of my experiments:
(to give a better idea on why I'm trying what I'm trying)
--BEGIN EXCERPT--
VIRTUAL DOMAINS/ADDRESSES
-------------------------
If you want to keep information for virtual lookups in your directory,
it's only a little more complicated. First you need to make sure Postfix
knows about the virtual domain. An easy way to do that is to add the
domain to the mailacceptinggeneralid attribute of some entry in the
directory. Next you'll want to make sure all of your virtual recipients'
mailacceptinggeneralid attributes are fully qualified with their virtual
domains. Finally, if you want to designate a directory entry as the
default user for a virtual domain, just give it an additional
mailacceptinggeneralid (or the equivalent in your directory) of
"
virtual.dom". That's right, no user part. If you don't want a catchall
user, omit this step and mail to unknown users in the domain will simply
bounce.
If you're using a version of Postfix newer than 19991226, that should do
it. If not, you also need to add your virtual domains to relay_domains.
Simply add "$virtual_maps" to your relay_domains line. Then you can use
the same map you use to find virtual recipients to determine if a domain
is a valid virtual domain and should be allowed to relay.
In summary, you might have a catchall user for a virtual domain that
looks like this:
dn: cn=defaultrecipient, dc=fake, dc=dom
objectclass: top
objectclass: virtualaccount
cn: defaultrecipient
owner: uid=root, dc=someserver, dc=isp, dc=dom
1 -> mailacceptinggeneralid: fake.dom
2 -> mailacceptinggeneralid:
fake.dom
3 -> maildrop: realuser
real.dom
1: Postfix knows fake.dom is a valid virtual domain when it looks for
this and gets something (the maildrop) back.
2: This causes any mail for unknown users in fake.dom to go to this entry ...
3: ... and then to its maildrop.
Normal users might simply have one mailacceptinggeneralid and maildrop,
e.g. "normaluser
fake.dom" and "normaluser
real.dom".
--END EXCERPT--
> You've got to be joking. It seems like this topic is discussed every
> week. Here's how you do the search. Go to
> http://groups.google.com/advanced_search and search the
> mailing.postfix.users newsgroup for the words "virtual ldap". I get 500
> discussions (not messages) involving those two words. I'd say that's a
> whole lot, and there is some very good information in there.
groups.google.com is something I didn't try, but normal google search
didn't come up with much that I thought was helpful, that is at least
on the first few pages:
http://www.google.com/search?q=postfix%20virtual%20hosting%20ldap&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8
with further testing I managed to get postfix to accept mail based on
the
example.com entry, but then it tried to pass it onto the local
user(via cyrus) with the userid emailed (e.g. if
example.com goes to
jack, I emailed test
example.com and postfix tried to pass the message
to the local user test and cyrus rejected it, though postfix didn't bounce
it, so it got partway through ..)
thanks for the reply!
nate
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]