On 5/14/10 9:10 AM, Owain G. ainsworth wrote:
You are missing "aliases<name of aliases>" if you wish for your aliases to work.
For the alias it does, but the issue is for the virtual.
So changing:
accept from all for local deliver to mbox
to
accept from all for local alias "aliases" deliver to mbox
works yes.
I did put the URL for that correction in my original post:
http://www.mail-archive.com/misc@openbsd.org/msg90204.html
So, may be we should put into the man page as well for that example
using alias then.
Here is a diff for that.
Index: smtpd.conf.5
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/smtpd.conf.5,v
retrieving revision 1.32
diff -N -u -p smtpd.conf.5
--- smtpd.conf.5 27 Apr 2010 14:39:24 -0000 1.32
+++ smtpd.conf.5 14 May 2010 23:44:49 -0000
@@ -332,7 +332,7 @@ would look like this:
listen on lo0
map aliases { source db "/etc/mail/aliases.db" }
map secrets { source db "/etc/mail/secrets.db" }
-accept for local deliver to mbox
+accept for local alias aliases deliver to mbox
accept for all relay via smtp.gmail.com tls enable auth
.Ed
.Pp
However for the original issue, still no virtual working yet.
One question that it bring to me however is this in the man page then:
-t type
Specify the format of the resulting map file. The default map
format is suitable for storing simple, unstructured, key-to-value
string associations. However, if the mapped value has special
meaning, as in the case of the virtual domains file, a suitable
type must be provided. The available output types are:
aliases The mapped value is a comma-separated list of mail
destinations. This format can be used for building user
aliases and virtual domains files.
set There is no mapped value - a map of this type will only
allow for the lookup of keys. This format can be used
for building primary domain maps.
When would the set type be use then?
If this is for primary domain only, I assume this mean domain to be
deliver on the local server. If so, then the alias only is used to
create the account in that case. If so and you have test in the aliases
file, then test@ will answer for all the domains in on the server, not
only a specific one?
I get the aliases type, but I do not get the set type here?
Best,
Daniel