On 12/2/2009 10:01 AM, LuKreme wrote:
On 2-Dec-2009, at 06:44, Noel Jones wrote:

Postfix doesn't use MX records to decide what domains to accept (unless you're 
using the permit_mx_backup hack).
Maybe virtual_mailbox_domains isn't set.
http://www.postfix.org/ADDRESS_CLASS_README.html

Well, other than a couple of edits that I have made to try to get dovecot 
setup, the config on mail2 is identical to the working install on mail.

$ postconf -n | grep virtual
virtual_alias_domains = kreme.com
virtual_alias_maps = hash:$config_directory/virtual    
pcre:$config_directory/virtual.pcre,    
pcre:$config_directory/virtual_sql.pcre,    
proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:89
virtual_mailbox_base = /usr/local/virtual
virtual_mailbox_domains = 
proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = 
proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 89
virtual_transport = dovecot
virtual_uid_maps = static:89

The only difference in that config is that the config on mail uses procmail as 
the virtual_transport instead of dovecot.

When trying to send messages directly to mail2 via telnet I get a relay access 
denied if I send to krem...@kreme.com, but it works fine for 'kremels'

virtual and virtual.pcre, virtual_sql.pcre, and mysql_virtual_alias_maps.cf are 
identical, and the databases exist on mail2. I have not verified connectivity 
for the user/pass, but I don't think we should be getting that far. Once the 
email 'krem...@kreme.com' matches in virtual it matches and the others mpas are 
not checked, right?

postfix/smtpd[44627]: NOQUEUE: reject: RCPT from ns2.covisp.net[75.148.117.93]: 554 
5.7.1<kr...@kreme.com>: Relay access denied; from=<krem...@kreme.com>  
to=<krem...@kreme.com>  proto=ESMTP helo=<mail.covisp.net>

Domains listed in virtual_alias_domains MUST be rewritten to another domain in virtual_alias_maps.

 -- Noel Jones

Reply via email to