On Mon, 21 May 2007 21:31:30 +0200 Mark wrote:
MM> [EMAIL PROTECTED],
MM> 
MM> > I'm trying to use amavis + postfix with virtual users, with an extra 
twist:
MM> > a wildcard virtual domain. This is configured in postfix with a regexp
MM> > file:

MM> There is no need for using regular expressions in above examples,
MM> both the Postfix hash and the amavisd-new hash or lists handle
MM> cases like the above just fine. See README.lookups.

I would love to use a hash file with postfix, so I could use read_hash for
local_domains_maps. But I tried

  virtual_mailbox_domains = hash:/etc/postfix/vhosts/domains.hash 

with the hash file:

  .customer3.org                 virtual:
  customer3.org                  virtual:

After postmap of the file and a postfix reload, sending a test message to
[EMAIL PROTECTED] is rejected:

454 4.7.1 <[EMAIL PROTECTED]>: Relay access denied; from=<[EMAIL PROTECTED]> 
to=<[EMAIL PROTECTED]> proto=ESMTP helo=<example.com>


MM> You should anchor regular expressions as appropriate!

Thanks, fixed.

MM> There are several examples of regexp use in amavisd.conf-sample.

Yes, and all are hardcoded. I'm hoping to avoid having to configure virtual
domains in multiple places.

MM> > but other suggestions (_besides_ "don't use 
MM> > wildcards") would be greatly appreciated!
MM> 
MM> Don't use wildcards  :)

Well, at least the rest of your message was helpful. :)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to