My problem is a regexp table used to fold domains that should be delivered to the same mailbox stopped working. I solved the problem by adding a hash table with all the extra names. This is a big administrative deal (to us) as it adds several thousand emails to maintain and sync as changes are made.

This system is a postfix-cyrus running on FreeBSD 8.2

From main.cf:

mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = safeport.com
relay_domains = $mydestination lighthouse.safeport.com mail3.safeport.com
allow_untrusted_routing = no
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
        hash:/usr/local/etc/postfix/virtual1
        regexp:/usr/local/etc/postfix/virtual.regexp
virtual_alias_domains = $virtual_alias_maps

virtual1 is the extra table I added to make customer stuff work. I am testing various solutions with our own domains.

Sending to a safeport.us address gets:
   554 5.7.1 <[email protected]>: Relay access denied

virtual: [email protected]   doug
virtual.regexp: /^(.*)@safeport\.us$/ [email protected]
MX record for safeport.us = 10 lighthouse.safeport.com

postmap -q [email protected] regexp:virtual.regexp
[email protected]


Thanks for any thoughts.


_____
Douglas Denault
http://www.safeport.com
[email protected]
Voice: 301-217-9220
  Fax: 301-217-9277

Reply via email to